function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// Browsers check
var ns = (document.layers)? true:false;
var ie = (document.all)? true:false;
var future = ( document.getElementById && !ie );
var old = ( parseInt(navigator.appVersion) <=3 )
|| ( ns && parseFloat(navigator.appVersion) < 4.5 );
var later = ( parseInt(navigator.appVersion) <=3 )
|| ( ns && parseFloat(navigator.appVersion) < 5 );


//Opens a location in a new window
function openWindow(theURL){
        var width = 800;
        var height = 500;
                if(ie || future) window.open(theURL, "newWin","top=10,left=10,toolbar=yes,scrollbars=yes,resizable=yes,directories=no,menubar=no,status=yes,width=" + width + ",height=" + height);
                else if(ns) window.open(theURL, "newWin","screenX=10,screenY=10,toolbar=yes,scrollbars=yes,resizable=yes,directories=no,menubar=no,status=yes,width=" + width + ",height=" + height);
}
//Opens a location in a new window with specified height and width
function openWindowSized(theURL, width, height){
        if(width == null) width = 800;
        if(height == null) height = 500;
                if(ie || future) window.open(theURL, "newWin","top=50,left=50,toolbar=no,scrollbars=yes,resizable=yes,directories=no,menubar=no,status=yes,width=" + width + ",height=" + height);
                else if(ns) window.open(theURL, "newWin","screenX=50,screenY=50;toolbar=yes,scrollbars=yes,resizable=yes,directories=no,menubar=no,status=yes,width=" + width + ",height=" + height);
}
var NoOfTheBeast = true;
function openNewWindow(URL) {
        window.open(URL)
}
//Opens a popup window with specified height and width - put onload="javascript:popUp('xxxxx.html',375,250);" in the body tag
function popUp(page,PWidth,PHeight,id) {
 eval("nice"+id+"=window.open('"+page+"','nice1','toolbar=no,scrollbars=no,location=no,status=no,menubars=no,resizable=no,width="+PWidth+",height="+PHeight+"')")
}

