<head> <link rel="stylesheet" type="text/css" href="http://www.venere.com/common/styles/wwwroot/vac_box.css"> </head> <script> function show_day_select(dName,dOnChange) { document.writeln("<select class=\"Ven_selectinput\" name=\""+dName+"\" onchange=\""+dOnChange+"\" >"); document.writeln("<option value=\"\">--"); var value=""; for(var i=1;i<=31;i++){ value=pad_zero(new String(i)); document.writeln("<option value=\""+value+"\">"+""+value); } document.writeln("</select>"); } function show_month_year_select(mName, mOnChange) { document.writeln("<select class=\"Ven_selectinput\" name=\""+mName+"\" onchange=\""+mOnChange+"\" >"); var monthArray=new Array("ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"); var today = new Date(); var month= today.getMonth(); var year = today.getFullYear()%100; var fullYear=today.getFullYear(); year=new String(year); year=pad_zero(year); document.writeln("<option value=\"\">---"); var countMonth=month; for(var i=0;i<12;i++,countMonth++){ if(countMonth%12==0 && i>0){ countMonth=0; year++; year=new String(year); year=pad_zero(year); fullYear++; } document.writeln("<option value=\""+(countMonth+1)+"/"+fullYear+"\">"+monthArray[countMonth]+" "+year); } document.writeln("</select>"); } function show_max_number_select(vName,vOnChange,maxNumber) { document.writeln("<select class=\"Ven_selectinput\" name=\""+vName+"\" onchange=\""+vOnChange+"\" >"); document.writeln("<option value=\"\">-"); for(var i=1;i<=maxNumber;i++){ document.writeln("<option value=\""+i+"\">"+i); } document.writeln("</select>"); } function clear_all( form ) { form.sd.selectedIndex = 0; form.cb_smy.selectedIndex = 0; form.ed.selectedIndex = 0; form.cb_emy.selectedIndex = 0; form.pval.selectedIndex = 0; form.rval.selectedIndex = 0; } function dateSelected( f ) { return f.sd.selectedIndex>0 && f.cb_smy.selectedIndex>0 && f.ed.selectedIndex>0 && f.cb_emy.selectedIndex>0; } function dateCorrection( d,c ) { if ( d.month>12 ) { d.month-=12; d.year+=1; } if ( d.day==31 && (d.month==4 || d.month==6 || d.month==9 || d.month==11) ) { d.day = 30; } else if ( d.day>31 ) { d.day=1; d.month+=1; if ( d.month>12 ) { d.month-=12; d.year+=1; } } if ( d.day>28 && d.month==2 ) { d.day = (d.year%4==0 && d.year%100!=0) || d.year%400==0 ? 29 : 28; } if ( d.year==c.year && d.month == c.month && d.day<c.day ) { d.day = c.day; } return d; } function getIndex( e, v ) { if ( e.options && e.options.length ) { for ( var i=0; i<e.options.length; ++i ) { if ( e.options[i].value==v ) { return i; } } } return 0; } function checkDate( cb ) { if ( cb!=null && cb.selectedIndex == 0 ) { clear_all( cb.form ); return true; } var f = cb.form; var now = new Date(); var current = { day: now.getDate(), month: now.getMonth()+1, year: now.getFullYear() }; var start = { day: f.sd.selectedIndex, month: f.cb_smy.selectedIndex+current.month-1, year: current.year }; var end = { day: f.ed.selectedIndex, month: f.cb_emy.selectedIndex+current.month-1, year: current.year }; var DAY = 24 * 3600 * 1000; var maxDelta = 90 * DAY; start = dateCorrection(start,current); end = dateCorrection(end,current); if ( dateSelected( f ) ) { startDate = new Date(start.year,start.month-1,start.day); endDate = new Date(end.year,end.month-1,end.day); if ( startDate.getTime()>=endDate.getTime() ) { endDate.setTime( startDate.getTime()+DAY ); end = {year:endDate.getFullYear(),month:endDate.getMonth()+1,day:endDate.getDate()}; end = dateCorrection(end,current); } else if ( endDate.getTime()-startDate.getTime()>maxDelta ) { endDate.setTime(startDate.getTime()+maxDelta); end = {year:endDate.getFullYear(),month:endDate.getMonth()+1,day:endDate.getDate()}; end = dateCorrection(end,current); } if ( f.pval.selectedIndex==0 ) { f.pval.selectedIndex = 2; } if ( f.rval.selectedIndex==0 ) { f.rval.selectedIndex = 1; } } f.sd.selectedIndex = start.day; f.ed.selectedIndex = end.day; f.cb_smy.selectedIndex = getIndex(f.cb_smy,start.month+"/"+start.year); f.cb_emy.selectedIndex = getIndex(f.cb_emy,end.month+"/"+end.year); } function check_sel_num( cb ) { if( cb != null && cb.selectedIndex == 0 ) { clear_all(cb.form); return true; } } function check_city_es(myf) { if (myf.city.value.length == 0) { alert(err_text_city_es); return false; } return true; } function check_pr_es(myf) { p = myf.pval.value; r = myf.rval.value; if ( (p == 0) && (r == 0) ) { alert(err_no_room_person_es); return false; } if ( (p != 0) && (r == 0) ) { alert(err_room_number_es); return false; } if ( (r != 0) && (p == 0) ) { alert(err_person_number_es); return false; } if ( parseInt(r) > parseInt(p) ) { alert(err_room_le_person_es); return false; } return true; } function pad_zero( value ) { while( value.length<2 ) value = String("0") + value; return value; } function split_month_year(month_year){ var index_separator=month_year.indexOf("/"); var array=new Array(month_year.substring(0,index_separator),month_year.substring(index_separator+1,month_year.length)); return(array); } function checkAdress() { return(adress); } var err_text_city_es = "Introduzca un destino"; var err_checkin_checkout_es = "es indispensable que especifique la fecha de llegada y salida"; var err_room_number_es = "es indispensable que especifique el número de habitaciones pedidas"; var err_person_number_es = "es indispensable que especifique el número de personas"; var err_room_le_person_es = "El número de personas tiene que ser igual o superior al número de habitaciones pedidas"; var err_no_room_person_es = "Le ruego introduzca el número de personas y habitaciones"; var go_submit = 0; var col_back = "#FFFF66"; var col_fore = "#000000"; var my_back = col_back; var my_count = 0; var h_blink = null; var my_form; function init(form) { _VER = navigator.appVersion.match(/\d*\.\d*/); _DOM = (document.getElementById) ? true : false; _NS4 = (document.layers) ? true : false; _NS5 = (navigator.appName.indexOf("Netscape") !=-1 && _VER>=5); _IE = (document.all) ? true : false; _IE4 = _IE && !_DOM; _Mac = (navigator.appVersion.indexOf("Mac") != -1); _IE4M = _IE4 && _Mac; _Opera = (navigator.userAgent.indexOf("Opera")!=-1); _Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1); _BrowserString = _NS4? "NS4" : (_NS5 ? "NS5" : "MSIE"); if((_BrowserString=="NS4")||(_BrowserString=="NS5")){ document.getElementById("widthBar1").style.width="460px"; document.getElementById("widthBar2").style.width="460px"; }else{ document.getElementById("widthBar1").style.width="410px"; document.getElementById("widthBar2").style.width="467px"; } form.geoid[0].checked=true; } function large_do_submit_es(f) { var form = f; var array_month_year=split_month_year(form.cb_smy.value); form.sm.value = pad_zero(array_month_year[0]); form.sy.value = array_month_year[1]; array_month_year=split_month_year(form.cb_emy.value); form.em.value = pad_zero(array_month_year[0]); form.ey.value = array_month_year[1]; form.pval.value= form.pval.value; form.rval.value = form.rval.value; if( form.sd.selectedIndex > 0 || form.cb_smy.selectedIndex >0 || form.ed.selectedIndex > 0 || form.cb_emy.selectedIndex > 0){ if( form.sd.selectedIndex <= 0 || form.cb_smy.selectedIndex <=0 || form.ed.selectedIndex <= 0 || form.cb_emy.selectedIndex <= 0){ alert(err_checkin_checkout_es); return(false); } } if(!check_pr_es(form)) { return(false); } if(form.geoid[0].checked){ if (check_city_es(form)) { return true; }else{ return false; } } form.city.value=""; return true; } </script> <script> function show_city_radio_general_large_es(vName,maxCol) { var cityArray=new Array("Londres","París","Roma","Barcelona","Nueva York","Venecia","Florencia", "Milano","Berlin","Amsterdam","Nápoles","Praga","Niza", "Estambul","Madrid","Lisboa","Zurich","Estocolmo","Atenas","Viena"); var geoIdArray=new Array("1509","5285","3425","1688","41437","350","637","303","5219","43110", "589","43505","1719","42884","1611","3508","42054","557543", "27181","33126"); document.writeln("<tr>"); for(var i=0;i<geoIdArray.length;i++){ if( ((i%maxCol)==0)&&(i>1) ){ document.writeln("</tr>"); document.writeln("<tr>"); } document.writeln("<td class=\"Ven_radioinput\" height=\"22\" nowrap>"); document.writeln("<input class=\"Ven_selectinput\" type=\"radio\" name=\""+vName+"\" value=\""+geoIdArray[i]+"\">"+cityArray[i]); document.writeln("</td>"); } document.writeln("</tr>"); } </script> <table class="Ven_tb" width="501px" height="301px" background="http://www.venere.com/img/rs/search_large/sfondo.gif" border="0" cellspacing="0"> <form id="v_es_large_search0" name="v_es_large_search0" method="GET" target="_new" action="http://www.venere.com/search/wrapper.php" onSubmit="return large_do_submit_es(this)" > <input type="Hidden" name="ref" value="2340"> <input type="Hidden" name="lg" value="es"> <input type="Hidden" name="sm" value=""> <input type="Hidden" name="sy" value=""> <input type="Hidden" name="em" value=""> <input type="Hidden" name="ey" value=""> <tr> <td class="Ven_td" align="left" colspan="2" cellspacing="0" cellpadding="0"> <a class="Ven_anchor" href="http://www.venere.com/search/wrapper.php?lg=es&ref=2340" target="_new"><img class="Ven_img" width="498px" height="33px" src="http://www.venere.com/img/rs/search_large/title/title_general_es.gif" alt="Hotel reserva - Venere.com" border="0"></a> </td> </tr> <tr> <td class="Ven_number"> <img src="http://www.venere.com/img/rs/search_large/numbers/1.gif"> </td> <td class="Ven_td"> <table class="Ven_firstrow" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="Ven_orangetxt" style="padding: 0px 0px 0px 2px" nowrap="true">Introduzca una ciudad</td> <td class="Ven_td" nowrap="true"> <input class="Ven_selectinput" type="radio" name="geoid" value="0" checked=""> <input class="Ven_selectinput" type="text" id="txtCity" name="city" value="" size="30" onchange="document.v_es_large_search0.geoid[0].checked=true"> </td> <td class="Ven_td" align="right"> <a class="Ven_anchor" href="http://www.venere.com/search/wrapper.php?lg=es&ref=2340" target="_new" > <img class="Ven_img" style="padding-left:3px;width:144px; height:58px;" src="http://www.venere.com/img/rs/search_large/logo.gif" alt="Hotel reserva - Venere.com" border="0"> </a></td> </tr> </table> </td> </tr> <tr> <td class="Ven_td"> </td> <td class="Ven_orangetxt" style="padding-left:2px;padding-bottom:4px">o Seleccione un destino</td> </tr> <tr> <td class="Ven_td"> </td> <td class="Ven_td"> <table class="Ven_radiotb" border="0" cellspacing="0" id="widthBar1"> <script>show_city_radio_general_large_es("geoid",5);</script> </table> </td> </tr> <tr> <td class="Ven_number" style="padding-top:6px;"> <img src="http://www.venere.com/img/rs/search_large/numbers/2.gif"> </td> <td class="Ven_td"><table><tr><td class="Ven_orangetxt">Seleccione las fechas</td></tr></table></td> </tr> <tr> <td class="Ven_td"> </td> <td class="Ven_td"> <table align="left" border="0" id="widthBar2" cellpadding="0" cellspacing="0" style="border-color:#666666; border-width:0 0 1 0;border-style:solid;margin-bottom:0"> <tr> <td class="Ven_label" align="left" style="padding-left:2px">Llegada: <script>show_day_select("sd","checkDate(this)");</script> <script>show_month_year_select("cb_smy","checkDate(this)")</script></td> <td class="Ven_label" align="left">Salida: <script>show_day_select("ed","checkDate(this)");</script> <script>show_month_year_select("cb_emy","checkDate(this)")</script></td> <tr> </table> </td> </tr> <tr> <td class="Ven_number" style="padding-top:6px;"> <img src="http://www.venere.com/img/rs/search_large/numbers/3.gif"> </td> <td class="Ven_td"><table><tr><td class="Ven_orangetxt">Personas y Habitaciones</td></tr></table></td> </tr> <tr> <td class="Ven_td"> </td> <td class="Ven_td"> <table align="left" border="0" width="70%" cellpadding="0" cellspacing="0" style="margin-bottom:4"> <tr height="21px"> <td class="Ven_label" style="padding-left:2px" valign="top">Personas: <script>show_max_number_select("pval","check_sel_num(this)",10);</script> </td> <td class="Ven_label" valign="top">Habitaciones: <script>show_max_number_select("rval","check_sel_num(this)",10);</script> </td> <td class="Ven_td" valign="bottom"> <input class="Ven_img" width="65px" height="21px" type="image" src="http://www.venere.com/img/rs/search_large/find/find_es.gif" /> </td> </tr> </table> </td> </tr> </form> </table> <script language="JavaScript">init(document.v_es_large_search0);</script>