
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);
}

function submitForm(Id){
	formId = document.getElementById(Id);
	formId.submit();
	//alert(formId);
}
function makeWindow(url, w, h) {
	var l = (window.screen.width - w) / 2;
	var t = (window.screen.height - h) / 2;
	var w = window.open(url, 'game', "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",scrollbars=no");
	if (!w)
	{
		alert('Bitte Popupblocker deaktivieren.');
		//window.location.href=url + "&popupBlock=1";
	}
}


function makeNamedWindow(name, url, w, h) {
	var l = (window.screen.width - w) / 2;
	var t = (window.screen.height - h) / 2;
	t=20;
	var w = window.open(url, name, "width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",scrollbars=no");
	if (!w)
	{
		alert('Bitte Popupblocker deaktivieren.');
		//window.location.href=url + "&popupBlock=1";
	}
}

function ShwWindow(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);
}
