	function OpenScreenShot(w, h, page)
	{
		var props="";
		props = "width="+w+",height="+h+",edge=sunken,resizable=0,status=0";
		window.open(page, '', props);
		return true;
	}
	
	function OpenStore(filename)
	{
		window.open(filename, "","height="+(screen.height-175)+",width=650,top=50,left="+(screen.width-650-50)+",location=no,menubar=yes,resizable=no,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no");
	}
	
	var cookie="popup";
	var exit=true;
	
	function popup(filename){
		if(exit){
			//if (getcookie(cookie)==""){
				var popup = window.open(filename, "","height=300,width=300,top="+(screen.height-400)+",left="+(screen.width-350)+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
				//self.focus();
				//setcookie();
			//}
		}
	}
	
	function getcookie(cookieName) {
		var id = cookieName + "=";
		var cookievalue = "";

		if (document.cookie.length > 0) {
			offset = document.cookie.indexOf(id);
			if (offset != -1) cookievalue = "x";
		}
		return cookievalue;
	}

	function setcookie () {
		var today = new Date();
		var expdate = new Date(today.getTime() + 2 * 24 * 60 * 60 * 1000);
		document.cookie = cookie+"="+escape ("done")+ ";expires=" + expdate.toGMTString();
	}