// JavaScript Document

	function showPopUp()
	{
		var bg=document.getElementById("popupbg");
		var popup=document.getElementById("popup");
		
		bg.style.display="block";
		popup.style.display="block";
		
		var width=GetWidth();
		var height=GetHeight();
		
		popup.style.top=75;//(height-615)/2+"px";
		popup.style.left=(width-531)/2+"px";
		//document.body.style.overflow="hidden";
		window.scrollTo(0,0);
		//window.onscroll=function() { window.scrollTo(0,0) }
	}
	function closepopUp()
	{
		var bg=document.getElementById("popupbg");
		var popup=document.getElementById("popup");
		
		bg.style.display="none";
		popup.style.display="none";
		//document.body.style.overflow="scroll";
		window.onscroll=function() {}
	}
	function GetHeight()
	{
		var y = 0;
		if (self.innerHeight)
		{
				y = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight)
		{
				y = document.documentElement.clientHeight;
		}
		else if (document.body)
		{
				y = document.body.clientHeight;
		}
		return y;
	}
	function GetWidth()
	{
		var y = 0;
		if (self.innerWidth)
		{
				y = self.innerWidth;
		}
		else if (document.documentElement && document.documentElement.clientWidth)
		{
				y = document.documentElement.clientWidth;
		}
		else if (document.body)
		{
				y = document.body.clientWidth;
		}
		return y;
	}
