function openPopupWindow(title,text,width,height,top,left) {
	var page= "<HTML><HEAD><TITLE>"+title+"</TITLE><LINK rel='stylesheet' href='FormatsNewLayout.css'/></HEAD><BODY background=KaroNewLayout.png>" + text + "</BODY></HTML>"

	myWindow = window.open("","popupWindow","height="+height+",width="+width+", top="+top+", left="+left+", scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no")
	if (!myWindow.opener) {
		myWindow.opener = window
	}
	myWindow.document.write(page);
	myWindow.document.close(); // required; otherwise additional calls append, rather than replace, text
	myWindow.focus();
		
}

		
  // JS function for uncrypting spam-protected emails:
function Decrypt(strNormal) {

	strLower = strNormal.toLowerCase();
	var intCode = 0;
	var strResult = "";
	for(var i = 0; i < strNormal.length; i++) {
		strChar = strLower.charAt(i);
		if (strChar==";") {
			strChar = ":";
		}
		else if (strChar==","){
			strChar = "@";
		}
		else if (strChar=="="){
			strChar = ".";
		}
		else {
			intCode = strLower.charCodeAt(i);
			strChar = String.fromCharCode(97+122-intCode);
		}
		strResult += strChar;
	}			
	return strResult;
}
  // JS function for uncrypting spam-protected emails:
function MailLink(strUrl) {	
	location.href=Decrypt(strUrl);
}	
			

