<!--
function WaitDiv(){
	strWaitDiv = '<div align="center" id="WaitDiv" style="width:auto;height:100px;padding:8px;"><table width="100%" border="0" cellspacing="0" cellpadding="3"><tr><td class="text_10"><div id="text_10" align="center"> <br /><img src="images/loading.gif" /><br />Please wait....Loading<br /><br /></div></td></tr></table></div>';
	return strWaitDiv;
}
function stateChanged(){ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
		document.getElementById(divName).innerHTML=xmlHttp.responseText;
	}
}
function GetXmlHttpObject(handler){ 
	var objXMLHttp=null;
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}

function screenWidth(){
	var x;
	if (self.innerWidth) // all except Explorer
	{
		x = self.innerWidth;	
	}
	else if (document.documentElement && document.documentElement.clientWidth)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
	}
	
	return x;
}

function screenHeight(){
	var y;
	if (self.innerHeight) // all except Explorer
	{
		y = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		y = document.documentElement.clientHeight;
	}else if (document.body) // other Explorers
	{
		y = document.body.clientHeight;
	}
	return y;
}


function scrollWidth(){
	var x;
	if (self.pageXOffset) // all except Explorer
	{
		x = self.pageXOffset;
	}else if (document.documentElement && document.documentElement.scrollLeft)
		// Explorer 6 Strict
	{
		x = document.documentElement.scrollLeft;
	}else if (document.body) // all other Explorers
	{
		x = document.body.scrollLeft;		
	}
	return x;
}

function scrollHeight(){
	var y;
	if (self.pageYOffset) // all except Explorer
	{
		y = self.pageYOffset;
	}else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		y = document.documentElement.scrollTop;
	}else if (document.body) // all other Explorers
	{
		y = document.body.scrollTop;
	}
	return y;
}
function clearDivHeading(){	
	if(document.getElementById('PopUpHeading'))
		document.getElementById('PopUpHeading').innerHTML='';
}
function PopUpClose(){
	//var randomnumber = Math.floor(Math.random()*11);
	//alert(randomnumber);
	//Effect.Puff('PopUpDiv');
	//Effect.SlideUp('PopUpDiv');
	document.getElementById('PopUpDiv').style.display='none';
}
function showflaglayer(gotopage, heading, param, popwid){
	clearDivHeading();
	document.getElementById('PopUpHeading').innerHTML = heading;
	screenWidth1 	= screenWidth();
	screenHeight1 	= screenHeight();
	scrollWidth1 	= scrollWidth();
	scrollHeight1 	= scrollHeight();
	popupWidth		= popwid;
	popupHeight		= 100;
	scrollHeight1 += screenHeight1/2 - popupHeight;
	x = (screenWidth1-popupWidth)/2;
	y = (scrollHeight1);
	var PopUpDiv = document.getElementById('PopUpDiv');
	var PopUpRsDiv = document.getElementById('PopUpRsDiv');
	PopUpDiv.style.visibility= 'visible';
	PopUpDiv.style.width=popupWidth+'px';
	PopUpDiv.style.left=x+'px';
	PopUpDiv.style.top=y+'px';
	PopUpDiv.style.display='';
	PopUpRsDiv.style.width=popupWidth+'px';
	PopUpRsDiv.innerHTML = WaitDiv();
	var parameters = param;
	//var url = Web_Path+"profile/send_sms.php";
	var url = gotopage;
	xmlHttp = GetXmlHttpObject();
	divName = "PopUpRsDiv";
	xmlHttp.open("POST", url , true) ;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parameters.length );
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(parameters); 
	return false;
}
function ShowKort(){
	var gotopage = 'show_game.php';
	var heading = '<h3>Kort</h3>';
	var param = 'ShowGame=Kort';
	showflaglayer(gotopage, heading, param, '800');
}
-->