	function popUpFoto(URL) {
		var	W = 500;
		var H = 500;
		var L = (screen.width - W) / 2;
		var T = (screen.height - H) / 2;
		day = new Date();
		id = day.getTime();
		var sRef = "picture.asp?img=" + URL;
		eval("page" + id + " = window.open(sRef, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+W+',height='+H+',left ='+L+',top ='+T+'');"		    );
	}
	
	function changeCosts() {
		//var num = parseFloat(document.forms.frmCart.selCountry.value.replace(/,/, "."));
		//var total = parseFloat(document.forms.frmCart.txtSubTotal.value.replace(/,/, "."));
		//document.forms.frmCart.txtSend.value = num
		//document.forms.frmCart.txtTotal.value = (total + num)
		//document.forms.frmCart.txtBtw.value = parseFloat(total*0,19)
		document.location.href= "cart.asp?lng=" + document.forms.frmCart.selCountry.value; 
	}

	function updateCart(nID, index) {
		var oFrm = document.forms.frmCart;
		var num = eval("oFrm.selNum" + nID + "[oFrm.selNum" + nID + ".selectedIndex].value");
		var dl = false;
		try { dl = eval("oFrm.bDownload" + nID + ".checked"); }
		catch (e) { dl = false; }
		document.location.href = "xt_CartFunctions.asp?act=upd&idx=" + index + "&nr=" + num + "&dl=" + dl + "&id=" + nID;
	}

	function addToBasket(nID) {
		document.location.href = "xt_CartFunctions.asp?act=add&id=" + nID + "&nr=1";
	}
	function checkEmail(strEmail) {
		return (strEmail.search(/^[\w\.\-_]*[A-Z|a-z|0-9]{1}@([\w\-_]+\.)+[A-Za-z]{2,4}$/) != -1) 
	}
	
	function fnLoginCenter(oFrm, sLogin) {
		if(oFrm.txtLoginUsername.value == '' || oFrm.txtLoginPassword.value == '') {
			alert(sLogin);
		} else {
			oFrm.submit();
		}
	} 
