function maskMail(user,domain,text) {
	if(text != '') {
		document.write('<a href="mailto:' + user+'&#64;' + domain + '">' + text + '</a>');
	} else {
		document.write('<a href="mailto:' + user + '&#64;' + domain + '">' + user + '&#64;' + domain +'</a>');
	}
}


function popup(url, width, height) {
	
	var posX = (screen.availWidth-width)/2;
	var posY = (screen.availHeight-height)/2;
        
	window.open(url, "", "width=" + width + ", height=" + height + ", scrollbars=0, resizable=0, screenX=" + posX + ", screenY=" + posY + ", left=" + posX + ", top=" + posY + "");
}