//jueves, 02 de octubre de 2008 15:53:30
////// Pestañeo //////////

function rumbo_pestanieo(id_a,id_b,id_c){
	var a = document.getElementById(id_a);
	var b = document.getElementById(id_b);
	var c = document.getElementById(id_c);
	a.style.display = "inline";
	b.style.display = "none";
	c.style.display = "none";
}

////// crear_rumbo_c00

///// vuelos

function crear_rumbo_c00_vuelos(ni){//nacional-internacional

document.writeln("<table summary=\"\" height=\"170\" class=\"rumbo_c00_tabla\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"background-color: #ffffff;\">\n");
document.writeln("<form target=\"_blank\" method=\"post\" action=\"http://www.rumbo.es/viajes/vuelos/city.do\" id=\"rumbo_c00_vuelos\" name=\"rumbo_c00_vuelos\">\n");

document.writeln(	"<tr><td colspan=\"4\" style=\"height: 5px;\"></td></tr>");

document.writeln("	<tr>\n");
document.writeln("		<td rowspan=\"8\" width=\"2\"></td>\n");
document.writeln("		<td colspan=\"2\" align=\"center\" style=\"color: black;\">Origen</td>\n");
document.writeln("		<td rowspan=\"8\" width=\"2\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" align=\"center\">\n");
	rumbo_crear_ciudad('rumbo_c00_vuelos','origen','vuelo',ni);
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Fecha de Ida</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Adultos</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_vuelos','entrada_ida','vuelo');
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_adultos('rumbo_c00_vuelos','vuelo');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Fecha de vuelta</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Ni&ntilde;os</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_vuelos','salida_vuelta','vuelo');
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_ninios('rumbo_c00_vuelos','vuelo');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Destino</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"padding-left: 1px;\">\n");
	rumbo_crear_ciudad('rumbo_c00_vuelos','destino','vuelo',ni);
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\" style=\"padding-left: 1px;\"><a href=\n");
document.writeln("\"javascript:rumbo_buscar('rumbo_c00_vuelos','vuelo');\" title=\"Buscar Vuelo\"><img align=\n");
document.writeln("\"right\" src=\"http://blog.genteviajera.es/buscador_vuelos/imagenes/buscar4.gif\" alt=\"Buscar vuelo\" title=\"Buscar vuelo\" border=\"0\" /></a></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"4\" height=\"10\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("</form>");
document.writeln("</table>\n");

}

///// hoteles

function crear_rumbo_c00_hoteles(ni){//nacional-internacional

document.writeln("<table summary=\"\" height=\"170\" class=\"rumbo_c00_tabla\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"background-color: #ffffff;\">\n");
document.writeln("<form target=\"_blank\" method=\"post\" action=\"http://www.rumbo.es/alojamientos/hoteles/cityHotel.do\" id=\"rumbo_c00_hotel\" name=\"rumbo_c00_hotel\">\n");

document.writeln(	"<tr><td colspan=\"4\" style=\"height: 5px;\"></td></tr>");

document.writeln("	<tr>\n");
document.writeln("		<td rowspan=\"7\" width=\"2\"></td>\n");
document.writeln("		<td colspan=\"2\" align=\"center\" style=\"color: black;\">Destino</td>\n");
document.writeln("		<td rowspan=\"7\" width=\"2\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" align=\"center\">\n");
	rumbo_crear_ciudad('rumbo_c00_hotel','destino','hotel',ni);
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" align=\"center\" style=\"color: black;\">Fecha de entrada</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_hotel','entrada_ida','hotel');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" align=\"center\" style=\"color: black;\">Fecha de salida</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_hotel','salida_vuelta','vuelo');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td height=\"25\" colspan=\"2\" align=\"center\" valign=\"middle\" style=\"padding-top: 10px;\"><a href=\n");
document.writeln("\"javascript:rumbo_buscar('rumbo_c00_hotel','hotel');\" title=\"Buscar hoteles\"><img align=\n");
document.writeln("\"middle\" src=\"http://blog.genteviajera.es/buscador_vuelos/imagenes/buscar2.gif\" border=\"0\" alt=\n");
document.writeln("\"Buscar hoteles\" title=\"Buscar hoteles\" /></a></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"4\" height=\"10\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("</form>\n");
document.writeln("</table>");

}

///// vueloyhotel

function crear_rumbo_c00_vueloyhotel(ni){//nacional-internacional

document.writeln("<table summary=\"\" height=\"170\" class=\"rumbo_c00_tabla\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"background-color: #ffffff;\">\n");
document.writeln("<form target=\"_blank\" method=\"post\" action=\"http://www.rumbo.es/dynamic/vuelos/flightHotelCity.do\" id=\"rumbo_c00_vueloyhotel\" name=\"rumbo_c00_vueloyhotel\">\n");

document.writeln(	"<tr><td colspan=\"4\" style=\"height: 5px;\"></td></tr>");

document.writeln("	<tr>\n");
document.writeln("		<td rowspan=\"8\" width=\"2\"></td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Origen</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Habitaciones</td>\n");
document.writeln("		<td rowspan=\"8\" width=\"2\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_ciudad('rumbo_c00_vueloyhotel','origen','vueloyhotel',ni);
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_habitaciones('rumbo_c00_vueloyhotel');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Fecha de Ida</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Adultos</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_vueloyhotel','entrada_ida','vueloyhotel');
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_adultos('rumbo_c00_vueloyhotel','vueloyhotel');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Fecha de vuelta</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Ni&ntilde;os</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td style=\"margin: 50px;\" align=\"center\">\n");
	rumbo_crear_fechas('rumbo_c00_vueloyhotel','salida_vuelta','vueloyhotel');
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\">\n");
	rumbo_crear_ninios('rumbo_c00_vueloyhotel','vueloyhotel');
document.writeln("		</td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\">Destino</td>\n");
document.writeln("		<td align=\"center\" style=\"color: black;\"> </td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td align=\"center\" style=\"padding-left: 1px;\">\n");
	rumbo_crear_ciudad('rumbo_c00_vueloyhotel','destino','vueloyhotel',ni);
document.writeln("		</td>\n");
document.writeln("		<td align=\"center\"><a href=\n");
document.writeln("\"javascript:rumbo_buscar('rumbo_c00_vueloyhotel','vueloyhotel');\" title=\"Buscar vuelo + hotel\">\n");
document.writeln("<img align=\"middle\" alt=\"Buscar vuelo + hotel\" title=\"Buscar vuelo + hotel\" src=\n");
document.writeln("\"http://blog.genteviajera.es/buscador_vuelos/imagenes/buscar3.gif\" border=\"0\" /></a></td>\n");
document.writeln("	</tr>\n");

document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"4\" height=\"10\"></td>\n");
document.writeln("	</tr>\n");

document.writeln("</form>\n");
document.writeln("</table>");

}

