var MulticitiesHeaderArray = new Array(); var MulticitiesHeaderControler = 0; function doNext(el){ var f = el.form; var els = f.elements; var x, nextEl; for (var i=0, len=els.length; i length){ hasresults = true; var output = '
'; //I add a the title output += ''; //--------------------jalva Multicities---------------------// var multicitiesArray=new Array(); var lastIndex =0; var isMulticities = false; var tabIndex = 0; //----------------------------------------------------------// //["222","Long Island & Rum Cay","Rum Cay","Bahamas","RCY"] // //--------------------------------------------------------- // //alert(window.value); for(var i=0;i'; output += ''; tabIndex++; } } //----------------------------------------------------------// //adds the multicities options. // //MulticitiesHeaderArray contains all Multicities Regions // //for example: // // MulticitiesHeaderArray["West Germany"][0] = 32576 // // multicitiesArray[i][3] = 32576 // //----------------------------------------------------------// if(isMulticities){ if (MulticitiesHeaderArray.length > 1){ for(var i=0;i'; output += ''; output += ""; resultsArray[tabIndex] = regionCode; tabIndex++; } }else{ var MultiCitiestemp=''; for(var i=0;i'; output += ''; resultsArray[tabIndex] = regionCode; tabIndex++; } MultiCitiestemp+="[" + mlocationCode + "] " + location[4] + " "; //alert(location + ', ' + mlocationCode + ', ' +locationText); //output += ''; //resultsArray[tabIndex] = 'm' + mlocationCode; //tabIndex++; } //alert(MultiCitiestemp); //output += ""; //output += ""; //alert(output) } multicitiesArray = null; MulticitiesHeaderArray = new Array(); MulticitiesHeaderControler = 0; } //I add the close output += ''; output += '
Please select an airport from the list
"; output += "
Close
'; var pos = findPos(query); var top = pos[1]+20; var left = pos[0]; var box = document.getElementById(locationType+'Airport'+index+'Box'); box.innerHTML=output; box.style.position = "absolute"; box.style.left = left+"px"; box.style.top = top+"px"; box.style.display="block"; if(document.getElementById(id+"table").offsetHeight < 255) { getTableHeight(id +"div",id+"table"); getTableHeight(id +"frame",id+"table"); } else { document.getElementById(id+"div").style.height = "255px"; document.getElementById(id +"frame").style.height = "255px"; } fiPos(locationType+'Airport'+index , query) } else { hasresults = false; removeArray(resultsArray) var box = document.getElementById(locationType+'Airport'+index+'Box'); box.innerHTML=''; box.style.display='none'; } } } } return showContent; } function hideDates(){ x=0; while(document.getElementById("hid"+x)){ document.getElementById("hid"+x).style.visibility = 'hidden'; x++; } x=null; y=0; if(document.getElementById("numOfRooms").options){ y = document.getElementById("numOfRooms").options[document.getElementById("numOfRooms").selectedIndex].value; }else{ y=document.getElementById("numOfRooms").value } for(x=0;x< y;x++){ document.getElementById("hid"+x).style.visibility='visible'; } } function disable(){ if(document.getElementById("DriverAge").value==24){ document.getElementById("destination2").disabled=true; }else{ document.getElementById("destination2").disabled=false; } } function disableCars(){ if(document.getElementById("DriverAge").value==24){ document.getElementById("destination2").disabled=true; }else{ document.getElementById("destination2").disabled=false; } } function invalidChars(sTestString){ var regExp = /^[A-Za-z]{2,4}\d{1,4}/; return regExp.test(sTestString); } function checkFlightCode(objForm){ var f = objForm; if ((f.flightCode.value!="optional") && (f.flightCode.value!="")&&(!invalidChars(f.flightCode.value))){ alert("Please enter a valid flight number"); return false; } } function stopMouseWheel(){ if (window.attachEvent && document.getElementsByTagName) { var sel = document.getElementsByTagName("select"); for (i=0; i 0 || sURL.indexOf( "/opodo/LogObsServlet;jsessionid=62D9108C17561CFEBC8C7E554FF5C73A.fen_live2_02c" ) > 0 ) { window.open( sURL + sInternalURL + '&popUp=true', "", sOptions); } else { window.open('/opodo/LogObsServlet;jsessionid=62D9108C17561CFEBC8C7E554FF5C73A.fen_live2_02c'+ '?obs=POPUP&sLoc=' + escape(sURL) + sInternalURL + "&extra=" + escape(sURL) + '&popUp=true', "", sOptions); } } function openNewWindow(targetURL) { window.open(targetURL,'Opodo','resizable=no,scrollbars=yes,menubar=no,toolbar=yes,locationbar=no,status=yes,width=780,height=500'); } function reloadSearchPod(baseUrl,formName) { toChange = document.getElementById('operation'); toChange.value = "populate"; toGo = new URI(baseUrl); theForm = document.getElementById(formName); toGo.encodeForm(theForm); document.getElementById("contentFRM").src = toGo; } function firstAndLast() { lastDate = new Date(firstDate); firstDate.setTime(parseInt(firstDate.getTime()+getDayAsMilli(first))); lastDate.setTime(parseInt(lastDate.getTime()+getDayAsMilli(last))); touched=false; specialForPods(); } function specialForPods() { var serT = serverTime.getDate(); sevendays = new Date(serverTime.getTime()+(604800000)); var Dname = new Array(); Dname[0] = "departureDay"; Dname[1] = "checkInDay"; Dname[2] = "pickDate"; Dname[3] = "departureDateDay"; Dname[4] = "outboundDateDate"; Rname = "checkOutDay"; var Dnumber = new Array(); Dnumber[0] = sevendays.getDate()-1; Dnumber[1] = serT-1; Dnumber[2] = sevendays.getDate()-1; Dnumber[3] = serT; Dnumber[4] = serT; // fix for all outbound dates for (i=0; i < Dname.length; i++) { if(document.getElementById(Dname[i])){ document.getElementById(Dname[i]).selectedIndex = Dnumber[i]; } } // fix for Hotels return date if(document.getElementById(Rname)){ var lastDate2 = new Date(); var valueToPlus=3600*24*1000; lastDate2.setTime(serverTime.getTime()+valueToPlus); document.getElementById(Rname).selectedIndex = lastDate2.getDate()-1; //document.getElementById(Rname).selectedIndex=serverTime.getDate(); } if(document.getElementById("returnDateDate")){ document.getElementById("returnDateDate").selectedIndex = serverTime.getDate(); } } //--------------------jalva Multicities---------------------// function showMulticity(who){ if(document.getElementById(who)){ tipobj = document.getElementById(who) tipobj.style.display='inline'; } } function hideMulticity(who){ if(document.getElementById(who)){ tipobj = document.getElementById(who) tipobj.style.display='none'; //document.getElementById('pepe2').style.display='none'; } } function ddrivetip(who,thetext){ if(document.getElementById(who)){ tipobj = document.getElementById(who) tipobj.style.display='inline'; }else{ createDiv(who) tipobj = document.getElementById(who) } if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px" if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor if(thetext){ tipobj.innerHTML=thetext } enabletip=true return false } function hideddrivetip(){ enabletip=false tipobj.style.visibility="hidden" tipobj.style.left="-1000px" tipobj.style.backgroundColor='' tipobj.style.width='' } //--------------------end jalva Multicities---------------------// function createDiv(who){ document.body.appendChild(feDiv(who)); } function feDiv(who){ var eDiv = document.createElement("div"); eDiv.id=who; eDiv.style.position ="absolute"; eDiv.style.zIndex="10000"; eDiv.style.backgroundColor="#FF0000"; return eDiv; } document.write('') document.write('') document.write('')