// JavaScript Document
var frm = document.getElementById("suscriptForm");
frm.onsubmit = function(){
	var txt = document.getElementById("email_news").value;
	txt = txt.replace(/^\s+/, "");
	txt = txt.replace(/\s+$/, "");	
	var isOk = true;
	if(txt.length == 0){ 
		alert("El campo de correo no puede estar vac\xedo");
		isOk = false;
	}
	if(isOk && !/[A-Za-z][A-Za-z0-9\.]*@([A-Za-z][A-Za-z0-9\.])+/.test(txt)){
		alert("El campo de correo debe ser una cuenta de correo valida");
		isOk = false;
	}
	if(!isOk){
		document.getElementById("email_news").focus();
		return false;
	}
	return true;
}