////// fin crear_rumbo_c00

////// rumbo_crear480x250 //////////

function rumbo_crear480x250(idform, clave){

document.write('<table  summary="" width="480" border="0" style="border-collapse:collapse;" cellpadding="0">');
document.write('<tr>');
document.write('<td rowspan="5"  style="width:1px;background-color:#31649D;padding: 0;"></td>');
document.write('<td height="19" width="184" class="rumbo_descripcion00" valign="bottom"><img src=');
// Según clave cambio de idioma por petición (portugués)
if (clave == 'almadeviajante')
{
		document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="30" height="5" alt="" />Aeroporto ');
		document.write('de partida</td>');
		document.write('<td height="19" width="160" class="rumbo_descripcion00" valign="bottom">Data de ');
		document.write('partida</td>');
		document.write('<td height="19" width="134" class="rumbo_descripcion00" valign="bottom">Adultos<img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="10"');
		document.write('height="5" />Crianças</td>');
}else	{ 
		document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="30" height="5" alt="" />Aeropuerto ');
		document.write('de salida</td>');
		document.write('<td height="19" width="160" class="rumbo_descripcion00" valign="bottom">Fecha de ');
		document.write('salida</td>');
		document.write('<td height="19" width="134" class="rumbo_descripcion00" valign="bottom">Adultos<img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="10"');
		document.write('height="5" />Ni&ntilde;os</td>');
		}
//
document.write('<td rowspan="5" style="width:1px;background-color:#31649D;padding: 0;"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="184" height="27" class="rumbo_descripcion00"><img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="27" height="5" />');
	
rumbo_crear_ciudad(idform, 'origen', clave);
    
document.write('</td>');
document.write('<td width="160" height="27" class="rumbo_descripcion00"> ');

rumbo_crear_fechas(idform,"entrada_ida");
		
document.write('</td>');
document.write('<td width="134" height="27" class="rumbo_descripcion00"> ');

rumbo_crear_adultos(idform,'vuelo');

document.write('<img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="8" height="5" />');

rumbo_crear_ninios(idform);

document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="184" height="15" class="rumbo_descripcion00" valign="bottom"><img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="30" height="5">Destino</td>');
if (clave == 'almadeviajante')
{
		document.write('<td width="160" height="15" class="rumbo_descripcion00" valign="bottom">Data de ');
		document.write('regresso</td>');

}else	{
		document.write('<td width="160" height="15" class="rumbo_descripcion00" valign="bottom">Fecha de ');
		document.write('regreso</td>');
		}
document.write('<td width="134" height="15" class="rumbo_descripcion00"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="184" height="26" class="rumbo_descripcion00"><img src="http://www.rumbo.es/pictures/rmbes/t.gif" width="27" height="5">');

rumbo_crear_ciudad(idform, 'destino' ,clave);

document.write('</td>');
document.write('<td width="160" height="26" class="rumbo_descripcion00"> ');
              
rumbo_crear_fechas(idform,"salida_vuelta");

document.write('</td>');
document.write('<td width="134" height="26" class="rumbo_descripcion00"><a href="javascript:rumbo_buscar(\''+idform+'\',\'vuelo\');">');
document.write('<img src="http://www.rumbo.es/pictures/rmbes/pic74.gif" alt="Buscar vuelos" title="Buscar vuelos" border="0" /></a></td>');
document.write('</tr>')

}

////// Fin rumbo_crear480x250 //////////

////// Crear rumbo_200x200 ////////////

