function gogirl(e) {
    if (document.getElementById(e).style.display == 'none') {
        document.getElementById(e).style.display = 'block';
    } else {
        document.getElementById(e).style.display = 'none';
    }
}

function menuhideall() {
        var Nodes = document.getElementsByTagName('ul')
        var max = Nodes.length
        for(var i = 0;i < max;i++) {
                var nodeObj = Nodes.item(i)
                nodeObj.style.display = 'none';
        }
}

function popupwindow(URL,winname,w,h,feat) {

var t = null
var l = null

if (navigator.userAgent.indexOf("3.")!= -1){
features = 'width=' + w +',height=' + h + ',top=20,left=100'
}
else

if (navigator.userAgent.indexOf("4.")!= -1 || navigator.userAgent.indexOf("5.")!= -1 || navigator.userAgent.indexOf("6.")!= -1)
{

if (screen.width >= 600){
l = '0'
}
if (screen.height >= 400){
t = '0'
}
if (screen.width >= 790){
l = '0'
}
if (screen.height >= 590){
t = '0'
}
if (screen.width >= 1023){
l = '100'
}
if (screen.height >= 767){
t = '65'
}
if (screen.width >= 1151){
l = '170'
}
if (screen.height >= 863){
t = '84'
}
if (screen.width >= 1279){
l = '340'
}
if (screen.height >= 959){
t = '250'
}
if (screen.width >= 1599){
l = '570'
}
if (screen.height >= 1199){
t = '300'
}
features = 'width=' + w +',height=' + h + ',top=' +  t + ',left=' + l + ',' + feat
}
window.open(URL,winname,features);
}

