	function popUp(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=1020,height=500,left = 362.5,top = 350');");
	}
	
	function getlegal(id){
		var getstr;
		getstr = "lang=" + id;
		ajaxpack.getAjaxRequest("setlegal.php", getstr, processlegal, "txt");
	}
	
	function processlegal(){
		var myajax=ajaxpack.ajaxobj
		var myfiletype=ajaxpack.filetype
		if (myajax.readyState == 4){
			if (myajax.status==200 || window.location.href.indexOf("http")==-1){
				var response = myajax.responseText;
				document.getElementById("legal").innerHTML = response;
			}
		}
	}

	function switchCountry(cValue,loc){
		var today = new Date();
		var expire = new Date();
		var nDays = 30;
		if (nDays==null || nDays==0) nDays=1;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = "Country="+escape(cValue) + ";expires="+expire.toGMTString(); 
		window.location = loc;
	} 