function crear_rumbo_200x200 () {

document.writeln("<form name=\"rumbo_200x200\" id=\"rumbo_200x200\" action=\"http://www.rumbo.es/viajes/vuelos/city.do\" method=\"post\" target=\"_blank\">\n");
document.writeln("<table summary=\"\" class=\"rumbo_200x200_tabla2\">\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"rumbo_200x200_texto\" style=\"padding: 0; border-color: #0089c8;\n");
document.writeln("		border-left-style: solid; border-right-style: solid; border-left-width: 1px;\n");
document.writeln("		border-right-width: 1px;\" colspan=\"2\">Origen</td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" class=\"rumbo_200x200_combos\" style=\"padding: 0; border-color: #0089c8; \n");
document.writeln("		border-left-style: solid; border-right-style: solid; border-left-width: 1px; border-right-width: 1px;\">\n");

rumbo_crear_ciudad('rumbo_200x200','origen');

document.writeln("		</td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" style=\"padding: 0; border-color: #0089c8; border-right-style: solid;\n");
document.writeln("		border-right-width: 1px; border-left-style: solid; border-left-width: 1px\">\n");
document.writeln("			<table summary=\"\" align=\"center\">\n");
document.writeln("				<tr>\n");
document.writeln("					<td class=\"rumbo_200x200_texto\">Fecha de salida</td>\n");
document.writeln("					<td style=\"width: 10px;\"></td>\n");
document.writeln("					<td class=\"rumbo_200x200_texto\">Adultos</td>\n");
document.writeln("				</tr>\n");
document.writeln("				<tr>\n");
document.writeln("					<td class=\"rumbo_200x200_combos\">\n");

rumbo_crear_fechas('rumbo_200x200','entrada_ida');

document.writeln("					</td>\n");
document.writeln("					<td style=\"width: 10px;\"></td>\n");
document.writeln("					<td class=\"rumbo_200x200_combos\" colspan=\"2\">\n");

rumbo_crear_adultos('rumbo_200x200','vuelo');

document.writeln("					</td>\n");
document.writeln("				</tr>		\n");
document.writeln("			</table>		\n");
document.writeln("		</td>			\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" class=\"rumbo_200x200_texto\" style=\"padding: 0; border-color: #0089c8;\n");
document.writeln("		border-left-style: solid; border-right-style: solid; border-left-width: 1px;\n");
document.writeln("		border-right-width: 1px;\">Destino</td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"rumbo_200x200_combos\" colspan=\"2\" style=\"padding: 0; border-color: #0089c8;\n");
document.writeln("		border-left-style: solid; border-right-style: solid; border-left-width: 1px;\n");
document.writeln("		border-right-width: 1px;\">\n");

rumbo_crear_ciudad('rumbo_200x200','destino');

document.writeln("		</td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" style=\"padding: 0; border-color: #0089c8; border-right-style: solid;\n");
document.writeln("		border-right-width: 1px; border-left-style: solid; border-left-width: 1px\">\n");
document.writeln("			<table summary=\"\" align=\"center\">\n");
document.writeln("				<tr>\n");
document.writeln("					<td class=\"rumbo_200x200_texto\">Fecha de regreso</td>\n");
document.writeln("					<td style=\"width: 10px;\"></td>\n");
document.writeln("					<td class=\"rumbo_200x200_texto\">Ni&ntilde;os</td>\n");
document.writeln("				</tr>\n");
document.writeln("				<tr>\n");
document.writeln("					<td class=\"rumbo_200x200_combos\">\n");

rumbo_crear_fechas('rumbo_200x200','salida_vuelta');

document.writeln("					</td>\n");
document.writeln("					<td style=\"width: 10px;\"></td>\n");
document.writeln("					<td class=\"rumbo_200x200_combos\">\n");

rumbo_crear_ninios('rumbo_200x200','vuelo');

document.writeln("					</td>\n");
document.writeln("				</tr>\n");
document.writeln("			</table>\n");
document.writeln("		</td>\n");
document.writeln("	</tr>\n");
document.writeln("</table>\n");
document.writeln("</form>");

}

////// Fin crear rumbo_200x200 ////////////


