function formulario(f) { 

	if(!check_email(f.email.value)){
	alert("Email Incorrecto.");
	f.email.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.email.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(!check_email(f.email2.value) || f.email2.value!=f.email.value){
	alert("Email Incorrecto.");
	f.email2.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.email2.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.acepto2.checked==false){
	alert("Debes aceptar los Terminos y Condiciones");
	f.acepto2.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.acepto2.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}


	if(f.nombre.value == ""){
	alert("Ingresa el Nombre");
	f.nombre.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.nombre.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.apellido.value == ""){
	alert("Ingresa el Apellido");
	f.apellido.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.apellido.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.password.value == "" || f.password.value.length<6){
	alert("Ingresa un Password correcto");
	f.password.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.password.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.password.value != compa(f.password.value)){
		alert("No se aceptan caracteres especiales en el Password");
		f.password.focus(); 
		// if the browser is Netscape 6 or IE
		if(document.all || document.getElementByID){
		// change the color of text field
		f.password.style.background = "yellow";
		}
		// make sure the form is not submitted
		return false;
	}

	if(!f.password.value || f.password2.value!=f.password.value){
	alert("Email Incorrecto.");
	f.password2.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.password2.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	
	if(f.provincia.value == ""){
	alert("Ingresa la Provincia");
	f.provincia.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.provincia.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}
	

}

function formulario2(f) { 

	if(!check_email(f.email.value)){
	alert("Email Incorrecto.");
	f.email.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.email.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(!check_email(f.email2.value) || f.email2.value!=f.email.value){
	alert("Email Incorrecto.");
	f.email2.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.email2.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.nombre.value == ""){
	alert("Ingresa el Nombre");
	f.nombre.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.nombre.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	if(f.apellido.value == ""){
	alert("Ingresa el Apellido");
	f.apellido.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.apellido.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}	
	

	if(f.provincia.value == ""){
	alert("Ingresa la Provincia");
	f.provincia.focus(); 
	// if the browser is Netscape 6 or IE
	if(document.all || document.getElementByID){
	// change the color of text field
	f.provincia.style.background = "yellow";
	}
	// make sure the form is not submitted
	return false;
	}

	
}