function openPopUpProteccion(){
		window.open("popprotec.htm" , "" , "width=510,height=280,scrollbars=YES") 
}	

function openNewWindow(URLtoOpen, windowName, windowFeatures)
{ 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}

function centrar() {
	iz=(screen.width-document.body.clientWidth) / 2;
	de=(screen.height-document.body.clientHeight) / 2;
	moveTo(iz,de);
}


function homeRollOver(numero)
{
		if (numero==1) {
		var obj=document.getElementById('el_la_lleva');
		obj.src='img/el_la_lleva_on.jpg';
		}
		if (numero==2) {
		var obj=document.getElementById('ella_la_lleva');
		obj.src='img/ella_la_lleva_on.jpg';
		
		}
		
}
function homeRollOut(numero)
{
		if (numero==1) {
		var obj=document.getElementById('el_la_lleva');
		obj.src='img/el_la_lleva.jpg';
		}
		if (numero==2) {
		var obj=document.getElementById('ella_la_lleva');
		obj.src='img/ella_la_lleva.jpg';
		
		}
		
}
function comprobarValores() {
	
	if (document.form.nombre.value == "") {
		 alert("Debes introducir tu nombre.");
		 document.form.nombre.focus();
		 return false;
	}
	if (document.form.mail.value == "") {
		 alert("Debes introducir tu mail.");
		 document.form.mail.focus();
		 return false;
	}

  	var s = document.form.mail.value;
 	 var filter=/^[A-Za-z0-9_.]+[A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/;
  	if (filter.test(s)) {
    	
 	 }
 	 else {
   	 alert("¿Seguro que el email está bien escrito?");
		document.form.mail.focus();
		return false;
 	 }
	
	if (document.form.comentarios.value == "") {
		 alert("Debes introducir tus comentarios.");
		 document.form.comentarios.focus();
		 return false;
	}
}