function rumbo_crear_habitaciones(idform){
	document.write('<input type="hidden" name="numRooms" value="" />');

	document.writeln('<select  class="rumbo_select00"  name="numRooms_'+idform+'" id="numRooms_'+idform+'">');
	document.writeln('<option value="1">1</option>');
	document.writeln('<option value="2">2</option>');
	document.writeln('<option value="3">3</option>');
	document.writeln('<option value="4">4</option>');
	document.writeln('<option value="5">5</option></select>\n');
}
function rumbo_crear_adultos(idform,tipo){
	document.write('<input type="hidden" name="paxAdt" value="" />');

	document.writeln('<select  class="rumbo_select00"  name="paxAdt_'+idform+'" id="paxAdt_'+idform+'">');
	document.writeln('<option value="1">1</option>');
	document.writeln('<option value="2" selected="selected">2</option>');
	document.writeln('<option value="3">3</option>');
	if(tipo == 'vuelo'){
	document.writeln('<option value="4">4</option>');
	document.writeln('<option value="5">5</option>');
	document.writeln('<option value="6">6</option>');
	document.writeln('<option value="7">7</option>');
	document.writeln('<option value="8">8</option>');
	document.writeln('<option value="9">9</option>');
	document.writeln('<input type="hidden" name="queryType" value="R" />');
	document.writeln('<input type="hidden" name="resultType" value="P" />');
	}
	if(tipo == 'vueloyhotel'){
	document.writeln('<input type="hidden" name="queryType" value="R" />');
	document.writeln('<input type="hidden" name="resultType" value="P" />');
	}
	document.writeln('</select>\n');
}
function rumbo_crear_ninios(idform) {
	document.write('<input type="hidden" name="paxChd" value="" />');

    document.writeln('<select  class="rumbo_select00"  name="paxChd_'+idform+'" id="paxChd_'+idform+'">');
	document.writeln('<option value="0" selected="selected">0</option>');
	document.writeln('<option value="1">1</option>');
	document.writeln('<option value="2">2</option>');
	document.writeln('<option value="3">3</option>');
	document.writeln('<option value="4">4</option>');
	document.writeln('<option value="5">5</option>');
	document.writeln('<option value="6">6</option>');
	document.writeln('<option value="7">7</option>');
	document.writeln('<option value="8">8</option>');
	document.writeln('<option value="9">9</option>');
	document.writeln('</select>\n');
}
function rumbo_crear_fechas(idform,direccion) {
	if (direccion == "entrada_ida")
	{
    document.write('<input type="hidden" name="depDate" value="" />');
	}
	if (direccion == "salida_vuelta")
	{
    document.write('<input type="hidden" name="retDate" value="" />');
	}
    var tabla_meses = new Array('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic');
	var fecha_hoy = new Date();
	var dia_actual = fecha_hoy.getDate();
	var mes_actual = fecha_hoy.getMonth ();
    var anio_actual = fecha_hoy.getFullYear ();
		var numero_dias_mes = rumbo_dame_numero_dias_mes(anio_actual,mes_actual);// salida >>
	var nombre_mes = tabla_meses[mes_actual];
	var anio_corto = anio_actual.toString().substring(2,4);

	document.writeln('<select class="rumbo_select00" name="fecha_dia'+idform+direccion+'" id="fecha_dia'+idform+direccion+'"');
	document.writeln('onChange="rumbo_act_dia_semana_fe_mesanyo (fecha_mesanio'+idform+direccion+'.selectedIndex,');
	document.writeln('fecha_dia'+idform+direccion+'.selectedIndex,'+dia_actual+','+idform+',');
	document.writeln('fecha_dia'+idform+direccion+',');
	document.writeln('fecha_mesanio'+idform+direccion+');">');

		 				for (i = dia_actual; i <= numero_dias_mes; i++){
        				var j = (i < 10) ? "0"+i : i; 
         				document.write('<option value='+j+'>'+i+'</option>');
						}
	document.write('</select>&nbsp;');

    document.writeln('<select name="fecha_mesanio'+idform+direccion+'"  id="fecha_mesanio'+idform+direccion+'" class="rumbo_select00", ');
	document.writeln('  onChange="rumbo1_actualizar_dias_fe_mesanyo(fecha_mesanio'+idform+direccion+'.selectedIndex,');
	document.writeln(''+mes_actual+','+dia_actual+','+idform+',');
	document.writeln('fecha_dia'+idform+direccion+',');
	document.writeln('fecha_mesanio'+idform+direccion+');');
	document.writeln('rumbo_act_dia_semana_fe_mesanyo  (fecha_mesanio'+idform+direccion+'.selectedIndex,');
	document.writeln('fecha_dia'+idform+direccion+'.selectedIndex,'+dia_actual+','+idform+',');
	document.writeln('fecha_dia'+idform+direccion+',');
	document.writeln('fecha_mesanio'+idform+direccion+');">');
    document.write('<option value='+rumbo_dame_valor_aniomes(anio_actual,mes_actual)+' selected="selected">'+nombre_mes+' '+anio_corto+'</option>');
         var i = mes_actual + 1;
         if (mes_actual == 0){
              j = 11;
         } else{ 
            j = mes_actual - 1;
         }
         for (k=1; k < 12; k++){
           			if (i == 12){
            		i = 0;
            		anio_actual = anio_actual + 1;
           			}          			
	 			 	nombre_mes = tabla_meses[i];
         			document.write(' <option value='+rumbo_dame_valor_aniomes(anio_actual,i)+'>'+nombre_mes+' '+anio_actual.toString().substring(2,4)+'</option>');
         			i++;
          }
	document.write('</select>');
}



function rumbo_crear_ciudad(idform, direccion, clave, ni){

	if(direccion == "origen"){
		document.write('<input type="hidden" name="depCity" value="" />');
	}
	if(direccion == "destino"){
		document.write('<input type="hidden" name="arrCity" value="" />');
	}

	if (ni == "n")
	{//-->
	document.write('<input type="text" name="City_text'+idform+direccion+'" id="City_text'+idform+direccion+'" value="" class="rumbo_select00" style="display:none" maxlength="25" size="23" />');	
	var ciudad = new Array('Alicante','Almeria','Asturias','Barcelona','Bilbao','Fuerteventura',
	'Gran Canaria','Granada','Ibiza','Jerez de la Frontera','La Coruna','Lanzarote','Madrid','Malaga',
	'Menorca','Palma de Mallorca','Pamplona','San Sebastian','Santander','Sevilla',
	'Tenerife','Valencia','Vigo','..OTRA OPCIÓN..'); 

	document.writeln('<select name="City'+idform+direccion+'" id="City'+idform+direccion+'" class="rumbo_select00" onChange="rumbo_otro('+idform+',City'+idform+direccion+',City_text'+idform+direccion+');">');

	document.writeln('<option value="Seleccione" selected="selected">Seleccione</option>');

    for (i=0; i<=ciudad.length-1; i++){
		var nombreciudad = ciudad[i];
		if (nombreciudad == '..OTRA OPCIÓN..') {
		
			document.writeln('<option value="'+nombreciudad+'" style="background-color: #DFE8F9; color: blue;">'+nombreciudad+'</option>');
		}else{

			document.writeln('<option value="'+nombreciudad+'">'+nombreciudad+'</option>');
		}
	}
    document.writeln('</select>');
	}//--<
	else
	{//-->
	document.write('<input type="text" name="City_text'+idform+direccion+'" id="City_text'+idform+direccion+'" value="" class="rumbo_select00" style="display:none" maxlength="25" size="23" />');	
	var ciudad = new Array('--- Nacional ---','Alicante','Almeria','Asturias','Barcelona','Bilbao','Fuerteventura',
	'Gran Canaria','Granada','Ibiza','Jerez de la Frontera','La Coruna','Lanzarote','Madrid','Malaga',
	'Menorca','Palma de Mallorca','Pamplona','San Sebastian','Santander','Sevilla',
	'Tenerife','Valencia','Vigo','--- Internacional ---','Amsterdam','Berlin','Bruselas','Buenos Aires',
	'Copenhague','Dublin','Dusseldorf','Estocolmo','Frankfurt','Ginebra','Lisboa','Londres','Mexico',
	'Miami','Milan','Munich','Nueva York','Oporto','Paris','Praga','Roma','Stuttgart','Venecia',
	'Viena','Zurich','..OTRA OPCIÓN..'); 

	document.writeln('<select name="City'+idform+direccion+'" id="City'+idform+direccion+'" class="rumbo_select00" onChange="rumbo_otro('+idform+',City'+idform+direccion+',City_text'+idform+direccion+');">');

	document.writeln('<option value="Seleccione" selected="selected">Seleccione</option>');

    for (i=0; i<=ciudad.length-1; i++){
		var nombreciudad = ciudad[i];
		if ((nombreciudad == '--- Nacional ---' )||(nombreciudad == '--- Internacional ---')||(nombreciudad == '..OTRA OPCIÓN..')) {
		
			document.writeln('<option value="'+nombreciudad+'" style="background-color: #DFE8F9; color: blue;">'+nombreciudad+'</option>');
		}else{

			document.writeln('<option value="'+nombreciudad+'">'+nombreciudad+'</option>');
		}
	}
    document.writeln('</select>');
	}//--<

	// Clave para - www.almadeviajante.com

	if ( (clave == 'almadeviajante')&&(direccion == 'origen') )
	{
	document.getElementById('City'+idform+direccion+'').options[37].selected = 'selected';
	}
	if ( (clave == 'almadeviajante')&&(direccion == 'destino') )
	{
	document.getElementById('City'+idform+direccion+'').options[44].selected = 'selected';
	}

	// Fin para - www.almadeviajante.com

	document.getElementById('City_text'+idform+direccion+'').value = document.getElementById('City'+idform+direccion+'').value;
}


