        function openPopup( strURL, intWidth, intHeight, blnNewWindow, showToolBar ) { 
//alert('z');
                var intScreenHeight = 0;
                //      get screen height
                if( parseInt( navigator.appVersion ) > 3 ) {
                        intScreenHeight = screen.availHeight;
                        if( !intScreenHeight ) {
                                intScreenHeight = screen.height;
                        }
                } else if(
                        navigator.appName == "Netscape" && 
                        parseInt( navigator.appVersion ) == 3 && 
                        navigator.javaEnabled()
                ) {
                        var jToolkit = java.awt.Toolkit.getDefaultToolkit();
                        var jScreenSize = jToolkit.getScreenSize();
                        intScreenHeight = jScreenSize.height;
                } else {
                        alert( 'Can\'t detect screen resolution' );
                        return;
                }
                //      adjust dimensions if necessary
                if( intHeight > intScreenHeight ) {
                        intHeight = intScreenHeight - 10;
                }
                if( blnNewWindow ) {
                        //      new window
                        var openPopup = window.open( strURL,'popup','toolbar=' + showToolBar + ',scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + intWidth + ',height=' + intHeight );
                        openPopup.focus();
                } else {
                        //      same window
                        window.resizeTo( intWidth, intHeight );
                }
                return;
        }

function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}

