
function open_window(url, win_name, win_width, win_height, resize, scrollbars)
{
	var w = 800, h = 600;

	if (document.all || document.layers) 
	{
		w = screen.availWidth;
		h = screen.availHeight;
	}
	//Calculates the window position
	var leftPos = (w-win_width)/2, topPos = (h-win_height)/2;

    var newWindow = window.open(url, win_name, 'top='+topPos+',left='+leftPos+',menubar=no,toolbar=no,status=yes,resizable='+resize+',scrollbars='+scrollbars+',width='+win_width+',height='+win_height);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openStdPop(theURL,winName)
{
	window.open(theURL,winName,'width=700,height=580,screenX=100,screenY=100,scrollbars=yes,toolbars=no,menubar=no,satus=no,alwaysRaised=yes');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}