function rumbo_otro(idform,combo,campotexto){
	var seleccionado =	combo.selectedIndex;
	var primero = combo.options.length;
	var ultimo = combo.options.length-1;
	if(seleccionado == ultimo){
		combo.style.display='none';
		campotexto.value='';
		campotexto.style.display='inline';
	}
	else{
	campotexto.value = combo.value;
	}
}
function rumbo_act_dia_semana_fe_mesanyo(mes_seleccion,dia_seleccion,hoy_mas3,formName,combodia,comboaniomes) { 
    var month_form = mes_seleccion;  
	var date_selec = comboaniomes.options[month_form].value;
    var day_form = dia_seleccion;  
	var day_selec = combodia.options[day_form].value;
	var year_selec = date_selec.substr(0,4);  
    var month_selec = date_selec.substr(4,2)*1; 
    var next_month = new Date(); 
    if (month_selec == 0) {  
       var month_setFullYear = month_selec;  
    }  
    if (month_selec <= 12) {  
       var month_setFullYear = month_selec - 1;  
    }  
    next_month.setFullYear(year_selec, month_setFullYear , day_selec);  
    var day_week = next_month.getDay();  
} 
function rumbo1_actualizar_dias_fe_mesanyo(indiceselec,actual_month,hoy_mas3,formName,combodia,comboaniomes) {
    var month_form = indiceselec; 
	var date_selec = comboaniomes.options[month_form].value;  
    var year_selec = date_selec.substr(0,4);  
    var month_selec = date_selec.substr(4,2)*1; 
    var next_month = new Date(); 
    next_month.setFullYear(year_selec, month_selec, 0);  
    var days_selec = next_month.getDate();  
    if ((month_selec - 1) != actual_month){  
       incremento = 0; 
    } 
    else{ 
       incremento = hoy_mas3 - 1;  
       days_selec = days_selec - hoy_mas3 + 1;  
    } 
	combodia.length = days_selec;
    var opt = "";  
    for (i=0; i<days_selec; i++)  { 
       var val_inc = i+incremento+1;   
       var val_option = (val_inc < 10) ? '0' + val_inc : val_inc; 
       var optx = opt.concat('option',i);  
       eval('optx = new Option(i+incremento+1,val_option)');  
       eval('combodia.options[i] = optx'); 
    } 
    combodia.selectedIndex = '0'
  }
