function asigna_valor_check(nombreobjeto, valor)
{ 	
	document.getElementById(nombreobjeto).value = valor;
}

function redirigir(sub_oferta,idioma,hotel,banner)
{   
	if (sub_oferta !="")
	{ 	
		hotel=hotel.toLowerCase();	 
		sub_oferta=sub_oferta.toUpperCase();
		banner=banner.toLowerCase();
		if (hotel == "marbella")
		{
			hotel ="";
		}
		
		if ( (hotel == "byblos") || (hotel == "banus") )
		{
			hotel = hotel + '-';
		}
		 
		ruta='http://www.'+hotel+'guadalpin-reservas.com/reservas/bin/selecciontarifas.php?idioma='+ idioma +'&oferta='+ sub_oferta + '&banner=' + banner + '&fechainiDia=' + document.ListaFechas.fechainiDia.value + '&fechainiMesAnyo=' + document.ListaFechas.fechainiMesAnyo.value + '&NHab=' + document.ListaFechas.NHab.value + '&noches='+ document.ListaFechas.noches.value;
 
     	parent.location=ruta;

	}
}

function VerSeleccion_oferta(oferta,hotel) {
if 	(hotel == "byblos") {
	if (oferta == "talaso") 
	{
		document.getElementById("seleccion_oferta").style.visibility="visible"; 

	}
	else
	{
		document.ListaFechas.submit();	
	} 
}
if 	(hotel == "marbella") {
	if (oferta == "talaso")
	{
		document.getElementById("seleccion_oferta").style.visibility="visible"; 

	}
	else
	{
		document.ListaFechas.submit();	
	} 
}
if 	(hotel == "banus") {
	if (oferta == "talaso")
	{
		document.getElementById("seleccion_oferta").style.visibility="visible"; 

	}
	else
	{
		document.ListaFechas.submit();	
	} 
}
}



function OcultarSeleccion_oferta() {
  document.getElementById("seleccion_oferta").style.visibility="hidden"; 
}
