






if (!document.getElementById)
	document.getElementById = function() { return null; }
function vacianewsletter() {
	if(document.formreg.txtmail.value == 'Escribe tu e-mail aqui'){
		document.formreg.txtmail.value = '';
	}
}
function restauranewsletter() {
	if(document.formreg.txtmail.value == ''){
		document.formreg.txtmail.value = 'Escribe tu e-mail aqui';
	}
}
window.onload = function() {
	document.formreg.txtmail.onfocus = function() {
		vacianewsletter();
	}

	document.formreg.txtmail.onblur = function() {
		restauranewsletter();
	}
}
function mail(name,domain){ 
 window.location = 'mailto:' + name + '@' + domain;
}
function abrirventana(pagina, nombreventana, width, height, windowfeatures) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	windowfeatures += ', width='+width+',height='+height+',top='+wint+',left='+winl;
	window.open(pagina, nombreventana, windowfeatures);
}
function chequearemail($email) {
	if (preg_match('!^[a-z0-9.+-_]+@([a-z0-9-]+(?:.[a-z0-9-]+)+)$!i',$email,$partes))
	{
		if (!checkdnsrr($partes[1]))
			return FALSE;
		else
			return TRUE;
	}
	else
		return FALSE;
}