function rumbo_dame_numero_dias_mes(anio_actual, mes_actual){
  		var mes_siguiente = new Date();
  		mes_siguiente.setFullYear(anio_actual,mes_actual + 1,0);
  		return (mes_siguiente.getDate());
}
function rumbo_dame_valor_aniomes(anio, mes){
  var val_anio = anio.toString();
	mes++;
  var val_mes = mes.toString();
  
  if (mes < 10){
     val_mes = "0" + val_mes;
  }

  mes--;
  return val_anio+val_mes;
}
function rumbo_buscar(idform,tipo){
	formulario = document.getElementById(idform);
	
	//  Si tipo es vuelo cargamos valor a "depCity" y formatos fecha de vuelo - dd/mm/aaaa -
	if(tipo == 'vuelo'){
		


		formulario.depCity.value = document.getElementById('City_text'+idform+'origen').value;

		formulario.depDate.value = document.getElementById('fecha_dia'+idform+'entrada_ida').value;
		formulario.depDate.value += "/";
		formulario.depDate.value += (document.getElementById('fecha_mesanio'+idform+'entrada_ida').value).substring(4,7);
		formulario.depDate.value += "/";
		formulario.depDate.value += (document.getElementById('fecha_mesanio'+idform+'entrada_ida').value).substring(0,4);

		formulario.retDate.value = document.getElementById('fecha_dia'+idform+'salida_vuelta').value;
		formulario.retDate.value += "/";
		formulario.retDate.value += (document.getElementById('fecha_mesanio'+idform+'salida_vuelta').value).substring(4,7);
		formulario.retDate.value += "/";
		formulario.retDate.value += (document.getElementById('fecha_mesanio'+idform+'salida_vuelta').value).substring(0,4);

		formulario.paxAdt.value = document.getElementById('paxAdt_'+idform+'').value;
		var adultos = parseInt(formulario.paxAdt.value);
		formulario.paxChd.value = document.getElementById('paxChd_'+idform+'').value;
		var ninios = parseInt(formulario.paxChd.value);
		
		// comprobamos total pasajeros
		var alerta = "";
		if ( (ninios+adultos) > 9 ){
		alerta += "El número total de adultos y niños no puede ser mayor que 9.";
		}
		if (alerta){
		alert(alerta);
		return;
		}

		if(typeof ( formulario.queryType_temp ) != "undefined"){//entonces ya que existe la opción i/v, se cambia el valor por defecto
			if(formulario.queryType_temp[0].checked){//se seleccionó ida y vuelta
				formulario.queryType.value = formulario.queryType_temp[0].value;
			}
			if(formulario.queryType_temp[1].checked){//se seleccionó solo ida
				formulario.queryType.value = formulario.queryType_temp[1].value;
			}
		}
		
	}
	//  Si tipo es hotel cargamos valor a "numRooms" y formatos fecha de hotel - aaaammdd -
	if(tipo == 'hotel'){
		//formulario.numRooms.value = document.getElementById('numRooms_'+idform+'').value;
		var newInput = document.createElement('input');
		newInput.type = 'hidden';
		newInput.name = 'paxAdt';
		newInput.value = '2';
		formulario.appendChild(newInput);

		var newInput2 = document.createElement('input');
		newInput2.type = 'hidden';
		newInput2.name = 'numRooms';
		newInput2.value = '1';
		formulario.appendChild(newInput2);

		var newInput3 = document.createElement('input');
		newInput3.type = 'hidden';
		newInput3.name = 'quickSearch';
		newInput3.value = 'Y';
		formulario.appendChild(newInput3);


		formulario.depDate.value = document.getElementById('fecha_mesanio'+idform+'entrada_ida').value;
		formulario.depDate.value += document.getElementById('fecha_dia'+idform+'entrada_ida').value;

		formulario.retDate.value = document.getElementById('fecha_mesanio'+idform+'salida_vuelta').value;
		formulario.retDate.value += document.getElementById('fecha_dia'+idform+'salida_vuelta').value;
	}
	//  Si tipo es vuelo+hotel cargamos valor a "depCity","numRooms" y formatos fecha de hotel - dd/mm/aaaa -
	if(tipo == 'vueloyhotel'){
		formulario.numRooms.value = document.getElementById('numRooms_'+idform+'').value;

		formulario.depCity.value = document.getElementById('City_text'+idform+'origen').value;

		formulario.depDate.value = document.getElementById('fecha_dia'+idform+'entrada_ida').value;
		formulario.depDate.value += "/";
		formulario.depDate.value += (document.getElementById('fecha_mesanio'+idform+'entrada_ida').value).substring(4,7);
		formulario.depDate.value += "/";
		formulario.depDate.value += (document.getElementById('fecha_mesanio'+idform+'entrada_ida').value).substring(0,4);

		formulario.retDate.value = document.getElementById('fecha_dia'+idform+'salida_vuelta').value;
		formulario.retDate.value += "/";
		formulario.retDate.value += (document.getElementById('fecha_mesanio'+idform+'salida_vuelta').value).substring(4,7);
		formulario.retDate.value += "/";
		formulario.retDate.value += (document.getElementById('fecha_mesanio'+idform+'salida_vuelta').value).substring(0,4);

		formulario.paxAdt.value = document.getElementById('paxAdt_'+idform+'').value;
		formulario.paxChd.value = document.getElementById('paxChd_'+idform+'').value;

		//redirección	
		document.forms[idform].action = "http://www.rumbo.es/dynamic/vuelos/flightHotelCity.do";
		document.forms[idform].submit();
	}

	// Carga de valores comunes, destino, adultos y niños.
	formulario.arrCity.value = document.getElementById('City_text'+idform+'destino').value;
	
	if (tipo != 'vueloyhotel')//entonces se envía.
	{
		document.getElementById(idform).submit();
	}	

}

function rumbo_buscar2(idform, tipo) {//busqueda sencilla - hasta ahora sólo para mod120x600
	
	formulario = document.getElementById(idform);

	var adultos = parseInt(formulario.paxAdt.value);
	var ninios = parseInt(formulario.paxChd.value);

	// comprobamos total pasajeros
	var alerta = "";
	if ( (ninios+adultos) > 9 ){
	alerta += "O n\u00FAmero total de adultos e crian\u00E7as n\u00E3o pode ser maior que 9.";
	}
	if (alerta){
	alert(alerta);
	return;
	}else {
		formulario.submit();
	}
}

/// Crear table2 form mod120x600 ó mod120x490

