
function popUp(variable) {
	window.open("http://www.welcometospain.net/"+variable+".htm","",'width=410,height=325,scrollbars=0,top=125,left=125');
	}
function inicio() {
	document.formulario.comunidad.options[0].selected=true;
	document.formulario.prov.options[0].selected=true;
	formar(0);
}

	function popUpacceso() {
	window.open("http://www.welcometospain.net/acceso.php","",'width=450,height=260,scrollbars=0,top=100,left=100');
	}
		
function validar() {
if (document.formulario.t_e.value=="" && document.formulario.empresa.value=="" && document.formulario.prov.value=="" && document.formulario.localidad.value=="") {
	alert("Debe rellenar al menos un campo");
	return false;
	}
	return true;
}

function validar_acceso() {
		if (document.acceso.usuario.value.length==0) {
			alert ("Solamente para Clientes que tengan contratado el Servicio de Ofertas o Calendario de Reservas. Introduzca su nombre de Usuario");
			return false; }
		if (document.acceso.clave.value.length==0) {
			alert ("Solamente para Clientes que tengan contratado el Servicio de Ofertas o Calendario de Reservas. Introduzca su Clave");
			return false; }
		}	

function suscribir() {
	opener.location.href="formularioregistro.php";
}


function popUpbig(id,nombre,foto) {
	window.open("big.php?id="+id+"&nombre="+nombre+"&foto="+foto,"",'width=320,height=400,scrollbars=0,top=100,left=400');
	}

function validar3() {
if (document.formulario_secciones.contacto.value=="" || document.formulario_secciones.telefono.value=="" || document.formulario_secciones.empresa.value=="" || document.formulario_secciones.email.value=="") {
	alert("Debe rellenar los campos seņalados con *");
	return false;
	}
	return true;
}
function validar4() {
if (document.formulario_secciones.contacto.value=="" || document.formulario_secciones.telefono.value=="" || document.formulario_secciones.email_contacto.value==""  || document.formulario_secciones.texto.value=="") {
	alert("Debe rellenar todos campos");
	return false;
	}
	return true;
}

function popUpficha(id) {
window.open("http://www.welcometospain.net/ficha.php?codigo="+id,"",'width=500,height=450,scrollbars=0,top=100,left=100,resizable=yes,fullscreen=0');
}
function popUpfichaingles(id) {
window.open("fichaingles.php?codigo="+id,"",'width=500,height=450,scrollbars=0,top=100,left=100,resizable=yes,fullscreen=0');
}

function popUpofert(id) {
window.open("http://www.welcometospain.net/ofert.php?codigo="+id,"",'width=350,height=400,scrollbars=1,top=100,left=150,resizable=no,fullscreen=0');
}
function popUp2(variable) {
	window.open(variable+".php","",'width=400,height=545,scrollbars=0,top=50,left=100');
}

function popUp22(variable) {
	window.open(variable+".php","",'width=400,height=400,scrollbars=0,top=125,left=125');
}

function Redirect()
{
	ville=document.Recherche.nom_ville.value;
	 marque=document.Recherche.code_chaine.options[document.Recherche.code_chaine.selectedIndex].value;
    URL="http://service.bfast.com/bfast/click?bfmid=37919570&siteid=41161542&bfpage=bfrd&bfurl=http%3A%2F%2Fwww.accorhotels.com%2Faccorhotels%2Flien_externe.svlt%3Fgoto=liste_hotel%26nom_ville%3D" + ville + "%26code_chaine%3D" + marque;
	 //IE
	 if (document.all)
     	msgWindow = window.open(URL,'newWin','top=0,left=0,location=yes,toolbar=yes,directories=yes,menubar=yes,resizable=yes,scrollbars=auto,status=yes,width=' +screen.availWidth+ ',height=' +screen.availHeight);
	 //Netscape
	 else if (document.layers) 		
		{
		msgWindow = window.open(URL,'newWin','location=yes,toolbar=yes,directories=yes,menubar=yes,resizable=yes,scrollbars=auto,status=yes');		
		window.msgWindow.moveTo(0,0);
		window.msgWindow.outerHeight = screen.availHeight;
		window.msgWindow.outerWidth = screen.availWidth;
		}
}

function taille () 
{
	if (navigator.appVersion.indexOf('Win')!=-1)
	{       
	  if (document.all) 
  	{
    	document.write('<input type="text" name="nom_ville" size="17" maxlength="20">')
  	} 
  	else if (document.layers) 
  	{
    	document.write('<input type="text" name="nom_ville" size="9" maxlength="20">')
  	}	 
  	else 
  	{
    	window.location.href=''
  	}
	}
	else if (navigator.appVersion.indexOf('Mac')!=-1)
	{
  	if (document.all) 
  	{
  	  document.write('<input type="text" name="nom_ville" size="17" maxlength="20">')
  	} 
  	else if (document.layers) 
  	{
    	document.write('<input type="text" name="nom_ville" size="15" maxlength="20">')
  	} 
  	else 
  	{
  	  window.location.href=''
  	}
	}
	else if (navigator.appVersion.indexOf('Lin')!=-1)
	{ 
  	document.write('<input type="text" name="nom_ville" size="10" maxlength="20">')
	}
	else
	{
  	document.write('<input type="text" name="nom_ville" size="10" maxlength="20">')
	} 
	}