function EnviaContacto(){
	tf = document.form1;
	valOK = true;
	if(tf.nombre.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre prénom.");
		tf.nombre.focus();
	}
	if(tf.apellidos.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre nom.");
		tf.apellidos.focus();
	}
	if(tf.email.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre courrier électronique.");
		tf.email.focus();
	}
	if (!validaMail(tf.email.value) && valOK){
		valOK = false;
		alert("Vérifiez votre courrier électronique.");
		tf.email.focus();
	}
	if(tf.comentario.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre commentaire.");
		tf.comentario.focus();
	}
	if(tf.acepto.checked == false && valOK){
		valOK = false;
		alert("Acceptez la Réglementation en Vigueur de Sécurité de Données Personnelles.");
	}
	if(valOK){
		tf.action = "contsend.asp";
		tf.submit();
	}
}

function EnviaContactoReunion(){
	tf = document.form1;
	valOK = true;
	if(tf.empresa.value == "" && valOK){
		valOK = false;
		alert("Introduisez le prénom d’entreprise ou entité .");
		tf.empresa.focus();
	}
	if(tf.sector.value == "" && valOK){
		valOK = false;
		alert("Introduisez le secteur de l’activité.");
		tf.sector.focus();
	}
	if(tf.contacto.value == "" && valOK){
		valOK = false;
		alert("IIntroduisez la personne de contact.");
		tf.contacto.focus();
	}
	if(tf.direccion.value == "" && valOK){
		valOK = false;
		alert("Introduisez l’adresse.");
		tf.direccion.focus();
	}
	if(tf.cp.value == "" && valOK){
		valOK = false;
		alert("Introduisez le code postal.");
		tf.cp.focus();
	}
	if(tf.poblacion.value == "" && valOK){
		valOK = false;
		alert("Introduisez la ville.");
		tf.poblacion.focus();
	}
	if(tf.telefono.value == "" && valOK){
		valOK = false;
		alert("Introduisez le téléphone.");
		tf.telefono.focus();
	}
	if(tf.fax.value == "" && valOK){
		valOK = false;
		alert("Introduisez le fax.");
		tf.fax.focus();
	}
	if(tf.email.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre courrier électronique.");
		tf.email.focus();
	}
	if (!validaMail(tf.email.value) && valOK){
		valOK = false;
		alert("Vérifiez votre courrier électronique.");
		tf.email.focus();
	}
	if(tf.asistentes.value == "" && valOK){
		valOK = false;
		alert("Introduisez le numéro d’assistants.");
		tf.asistentes.focus();
	}
	if(tf.asistentes.value != "" && isNaN(parseInt(tf.asistentes.value)) && valOK){
		valOK = false;
		alert("Introduisez une valeur numérique pour le numéro d’assistants.");
		tf.asistentes.focus();
	}
	if(tf.desde.value == "" && valOK){
		valOK = false;
		alert("Introduisez la date de début.");
		tf.desde.focus();
	}
	if(tf.hasta.value == "" && valOK){
		valOK = false;
		alert("Introduisez la date de sortie.");
		tf.hasta.focus();
	}
	if(tf.alojamiento[0].checked == false && tf.alojamiento[1].checked == false && valOK){
		valOK = false;
		alert("Sélectionnez si vous voulez logement.");
		tf.sector.focus();
	}
	if(tf.comentario.value == "" && valOK){
		valOK = false;
		alert("Introduisez votre commentaire.");
		tf.comentario.focus();
	}
	if(tf.acepto.checked == false && valOK){
		valOK = false;
		alert("Acceptez la Réglementation en Vigueur de Sécurité de Données Personnelles.");
	}
	if(valOK){
		tf.action = "trabcontsend.asp";
		tf.submit();
	}
}

function AltaNews(bAlta){
	tf = document.form1;
	valOK = true;
	if((tf.userNews.value == "" || tf.userNews.value == "e-mail") && valOK){
		valOK = false;
		alert("Introduisez votre courrier électronique.");
		tf.userNews.focus();
	}
	if (!validaMail(tf.userNews.value) && valOK){
		valOK = false;
		alert("Vérifiez votre courrier électronique.");
		tf.userNews.focus();
	}
	if(valOK){
		//tf.action = "altasend.asp";
		tf.action = "";
		tf.OpcionNews.value = bAlta;
		tf.submit();
	}
}

function CargaDescubre(){
	objFlash = MM_findObj("CarrHome");
	objFlash.LoadMovie(1, "../img/descubre_int.swf?lang=4&urldescubre=../../img/descubre.swf");
}

function EnviaReserva(){
	tf = window.document.form1;
	valOK = true;
	if(tf.en.value == "entreé" && valOK){
		valOK = false;
		alert("Introduisez la date de début.");
	}
	if(tf.sa.value == "sortie" && valOK){
		valOK = false;
		alert("Introduisez la date de sortie.");
	}
	if(valOK){
		strURL = "http://www.vectork.net/webguest/peticiones/FrmPeticion.aspx?hotel=001&idioma=fr&en="+tf.en.value+"&sa="+tf.sa.value+"&rg=AD&p1=2&n1=0&b1=0&p2=0&n2=0&b2=0&p3=0&n3=0&b3=0";
		Wreserva = window.open(strURL);
	}
}

