<!-- 
function messageWindow(title, msg)
{
  var width="300", height="125";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title+'</title></head>';
  var body = '<center>'+msg+'<br><p><form><input type="button" value="   Done   " onClick="self.close()"></form>';
  msgWindow.document.write(head + body);
}

var popUpWin=0;
function popUpWindow(URLStr, x, y)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
	if (y==0) y=screen.availHeight;
	if (x==0) x=screen.availWidth;
	var str = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no,copyhistory=yes,";
	   	str += "height=" + y;
    	str += ",innerHeight=" + y;
    	str += ",width=" + x;
    	str += ",innerWidth=" + x;
	if (window.screen) {
		var ah = screen.availHeight - 130;
		var aw = screen.availWidth - 10;
		var xc = (aw - x) / 2;
		var yc = (ah - y) / 2;

	    	str += ",left=" + xc;
	    	str += ",screenX=" + xc;
	    	str += ",top=" + yc;
	    	str += ",screenY=" + yc;
	}

	popUpWin = open(URLStr, 'popUpWin', str);
}
function popUpWindow_scroll(URLStr, x, y)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
	if (y==0) y=screen.availHeight;
	if (x==0) x=screen.availWidth;
	var str = "scrollbars, ";
 	str += "height=" + y;
	str += ",innerHeight=" + y;
	str += ",width=" + x;
	str += ",innerWidth=" + x;
	if (window.screen) {
		var ah = screen.availHeight - 130;
		var aw = screen.availWidth - 10;
		var xc = (aw - x) / 2;
		var yc = (ah - y) / 2;

	    	str += ",left=" + xc;
	    	str += ",screenX=" + xc;
	    	str += ",top=" + yc;
	    	str += ",screenY=" + yc;
	}

	popUpWin = open(URLStr, 'popUpWin', str);
}
/*function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}*/

// End -->
