// JavaScript Document

function centerNewWindow(url,name,features,width,height) {
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	var horSpace = screenWidth - width;
	var verSpace = screenHeight - height;
	var left = Math.round(horSpace / 2);
	var top = Math.round(verSpace / 2);
	var featureStr = features + ',width=' + width + ',height=' + height + ',left=' + left + ',top=' + top;
	window.open(url,name,featureStr);
}

function centerWindow(win,width,height) {
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	var horSpace = screenWidth - width;
	var verSpace = screenHeight - height;
	var left = Math.round(horSpace / 2);
	var top = Math.round(verSpace / 2);
	win.resizeTo(width,height);
	win.moveTo(left,top);
}

function WindowOnload(f) {
	var prev=window.onload;
	window.onload=function(){ if(prev)prev(); f(); }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}