function rumbo_crear_mod120(formulario) {

document.writeln("<form style='margin-top: 0px; margin-bottom: 0px;' id=\""+formulario+"\" name=\""+formulario+"\"");
document.writeln("action=\"http://www.rumbo.pt/viajes/vuelos/city.do\" method=\"post\" target=\"_blank\">\n");
document.writeln("<input type=\"hidden\" name=\"queryType\" value=\"R\" />\n");
document.writeln("<input type=\"hidden\" name=\"resultType\" value=\"P\" />\n");
document.writeln("<table summary=\"\" style=\"text-align: left;\" class=\"table2\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"texto\" colspan=\"2\" height=\"40\" valign=\"top\">Aeroporto partida<br />\n");
document.writeln("		<input name=\"depCity\" maxlength=\"25\" size=\"16\" type=\"text\" /></td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"texto\" colspan=\"2\" height=\"40\" valign=\"top\">Data de partida<br />\n");
document.writeln("		<input name=\"depDate\" class=\"fecha\" value=\"dd/mm/aaaa\" type=\"text\" /></td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"texto\" colspan=\"2\" height=\"40\" valign=\"top\">Destino<br />\n");
document.writeln("		<input name=\"arrCity\" maxlength=\"25\" size=\"16\" type=\"text\" /></td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"texto\" colspan=\"2\" height=\"44\" valign=\"top\">Data de regresso<br />\n");
document.writeln("		<input name=\"retDate\" class=\"fecha\" value=\"dd/mm/aaaa\" type=\"text\" /></td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td class=\"texto\" height=\"50\" valign=\"top\">Adultos<br />\n");
document.writeln("		<select name=\"paxAdt\">\n");
document.writeln("		<option value=\"1\">1</option>\n");
document.writeln("		<option value=\"2\" selected=\"selected\">2</option>\n");
document.writeln("		<option value=\"3\">3</option>\n");
document.writeln("		<option value=\"4\">4</option>\n");
document.writeln("		<option value=\"5\">5</option>\n");
document.writeln("		<option value=\"6\">6</option>\n");
document.writeln("		<option value=\"7\">7</option>\n");
document.writeln("		<option value=\"8\">8</option>\n");
document.writeln("		<option value=\"9\">9</option>\n");
document.writeln("		</select>\n");
document.writeln("		</td>\n");
document.writeln("		<td class=\"texto\" valign=\"top\">Crian&ccedil;as<br />\n");
document.writeln("		<select name=\"paxChd\">\n");
document.writeln("		<option value=\"0\" selected=\"selected\">0</option>\n");
document.writeln("		<option value=\"1\">1</option>\n");
document.writeln("		<option value=\"2\">2</option>\n");
document.writeln("		<option value=\"3\">3</option>\n");
document.writeln("		<option value=\"4\">4</option>\n");
document.writeln("		<option value=\"5\">5</option>\n");
document.writeln("		<option value=\"6\">6</option>\n");
document.writeln("		<option value=\"7\">7</option>\n");
document.writeln("		<option value=\"8\">8</option>\n");
document.writeln("		<option value=\"9\">9</option>\n");
document.writeln("		</select>\n");
document.writeln("		</td>\n");
document.writeln("	</tr>\n");
document.writeln("	<tr>\n");
document.writeln("		<td colspan=\"2\" align=\"center\" height=\"20\" valign=\"middle\">\n");
document.writeln("<a href=\"javascript:rumbo_buscar2('"+formulario+"','vuelo');\">\n");
document.writeln("<img src=\"http://www.rumbo.pt/afiliados/rmbpt/imagenes/buscar.gif\" alt=\"Procurar v&ocirc;os\" title=\"Procurar v&ocirc;os\" border=\"0\" />\n");
document.writeln("</a>\n");
document.writeln("		</td>\n");
document.writeln("	</tr>\n");
document.writeln("</table>");

document.writeln("</form>");

}

///////////

function rumbo_crear_hotel (formulario) {// para rumbo_h00 y rumbo_h01

document.writeln("			<table summary=\"central\" style=\"width: 90%; height: 95%;\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n");
document.writeln("<form name=\""+formulario+"\" id=\""+formulario+"\" action=\"http://www.rumbo.pt/alojamientos/hoteles/cityHotel.do\" method=\"post\" target=\"_blank\">");
document.writeln("				<tr style=\"padding-top: 3px;\">\n");
document.writeln("					<td rowspan=\"5\"></td>	\n");
document.writeln("						<td class=\""+formulario+"_texto\" valign=\"bottom\">Data de entrada</td>\n");
document.writeln("					<td rowspan=\"5\"></td>\n");
document.writeln("						<td class=\""+formulario+"_texto\" valign=\"bottom\">Destino</td>\n");
document.writeln("					<td rowspan=\"5\"></td>\n");
document.writeln("				</tr>\n");
document.writeln("				<tr>\n");
document.writeln("						<td class=\""+formulario+"_texto\">");

rumbo_crear_fechas(formulario,"entrada_ida","hotel");

document.writeln("						</td>\n");
document.writeln("						<td class=\""+formulario+"_texto\">");

rumbo_crear_ciudad(formulario,"destino","hotel");

document.writeln("					</td>\n");
document.writeln("				</tr>\n");
document.writeln("				<tr>\n");
document.writeln("						<td class=\""+formulario+"_texto\" valign=\"bottom\">Data de sa&iacute;da</td>\n");
document.writeln("				</tr>\n");
document.writeln("				<tr>\n");
document.writeln("						<td  class=\""+formulario+"_texto\">");

rumbo_crear_fechas(formulario,'salida_vuelta','hotel');

document.writeln("						</td>\n");
document.writeln("						<td  class=\""+formulario+"_texto\"> \n");
document.writeln("							<table summary=\"\" style=\"width:83px;\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n");
document.writeln("								<tr>\n");
document.writeln("									<td class=\""+formulario+"_bordes\" style=\"border:1px solid black;border-right:0\"><a class=");
document.writeln("\""+formulario+"_boton\"  href=\n");
document.writeln("\"javascript:rumbo_buscar('"+formulario+"','hotel');\" title=\"Procurar hot&eacute;is\">Procurar</a></td><td style=\n");
document.writeln("\"border:1px solid black;border-left:0;background-color:#FFFFFF\"><a href=\"javascript:rumbo_buscar('"+formulario+"','hotel')\"><img src=\n");
document.writeln("\"http://www.rumbo.es/afiliados/rmbes/flechaDcha.bmp\" alt=\"Procurar hot&eacute;is\" title=\"Procurar hot&eacute;is\" style=");
document.writeln("\"width:16px;height:16px;\" border=\"0\" /></a></td>\n");
document.writeln("								</tr>\n");
document.writeln("							</table>\n");
document.writeln("						</td>\n");
document.writeln("				</tr>\n");
document.writeln("</form>");
document.writeln("			</table>\n");

}

