var ie4=(navigator.appVersion.indexOf("MSIE")!=-1 && parseFloat(navigator.appVersion)>=4)?true:false;
var nn6=(navigator.appName=="Netscape" && parseFloat(navigator.appVersion)>=5)?true:false;


function OpenWindow(id,name,width,height,style) {

        if (style=="") style=',scrolling=yes,resizable=yes,scrollbars=yes,status=yes,statusbar=yes'

        var Left = (screen.width  - width) / 2 ;
        var Top  = (screen.height - height) / 2 ;

        window[id]=window.open('',name,'width='+width+',height='+height+',left='+ Left +',top='+ Top +style);

        return false;
}


function new_window(url,w,h) {
	if (w==0 || h==0) {
		window.open(url);
	} else {
		gwin = window.open(url,'gwin','width='+w+',height='+h+',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no');
		gwin.focus();
	}
	return false;
}


function visibleDiv(what){
 if(nn6){
   document.getElementById(what).style.display = "block";
 }
 else if(ie4){
   document.all[what].style.display = "block";
 }
}

function hideDiv(what){
 if(nn6){
   document.getElementById(what).style.display = "none";
 }
 else if(ie4){
   document.all[what].style.display = "none";
 }
}



