function popup(url) {
    var xlen = 560;
    var ylen = 418;
    var xpos = (screen.width / 2) - xlen;
    var ypos = (screen.height / 2) - ylen;
    var pos = "left=" + xpos + ",top=" + ypos;
    var newwindow = window.open(url, "BiFi_popup", "width=" + xlen + ",height=" + ylen + ",scrollbars=no,location=no, dependent=yes,directories=no,status=no,menubar=no, toolbar=no,resizable=yes", +pos);
    newwindow.focus();
}

function sizeablePopup(url, xlen, ylen) {
    var xpos = (screen.width / 2) - xlen;
    var ypos = (screen.height / 2) - ylen;
    var pos = "left=" + xpos + ",top=" + ypos;
    var newwindow = window.open(url, "BiFi_popup", "width=" + xlen + ",height=" + ylen + ",scrollbars=no,location=no, dependent=yes,directories=no,status=no,menubar=no, toolbar=no,resizable=yes", +pos);
    newwindow.focus();
}

function UnCryptMailto(s) {
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(3)); 
	}
	return r;
}
function linkTo_UnCryptMailto(s) {
	location.href=UnCryptMailto(s);
}

function setGwInformationOption(target){
	if(target=="nurgw"){
		document.getElementById("peremail").checked = false;
		document.getElementById("perpost").checked = false;
		document.getElementById("nurgw").checked = true;
	} else {
		document.getElementById("nurgw").checked = false;
	}
}