/*
function foto_catalogue(id, width, height)
	{
		window.open("./util/foto_page_catalogue.php?&id="+id, "izdelek", "width="+width+" height="+height)
	}

function foto(id, width, height)
	{
		window.open("./util/foto_page.php?id="+id, "_blank", "width =" +width +",height =" +height +",location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no");
	}
*/
//decode mail
/*function mDec(ensl, enlsShow, addToHref) {
	if (enlsShow == undefined || enlsShow == "") {
		enlsShow = ensl;
	}
	if (addToHref == undefined) {
		addToHref = "";
	}

	s="";
	for(i=0; i<enlsShow.length; i++) {
		n=enlsShow.charCodeAt(i)-3;
		s+=String.fromCharCode(n);
	}
	nslvShow = s;
	
	a="pdlowr="+ensl; 
	s="";
	for(i=0; i<a.length; i++) {
		n=a.charCodeAt(i)-3;
		s+=String.fromCharCode(n);
	}
	mlto=s.substring(0,7);
	nslv=s.substring(7,50);
	document.write("<a class=\"email\" href=\""+mlto+nslv + "" + addToHref + "\">"+nslvShow+"</a>")			
}*/
//function mDec(ensl, enlsShow, addToHref) {
function mDec(ensl, enlsShow) {
	if (enlsShow == undefined || enlsShow == "") {
		enlsShow = ensl;
	}
	/*if (addToHref == undefined) {
		addToHref = "";
	}*/

	s="";
	for(i=0; i<enlsShow.length; i++) {
		n=enlsShow.charCodeAt(i);
		if (n >= 35 && n <= 126) {
			s+=String.fromCharCode((n-3));
		} else {
			s+=enlsShow.charAt(i);
		}
	}
	nslvShow = s;
	
	a="pdlowr="+ensl; 
	nslv = "";
	for(i=0; i<a.length; i++) {
		n=a.charCodeAt(i)-3;
		nslv+=String.fromCharCode(n);
	}
	document.write("<a class=\"email\" href=\"" + nslv + "\">"+nslvShow+"</a>")		
}
