<!--
function openWindow(theURL,winName,features){
  return window.open(theURL,winName,features);
}

function openWindowDef(theURL){
  features="width=800,height=500,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,"",features);
}
function openWindowStatus(theURL){
  features="width=800,height=500,top=0,left=0,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,"",features);
}
function openWindowMenu(theURL){
  features="width=800,height=500,top=0,left=0,toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes"
  return window.open(theURL,"",features);
}
function openWindowSize(theURL,winWidth,winHeight){
  features="width=" + winWidth + ",height=" + winHeight;
  features+=",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,"",features);
}
function openWindowSizeCenter(theURL,winWidth,winHeight){
  features="width=" + winWidth + ",height=" + winHeight;
  features+=",top=" + (screen.height-winHeight)/2 + ",left=" + (screen.width-winWidth)/2;
  features+=",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,"",features);
}
function openWindowMax(theURL)
{
   var wOpen;
   var features;
   
   features = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
   features = features + ',width=' + (screen.availWidth - 10).toString();
   features = features + ',height=' + (screen.availHeight - 122).toString();
   features = features + ',screenX=0,screenY=0,left=0,top=0';

   wOpen = window.open(theURL,"",features);
   //wOpen.focus();
   //wOpen.moveTo(0,0);
   //wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
}


function openNamedWindowDef(theURL,winName){
  features="width=800,height=500,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,winName,features);
}
function openNamedWindowSize(theURL,winName,winWidth,winHeight){
  features="width=" + winWidth + ",height=" + winHeight;
  features+=",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,winName,features);
}
function openNamedWindowSizeCenter(theURL,winName,winWidth,winHeight){
  features="width=" + winWidth + ",height=" + winHeight;
  features+=",top=" + (Screen.height-winHeight)/2 + ",left=" + (Screen.width-winWidth)/2;
  features+=",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
  return window.open(theURL,winName,features);
}
function openNamedWindowMax(theURL,winName)
{
   var wOpen;
   var features;

   features = 'status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes';
   features = features + ',width=' + (screen.availWidth - 10).toString();
   features = features + ',height=' + (screen.availHeight - 122).toString();
   features = features + ',screenX=0,screenY=0,left=0,top=0';

   wOpen = window.open(theURL, winName, features );
   //wOpen.location = theURL;
   //wOpen.focus();
   //wOpen.moveTo(0,0);
   //wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
}



function shakeWindow() {
  var x=10
  if (document.all||document.layers) {
    for (i=0;i,i<20;i++){
      window.moveBy(0,x)
      window.moveBy(x,0)
      window.moveBy(0,-x)
      window.moveBy(-x,0)
    }
  }
}

function loadWindow(win_width,win_height,win_left,win_top) {
	var appVer = navigator.appVersion.toLowerCase();
	if(appVer.indexOf('msie')) {
		var name = ""             //Set window name
		/*
		var win_width = 770                        //Set width
		var win_height = 582                      //Set height
		var win_left = (screen.width-win_width)/2                             //Set distance from left
		var win_top = (screen.height-win_height)/2                             //Set distance from top
		*/
		//alert("height: " + win_height + "; width: " + win_width + "; left: " + win_left + "; top: " + win_top);
	
		if(document.location.search=='')  {
			window.open(document.location + "?newwin=true",name,"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + win_width + ",height=" + win_height + ",left=" + win_left + ",top=" + win_top);
			self.opener=""
	//    self.close()
		} else {
			window.opener.close();
		}
	} else {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite")
		window.menubar.visible = false;
		window.locationbar.visible = false;
		window.scrollbars.visible = false;
		window.personalbar.visible = false;
		window.statusbar.visible = false;
		window.toolbar.visible = false;
		netscape.security.PrivilegeManager.revertPrivilege("UniversalBrowserWrite")
		resizeTo(width,height);   //replace with actual numerical values
	}
}

//-->

