var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var winwidth = screen.availWidth-10;
var winheight = screen.availheight-10;

 function openWindow(url) { //my own invention - Chris Ivey

    if (document.all) //if IE, open a full screen window for IE
       { window.open(url, 'myWindow', 'width='+winwidth+',height='+winheight+' left=0, top=0,toolbar=no,scrollbars=no,status=no,location=no,resizable=no,fullscreen=yes');
    }
    else //Netscape displays full window with border 
    { window.open(url, "myWindow", "width='+winwidth+',height='+winheight+' toolbar=no,scrollbars=no,location=no,resizable=yes"); }           
}

function closeWindow() { 
self.close(); 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v3.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}

function closeParentWindow() { 
parent.close();  
}

function popOpen(url){ //My own invention - Chris Ivey
                     window.open(url, "newWindow", "width=600,height=400,scrollbars=yes,status=no,location=no,resizable=no");

}

