
function openWindow(url,name,w,h) {
xPos = (screen.width - w) / 2;
yPos = (screen.height - h) / 2;
config = 'scrollbars=yes, resizable=yes, left=' + xPos + ',screenX=' + xPos + ',top=' + yPos + ',screenY=' + yPos + ',width=' + w + ',height=' + h; 
newWindow = window.open(url, name, config);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function waiting(btndiv) {
	document.getElementById('pwait').style.display = "block";
	document.getElementById(btndiv).style.display = "none";
	return true;
}