// JavaScript Document

function registro(){
var error="Falta ingresar los siguientes datos:"+"\r";
var n="";

if (document.frm_registro.txtNombre.value=="" ){
error+="Nombre"+"\r";
	n="err";}
if (document.frm_registro.txtApellido.value=="" ){
error+="Apellido"+"\r";
	n="err";}
if (document.frm_registro.txtEmail.value=="" ){
error+="Email"+"\r";
	n="err";}
if (isNaN(document.frm_registro.codigo.value)) { 
     error+="Codigo de area no numerico"+"\r";
	 n="err";  
}

if (isNaN(document.frm_registro.txtTlf.value)) { 
     error+="Telefono no numerico"+"\r";
	 n="err";  
}
if (isNaN(document.frm_registro.txtCel.value)) { 
     error+="Telefono no numerico"+"\r";
	 n="err";  
}



if(n!=""){
alert(error);
return false;}    

if (n==""){
return true;}
}