Código HTML:
if(accion==1){
if (document.regtn.login.value=="")
{ alert("Ingrese Login!!");
document.regtn.login.focus();
return(false) ;
}
if (document.regtn.passwd.value=="")
{ alert("Ingrese password!!");
document.regtn.passwd.focus();
return ;
}
if (document.regtn.passwd2.value=="")
{ alert("Confirme password!!");
document.regtn.passwd2.focus();
return ;
}
document.frmdat.method="POST";
document.frmdat.action="register_new.php";
document.frmdat.submit();
}