///////////

function soloida(idform) {

	var formulario = document.getElementById(idform);
	
	if (formulario.queryType_temp[0].checked)
	{
		
		eval ("formulario.fecha_mesanio"+idform+"salida_vuelta.disabled = false");
		eval ("formulario.fecha_dia"+idform+"salida_vuelta.disabled = false");
		eval ("formulario.fecha_mesanio"+idform+"salida_vuelta.style.background = ''");	
		eval ("formulario.fecha_dia"+idform+"salida_vuelta.style.background = ''");
	}
	if (formulario.queryType_temp[1].checked)
	{

		eval ("formulario.fecha_mesanio"+idform+"salida_vuelta.disabled = true");
		eval ("formulario.fecha_dia"+idform+"salida_vuelta.disabled = true");
		eval ("formulario.fecha_mesanio"+idform+"salida_vuelta.style.background = '#D4D0C8'");	
		eval ("formulario.fecha_dia"+idform+"salida_vuelta.style.background = '#D4D0C8'");
	}

}

function rumbo_crearFormHotel (idform){

document.write('<table  summary="contenido" width="480" border="0" style="border-collapse:collapse;" cellpadding="0">');
	document.write('<tr>');
		document.write('<td rowspan="5"  style="width:1px;background-color:#31649D;padding: 0;"></td>');
		document.write('<td height="19" width="170" class="rumbo_descripcion00" valign="bottom"><img src=');
document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="25" height="5" alt="" />Destino</td>');
		document.write('<td height="19" width="160" class="rumbo_descripcion00" valign="bottom" align="left">Fecha de entrada</td>');
		document.write('<td height="19" width="134" class="rumbo_descripcion00" valign="bottom">Fecha de salida</td>');
		document.write('<td rowspan="5" style="width:1px;background-color:#31649D;padding: 0;"></td>');
	document.write('</tr>');
	document.write('<tr>');
		document.write('<td width="170" height="27"><img src=');
document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="22" height="5" alt="" />');

rumbo_crear_ciudad(idform,"destino","hotel");

		document.write('</td>');
		document.write('<td width="160" height="27" align="left"> ');

rumbo_crear_fechas(idform,"entrada_ida","hotel");

		document.write('</td>');
		document.write('<td align="left">');

rumbo_crear_fechas(idform,"salida_vuelta","hotel");

		document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
		document.write('<td width="170" height="15" class="rumbo_descripcion00" valign="bottom"><img src=');
document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="25" height="5" alt="" />Categor&iacute;a</td>');
		document.write('<td width="160" height="15" class="rumbo_descripcion00" valign="bottom" align="left">R&eacute;gimen</td>');
		document.write('<td width="134" height="15"></td>');
	document.write('</tr>');
	document.write('<tr>');
		document.write('<td width="170" height="26" class="rumbo_descripcion00"><img src=');
document.write('"http://www.rumbo.es/pictures/rmbes/t.gif" width="22" height="5" alt="" />');

rumbo_crear_categoria();

		document.write('</td>');
		document.write('<td width="160" height="26" class="rumbo_descripcion00" align="left">');

rumbo_crear_regimen();

		document.write('</td>');
		document.write('<td width="134" height="26" align="center"><a href=');
document.write('"javascript:rumbo_buscar(\''+idform+'\',\'hotel\');">');
document.write('<img src="http://www.rumbo.es/pictures/rmbes/pic74.gif" alt="Buscar hoteles" title="Buscar hoteles" border="0" /></a></td>');
	document.write('</tr>');
document.write('</table>');

}

function rumbo_crear_categoria (){

document.write('<select name="category" class="rumbo_select00">');
document.write('<option selected="selected" value="0">- S&iacute;n preferencia -</option>');
document.write('<option value="1">1 estrella</option>');
document.write('<option value="2">2 estrellas</option>');
document.write('<option value="3">3 estrellas</option>');
document.write('<option value="4">4 estrellas</option>');
document.write('<option value="5">5 estrellas</option>');
document.write('<option value="6">Apartamentos</option>');
document.write('</select>');

}

function rumbo_crear_regimen (){

document.write('<select name="boardType" class="rumbo_select00">');
document.write('<option selected="selected" value="0">- S&iacute;n preferencia -</option>');
document.write('<option value="1">S&oacute;lo alojamiento </option>');
document.write('<option value="2">Alojamiento y desayuno </option>');
document.write('<option value="3">Media pensi&oacute;n </option>');
document.write('<option value="4">Pensi&oacute;n completa </option>');
document.write('<option value="5">Todo incluido </option>');
document.write('</select>');

}