    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function expandCollapseMenu() {
        nLen = document.getElementById('MainMenu').getElementsByTagName('ul').length;
        for(i = 0; i < nLen; i++)
        {
            toggleDisplayById(document.getElementById('MainMenu').getElementsByTagName('ul')[i].id);
        }
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function expandCollapseById(sId) {
        nLen = document.getElementById(sId).getElementsByTagName('ul').length;
        for(i = 0; i < nLen; i++)
        {
            toggleDisplayById(document.getElementById(sId).getElementsByTagName('ul')[i].id);
        }
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function toggleDisplayById(sId) {
        if (document.getElementById(sId).style.display == 'none') {
            showElementById(sId);
        } else {
            hideElementById(sId);
        }
        return 1;
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function hideElementById(sId) {
        document.getElementById(sId).style.display = "none";
        return 1;
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function showElementById(sId) {
        document.getElementById(sId).style.display = "";
        return 1;
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    function MainForm()
    {
        this.aTab = new Array();
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    MainForm.prototype.registerTab = function(sTabId, sFieldsetId)
    {
        this.aTab.push(new Array(sTabId, sFieldsetId));
    }
    
    // ---------------------------------------------------------------------
    
    /**
     * 
     * 
     * @access     
     * @return      
     * @param      
     * 
     * @author     Juergen Lang <juergen.lang@getinspired.at>
     * @since      initial version
     * @version    initial
     */
    
    MainForm.prototype.activateTab = function(Obj)
    {
        for(i = 0; i < this.aTab.length; i++)
        {
            if(this.aTab[i][0] == Obj.id)
            {
                document.getElementById(this.aTab[i][0]).className = "Down";
                showElementById(this.aTab[i][1]);
            }
            else
            {
                document.getElementById(this.aTab[i][0]).className = "Up";
                hideElementById(this.aTab[i][1]);
            }
        }
    }
    
    
    function init()
    {
        return true;
    }

function openWin (strTemplate, intWidth, intHeight) {
	objWindow = open (strTemplate, 'openWin', 'width=' + intWidth + ',height=' + intHeight + ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');
	//objWindow.moveTo(screen.width / 2 - intWidth / 2, screen.height / 2 - intHeight / 2);
	objWindow.moveTo(0, 0);
	return 1;
}