<!--
function valida(theForm){
	switch(theForm.op.value){
		case "1":
			if (!valMail(theForm.email)){
				alert(texto('1'));
				theForm.email.focus();
				theForm.email.select();
				return (false);
			}
			if (!valMail(theForm.confEmail)){
				alert(texto('2'));
				theForm.confEmail.focus();
				theForm.confEmail.select();
				return (false);
			}
			if (theForm.email.value!=theForm.confEmail.value){
				alert(texto('3'));
				theForm.email.focus();
				theForm.email.select();
				return (false);
			}
			if (theForm.password.value==""){
				alert(texto('4'));
				theForm.password.focus();
				theForm.password.select();
				return (false);
			}
			if (theForm.confPassword.value=="" ){
				alert(texto('5'));
				theForm.confPassword.focus();
				theForm.confPassword.select();
				return (false);
			}
			if (theForm.password.value!=theForm.confPassword.value){
				alert(texto('6'));
				theForm.password.value="";
				theForm.confPassword.value="";
				theForm.password.focus();
				return (false);
			}
			if (theForm.nombre.value=="" ){
				alert(texto('7'));
				theForm.nombre.focus();
				theForm.nombre.select();
				return (false);
			}
			if (theForm.apellido.value=="" ){
				alert(texto('8'));
				theForm.apellido.focus();
				theForm.apellido.select();
				return (false);
			}
			if (theForm.dia.value=="" ){
				alert(texto('9'));
				theForm.dia.focus();
				return (false);
			}
			if (theForm.mes.value=="" ){
				alert(texto('10'));
				theForm.mes.focus();
				return (false);
			}
			if (!rangoAno(theForm.ano)){
				alert(texto('11'));
				theForm.ano.focus();
				theForm.ano.select();
				return (false);
			}
			if (theForm.direccion.value==""){
				alert(texto('12'));
				theForm.direccion.focus();
				theForm.direccion.select();
				return (false);
			}
			if (theForm.ocupacion.value=="" ){
				alert(texto('13'));
				theForm.ocupacion.focus();
				return (false);
			}
			break;
		case "3":
			validarSQL(theForm);
			break;
	}	
	return (true);
}
function opOtro(theForm){
	if (theForm.operador.value==texto('14')){
		theForm.otro.disabled=false;
	}else{
		theForm.otro.disabled=true;
	}
}
//-->
