function showNRImessage(){if(document.getElementById("select").value=="NRI"){alert("We shall be opening the site for NRI's shortly.");document.getElementById("select").value="IND"}}function initRequest(A){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){isIE=true;return new ActiveXObject("Microsoft.XMLHTTP")}}}var ajaxmessage="AJAX Call can not be made......Browser does not support HTTP Request";var xmlHttp;var resCombo;var cityList;var prefferedCityList;var combo;var combolesscity;var actiontype;var allCityList;var bizActionMode;function GetXmlHttpObject(A){var B=null;if(window.XMLHttpRequest){B=new XMLHttpRequest()}else{if(window.ActiveXObject){B=new ActiveXObject("Microsoft.XMLHTTP")}}return B}function getDomesticList(B,D,C,A){actionParam=A;getCityList(B,D,C)}function takeYear(A){x=A.getYear();var B=x%100;B+=(B<38)?2000:1900;B=B.toString();B=B.substring(2,4);return B}function setDateValue(D){tdate=new Date();if(D=="INDIA"){tdate.setDate(tdate.getDate()+3)}else{tdate.setDate(tdate.getDate()+7)}var B=tdate.getDate();if(B<10){B="0"+B}var C=takeYear(tdate);var E=tdate.getMonth()+1;if(E<10){E="0"+E}var A=B+"/"+E+"/"+C}function getCityList(D,G,E,B,H){try{setDateValue(E);document.getElementById("loadingimage1").style.visibility="visible";document.getElementById("loadingimage1").style.display="";if(document.getElementById("country").value=="India - IN"){document.getElementById("domint").value="D"}else{document.getElementById("domint").value="I"}document.getElementById("city").style.visibility="hidden";document.getElementById("city").style.display="none";document.getElementById("lesscitiestable").style.visibility="visible";document.getElementById("lesscitiestable").style.display="";xmlHttp=GetXmlHttpObject();var A=document.getElementById(D).value;combo=document.getElementById("more");combolesscity=document.getElementById("less");combocountry=document.getElementById("country");document.getElementById("dom_other_city").style.visibility="visible";document.getElementById("dom_other_city").style.display="";document.getElementById("international_row").style.visibility="visible";document.getElementById("international_row").style.display="";actiontype=E;if(xmlHttp==null){alert(ajaxmessage)}else{var C=H+"formupdate";A=replaceAll(A,"&","_SSD_");paramString="BIZ_ACTION=GET_CITY_LIST_HOTEL_SEARCH&country="+A+"&actiontype="+actiontype+"&ispreffered="+B;xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",(C+"?"+paramString),true);xmlHttp.send(null);resCombo=combo;getstring="";document.getElementById("less").length=0;document.getElementById("less").options[0]=new Option("-- select --","");clearComboBoxes("more");clearComboBoxes("less")}}catch(F){alert(F)}}function stateChanged(){try{if(xmlHttp.readyState==4){var A=getResultArrayForXML(xmlHttp.responseText);allCityList=A[0];createListOfItems(combolesscity,A[0],"-- City --");if("hotelnames"==getstring){populateHotelNameList(A)}toggleCityPrefLinks(A[1],A[2])}}catch(B){alert("Error: No City Names Exits");clearComboBoxes("more");clearComboBoxes("less")}}function toggleCityPrefLinks(B,A){if(A=="true"){if(B=="Y"){document.getElementById("morecities").style.visibility="visible";document.getElementById("morecities").style.display="";document.getElementById("maincities").style.visibility="hidden";document.getElementById("maincities").style.display="none"}else{document.getElementById("maincities").style.visibility="visible";document.getElementById("maincities").style.display="";document.getElementById("morecities").style.visibility="hidden";document.getElementById("morecities").style.display="none"}}else{document.getElementById("maincities").style.visibility="hidden";document.getElementById("maincities").style.display="none";document.getElementById("morecities").style.visibility="hidden";document.getElementById("morecities").style.display="none"}}function getResultArrayForXML(I){var D=I.parseJSON();var G=D[0];var E=D[2];var A=D[3];var F=new Array();var B=new Array();var H=new Array();arrayResultPrefferedCity=G;var C=new Array(G.length);cityList=C;F[0]=arrayResultPrefferedCity;F[1]=E;F[2]=A;return F}function createListOfItems(E,D,C){if(D&&D.length>0){var A=0;E.options.length=0;if(C.indexOf("City")>-1){for(var B=0;B<D.length;B++){value=D[B].city;if(A==0){E.options[A++]=new Option(C,"");E.options[A]=new Option(value.substring(0,value.lastIndexOf(" -")),value)}else{E.options[A]=new Option(value.substring(0,value.lastIndexOf(" -")),value)}A++}}else{for(var B=0;B<D.length;B++){value=D[B];if(A==0){E.options[A++]=new Option(C,"");E.options[A]=new Option(value.substring(0,value.lastIndexOf(" -")),value)}else{E.options[A]=new Option(value.substring(0,value.lastIndexOf(" -")),value)}A++}}}document.getElementById("loadingimage1").style.visibility="hidden";document.getElementById("loadingimage1").style.display="none"}function clearComboBoxes(A){document.getElementById(A).length=0;document.getElementById(A).options[0]=new Option("-- select --","")}function showage(C,B){if(parseInt(C)>0){document.getElementById("schildage"+B).style.visibility="visible";document.getElementById("schildage"+B).style.display="";for(var A=1;A<=parseInt(C);A++){document.getElementById("childagevalue"+B+A).style.visibility="visible";document.getElementById("childAge"+B+A).style.visibility="visible";document.getElementById("childAge"+B+A).style.display=""}}else{document.getElementById("schildage"+B).style.visibility="hidden";document.getElementById("schildage"+B).style.display="none"}for(var A=parseInt(C)+1;;A++){if(!document.getElementById("childagevalue"+B+A)||!document.getElementById("childAge"+B+A)){break}document.getElementById("childagevalue"+B+A).style.visibility="hidden";document.getElementById("childAge"+B+A).style.visibility="hidden";document.getElementById("childAge"+B+A).style.display="none"}}function showhidechild(F,H,B){var G=H.substring(H.length-1);var E=H.substring(0,3);var C=H.substring(4,5);var D=0;if(G!="C"){document.getElementById("adult"+B).value=G;document.getElementById("adult"+B).selected=true}if("C"==G){document.getElementById("schild"+B).style.visibility="visible";document.getElementById("schild"+B).style.display="";document.getElementById("childvalue"+B).style.visibility="visible";document.getElementById("childvalue"+B).style.display="";document.getElementById("extra"+B).style.visibility="visible";document.getElementById("extra"+B).style.display="";document.getElementById("extravalue"+B).style.visibility="visible";document.getElementById("extravalue"+B).style.display="";if(E=="DBL"){document.getElementById("adult"+B).value=2;document.getElementById("adult"+B).selected=true}if(E=="TRP"){document.getElementById("adult"+B).value=3;document.getElementById("adult"+B).selected=true}if(E=="QUD"){document.getElementById("adult"+B).value=4;document.getElementById("adult"+B).selected=true}document.getElementById("child"+B).value=C;document.getElementById("child"+B).selected=true;D=C;showage(C,B)}else{document.getElementById("schildage"+B).style.visibility="hidden";document.getElementById("schildage"+B).style.display="none";document.getElementById("showtextschildage"+B).style.visibility="hidden";document.getElementById("showtextschildage"+B).style.display="none";for(var A=2;A>=parseInt(D)+1;A--){document.getElementById("childagevalue"+B+A).style.visibility="hidden";document.getElementById("childagevalue"+B+A).style.display="none";document.getElementById("childAge"+B+A).style.visibility="hidden";document.getElementById("childAge"+B+A).style.display="none"}document.getElementById("schild"+B).style.visibility="hidden";document.getElementById("schild"+B).style.display="none";document.getElementById("childvalue"+B).style.visibility="hidden";document.getElementById("childvalue"+B).style.display="none";document.getElementById("extra"+B).style.visibility="hidden";document.getElementById("extra"+B).style.display="none";document.getElementById("extravalue"+B).style.visibility="hidden";document.getElementById("extravalue"+B).style.display="none"}}function showhide(E,A){try{var B=parseInt(A,10);var D=0;if(document.getElementById("mydiv"+B)){while(true){D++;if(document.getElementById("mydiv"+D)){if(D<=B){document.getElementById("mydiv"+D).style.visibility="visible";document.getElementById("mydiv"+D).style.display=""}else{document.getElementById("mydiv"+D).style.visibility="hidden";document.getElementById("mydiv"+D).style.display="none"}}else{break}}}}catch(C){}}function GetChildAge(){for(i=1;i<=3;i++){document.getElementById("childage"+i).style.visibility="hidden";document.getElementById("childage"+i).style.display="none";document.getElementById("child"+i).style.visibility="hidden";document.getElementById("child"+i).style.display="none"}var A=(document.getElementById("noOfChildren").value-1)+(document.getElementById("cnbQty").value-1)+2;if(A>0){for(i=1;i<=A;i++){document.getElementById("childage"+i).style.visibility="visible";document.getElementById("childage"+i).style.display="";document.getElementById("child"+i).style.visibility="visible";document.getElementById("child"+i).style.display=""}}}function GetMoreCities(){document.getElementById("less").multiple=false;document.getElementById("more").multiple=false;var C=document.getElementById("city");var D=document.getElementById("lesscitiestable");D.selectedIndex=0;if(document.getElementById("morecities").innerHTML=="More Cities"||D.style.visibility=="visible"){var B=document.getElementById("more");B.selectedIndex=0;D.style.visibility="hidden";D.style.display="none";C.style.visibility="visible";C.style.display="";if(B.options.length<=1){createListOfItems(B,allCityList,"-- City --")}C=document.getElementById("city").id;document.getElementById("morecities").innerHTML="";document.getElementById("morecities").innerHTML="click to display main cities in the drop down"}else{var A=document.getElementById("less");A.selectedIndex=0;document.getElementById("morecities").innerHTML="";document.getElementById("morecities").innerHTML="click to display all cities in the drop down";D.style.visibility="visible";D.style.display="";C.style.visibility="hidden";C.style.display="none";document.getElementById("less").focus()}}function just2close(A){A.multiple=false;A.multiple=false;if(A==document.getElementById("less")){A.name="city";document.getElementById("more").name=""}else{document.getElementById("more").name="city";document.getElementById("less").name=""}}function isNumber(A){return typeof A=="number"&&isFinite(A)}function isNegative(A){if((parseInt(A,10))<0){return true}return false}function checkValue(){var C=document.hotelsearch.elements.noofnights.value;var B="";var A="N";if(!isNumber(parseInt(C,10))){B="\n ::Check the value for NoOfNights \n Please enter a proper INTEGER value";A="Y"}if(isNegative(C)){B=B+"\n ::Negative Values are not allowed";A="Y"}if(A=="N"){changeDepdate(C)}else{alert("Error!!\n"+B);B=""}}function changeDepdate(I){var D=new Date();var H=document.hotelsearch.elements.depDate.value;var A=H.split("/");var E="20"+A[2];var C=A[1]-1;var F=parseInt(A[0],10)+parseInt(I);D.setFullYear(E,C,F);var E=((D.getFullYear()).toString()).substring(2);var C=D.getMonth()+1;var B=D.getDate();if(C<10){C="0"+C}if(B<10){B="0"+B}var G=B+"/"+C+"/"+E;document.hotelsearch.elements.leaveDate.value=G}function date(){var A=document.hotelsearch.elements.depDate.value;document.hotelsearch.elements.datenew.value=A}function funadvancesearch(A){if(A=="A"){document.getElementById("adsearchTR").style.visibility=document.getElementById("adsearchTR").style.visibility=="visible"?"hidden":"visible";document.getElementById("adsearchTR").style.display=document.getElementById("adsearchTR").style.display==""?"none":""}}function submitval(Z,W){var Y="";error=true;if(document.getElementById("country").value==""){Y=Y+"Please fill in suitable country in 'country' field\n";error=false}if(document.getElementById("depDate_id").value==""||document.getElementById("depDate_id").value=="dd/mm/yy"){Y=Y+"Please fill in suitable date in 'check in date' field\n";error=false}if(document.getElementById("night_id").value==0){Y=Y+"No of Nights cannot be empty\n";error=false}if(document.getElementById("rooms").value==0){Y=Y+"No of Rooms cannot be zero\n";error=false}var D=0;var G=parseInt(document.getElementById("rooms").value);if(D>=10){error=false;Y=Y+"The maximum number of passengers allowed is 9\n"}if(error==false){alert("Following fields requires correction:\n"+Y)}else{if(document.getElementById("progressRowhot")){document.getElementById("progressRowhot").style.visibility="visible";document.getElementById("progressRowhot").style.display="";var T=document.getElementById("more").value;if(T==""){T=document.getElementById("less").value}T=T.substring(0,T.lastIndexOf("-"));T=T.replace(/^\s+|\s+$/g,"");var F=document.getElementById("country").value;F=F.substring(0,F.lastIndexOf("-"));document.getElementById("location2").innerHTML=T+",&nbsp;"+F;document.getElementById("nites2").innerHTML=document.getElementById("night_id").value;document.getElementById("norooms2").innerHTML=document.getElementById("rooms").value;var M=document.getElementById("hotelName").value;if(M==""){M="Any"}document.getElementById("searchhotelname2").innerHTML=M;var H=document.getElementById("whitelabelcurrency").value;var K=document.getElementById("budget").selectedIndex;var C=document.getElementById("budget").options[K].innerHTML;if(C==""||C=="Any"){H=""}document.getElementById("pricerange2").innerHTML=C;document.getElementById("pricecurrency2").innerHTML=H;var L=document.getElementsByName("filterHotelStarRating");var X="";if((L[0].checked&&L[1].checked&&L[2].checked)||(!L[0].checked&&!L[1].checked&&!L[2].checked)){X+="All"}else{for(var V=0;V<L.length;V++){if(L[V].checked){if(V==0){X+="5"}if(V==1){if(X.length>=1){X+=",4"}else{X+="4"}}if(V==2){if(X.length>=1){X+=",3"}else{X+="3"}}}}if(L[2].checked){X+=" Star & below"}else{X+=" Star"}}var J=document.getElementById("depDate_id").value;var E=document.getElementById("leaveDate").value;var U=document.getElementById("DateDisplayFormat").value;if(U=="MM/DD/YYYY"){var Q=document.getElementById("depDate_id").value.split("/");J=Q[1]+"/"+Q[0]+"/"+Q[2];var B=document.getElementById("leaveDate").value.split("/");E=B[1]+"/"+B[0]+"/"+B[2]}var a=document.getElementById("rooms").value;var O="";for(var R=0;R<a;R++){var S=R+1;var A=document.getElementById("adult"+S).value;var P=document.getElementById("child"+S).value;var I="";var N="";if(A>1){I="s"}if(P>1){N="&nbsp;Children"}else{if(P==1){N="&nbsp;Child"}}if(P<=0){O+="<strong>Room "+S+":</strong>&nbsp;"+A+"&nbsp;Adult"+I+"<br/><br/>"}else{O+="<strong>Room "+S+":</strong>&nbsp;"+A+"&nbsp;Adult"+I+","+P+N+"<br/><br/>"}}document.getElementById("roominfo2").innerHTML=O;document.getElementById("chkin2").innerHTML=J;document.getElementById("chkout2").innerHTML=E;document.getElementById("starating2").innerHTML=X;document.getElementById("documentBody").style.visibility="hidden";document.getElementById("documentBody").style.display="none"}if(W==null){W=""}if(document.getElementById("package")){if(document.getElementById("package").value=="Y"){document.hotelsearch.action=W+"offlinebookinghotelsearchresult.do?productType=HOT&tabHighLighter=packages";document.hotelsearch.BIZ_ACTION_MODE.value="PACKAGE_SEARCH_LIST"}else{document.hotelsearch.action=W+"offlinebookinghotelsearchresult.do?productType=HOT&tabHighLighter=hotels";document.hotelsearch.BIZ_ACTION_MODE.value="HOTEL_SEARCH_LIST"}}else{document.hotelsearch.action=W+"offlinebookinghotelsearchresult.do?productType=HOT&tabHighLighter=hotels";document.hotelsearch.BIZ_ACTION_MODE.value="HOTEL_SEARCH_LIST"}if(document.getElementById("cbDomInt")!=null&&document.getElementById("cbDomInt").checked==true){cbNationality=document.getElementById("cbDomInt").value;document.getElementById("select").value=cbNationality}document.hotelsearch.submit()}}function fnGetCity(){document.hotelsearch.action="hotelsearchchangecountryview.do?productType=HOT";document.hotelsearch.BIZ_ACTION_MODE.value="HOTEL_SEARCH_IN_CHANGE_COUNTRY";document.hotelsearch.submit()}objClickedDateComponent=null;previousValueOfClickedDateComponent=null;function startGuessingDate(B){document.hotelsearch.elements.leaveDate.value="-";objClickedDateComponent=B;previousValueOfClickedDateComponent=B.value;var A=document.getElementById("leaveDate");if(A!=null&&A.value!=""){runTillUserChangesDate()}}function startGuessingDate2(B){document.hotelsearch.elements.depDate.value="-";objClickedDateComponent=B;previousValueOfClickedDateComponent=B.value;var A=document.getElementById("depDate_id");if(A!=null&&A.value!=""){runTillUserChangesDate()}}function runTillUserChangesDate(){var A=objClickedDateComponent.value;if(previousValueOfClickedDateComponent==A){setTimeout("runTillUserChangesDate()",50)}else{javascript:diffDate()}}var calWin;var iMonthVal=36;var IE=document.all?true:false;function newCal(D,C){if(D=="depart"){var B=document.getElementById("calimage2")}else{var B=document.getElementById("calimage1")}var A=elementPosition(B);mouseX=parseInt(A.x,10);mouseY=parseInt(A.y,10);if(IE){calWin=window.open(C+"cal.screen?src="+D,"Calendar","location=no,menubar=no,toolbar=no,status=no,resize=yes,width=200,height=155,left="+mouseX+",top="+mouseY)}else{calWin=window.open(C+"cal.screen?src="+D,"Calendar","location=no,menubar=no,toolbar=no,status=no,resize=yes,width=265,height=155,left="+mouseX+",top="+mouseY)}}function elementPosition(B){var C=0,A=0;if(B.offsetParent){if(IE){C=B.offsetLeft;A=B.offsetTop+110}else{C=B.offsetLeft;A=B.offsetTop+175}while(B=B.offsetParent){C+=B.offsetLeft;A+=B.offsetTop}}return{x:C,y:A}}function set_dates(){var G="";var B="";var F=document.hotelsearch.start_mon.options[document.hotelsearch.start_mon.options.selectedIndex].value;var C=document.hotelsearch.start_date.options[document.hotelsearch.start_date.options.selectedIndex].value;var A=document.hotelsearch.end_mon.options[document.hotelsearch.end_mon.options.selectedIndex].value;var J=document.hotelsearch.end_date.options[document.hotelsearch.end_date.options.selectedIndex].value;var I=F.substring(0,F.indexOf("_"));var H=F.substring(F.indexOf("_")+1);if(parseInt(I)<10){I="0"+I}var E=A.substring(0,A.indexOf("_"));var D=A.substring(A.indexOf("_")+1);if(parseInt(E)<10){E="0"+E}document.hotelsearch.depDate.value=C+"/"+I+"/"+H;document.hotelsearch.leaveDate.value=J+"/"+E+"/"+D;document.hotelsearch.submit()}var disp_mon=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var curr_date=new Date();var curr_mon=curr_date.getMonth();var curr_year=curr_date.getFullYear();var current_date=curr_date.getDate();function MM_openBrWindow(C,A,B){window.open(C,A,B)}function getdatediff(){var P=new Date();var B=document.hotelsearch.startmonth.options[document.hotelsearch.startmonth.options.selectedIndex].value;var K=document.hotelsearch.startdate.options[document.hotelsearch.startdate.options.selectedIndex].value;var H=document.hotelsearch.endmonth.options[document.hotelsearch.endmonth.options.selectedIndex].value;var M=document.hotelsearch.enddate.options[document.hotelsearch.enddate.options.selectedIndex].value;var O=B.substring(0,B.indexOf("_"));var S=B.substring(B.indexOf("_")+1);if(parseInt(O)<10){O="0"+O}var N=H.substring(0,H.indexOf("_"));var R=H.substring(H.indexOf("_")+1);if(parseInt(N)<10){N="0"+N}document.hotelsearch.depDate.value=K+"/"+O+"/"+S;document.hotelsearch.leaveDate.value=M+"/"+N+"/"+R;P=new Date(P.getYear()+1900,P.getMonth(),P.getDate());var D=new Date(S,O-1,K);var A=new Date(R,N-1,M);var F=1000*60*60*24;var J=(Math.ceil((D.getTime()-P.getTime())/(F)));var I=(Math.ceil((A.getTime()-P.getTime())/(F)));var E=I-J;if(E>0){document.hotelsearch.noofnights.value=I-J;document.getElementById("label_night_id").innerHTML=I-J;if(document.getElementById("nite")!=null){if(E==1){document.getElementById("nite").innerHTML="<label>night</label>"}else{document.getElementById("nite").innerHTML="<label>nights</label>"}}}else{A.setTime(D.getTime()+F);var G=D.getDate();var Q=(D.getMonth()+1)+"_"+D.getFullYear();var C=A.getDate();var L=(A.getMonth()+1)+"_"+A.getFullYear();if(parseInt(G)<10){G="0"+G}if(parseInt(C)<10){C="0"+C}document.hotelsearch.startmonth.value=Q;document.hotelsearch.startdate.value=G;document.hotelsearch.endmonth.value=L;document.hotelsearch.enddate.value=C;getdatediff()}document.getElementById("nite").style.visibility="visible";document.getElementById("nite").style.display=""}function adjustpricerange(D){var F="POST";var B=true;try{var A="pages/service/hotel/ajax/currencytopricerangeconverter.jsp";var E="whitelabelcurrency="+document.getElementById("whitelabelcurrency").value;if(xmlHttp!=null){try{xmlHttp=null}catch(C){alert("Error :::::::: "+C)}}xmlHttp=GetXmlHttpObject();if(xmlHttp){xmlHttp.open(F,A,B);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.onreadystatechange=adjustPriceRangeCombo;xmlHttp.send(E)}}catch(C){}}function adjustPriceRangeCombo(){try{if(xmlHttp.readyState==4&&xmlHttp.status==200){var D=xmlHttp.responseText;var C=D.parseJSON();var A=document.getElementById("budget");A.options.length=0;A.options[0]=new Option("Any","");if(C!=null&&C.length>0){for(iCnt=0;iCnt<C.length;iCnt++){var B=iCnt+1;A.options[B]=new Option(C[iCnt].WLPriceRange,C[iCnt].basePriceRange)}}}}catch(E){}}function isEnter(C){var A;if(window.event){A=window.event.keyCode}else{if(C){A=C.which}else{return false}}if(A==13){var B="";error=true;if(document.getElementById("country").value==""){B=B+"Please fill in suitable country in 'country' field\n";error=false}if(document.getElementById("depDate_id").value==""||document.getElementById("depDate_id").value=="dd/mm/yy"){B=B+"Please fill in suitable date in 'check in date' field\n";error=false}if(document.getElementById("night_id").value==0){B=B+"No of Nights cannot be empty\n";error=false}if(document.getElementById("rooms").value==0){B=B+"No of Rooms cannot be zero\n";error=false}var E=0;var D=parseInt(document.getElementById("rooms").value);if(E>=10){error=false;B=B+"The maximum number of passengers allowed is 9\n"}if(error==false){alert("Following fields requires correction:\n"+B)}else{if(document.getElementById("progressRowhot")){document.getElementById("progressRowhot").style.visibility="visible";document.getElementById("progressRowhot").style.display="";document.getElementById("documentBody").style.visibility="hidden";document.getElementById("documentBody").style.display="none"}document.hotelsearch.action="offlinebookinghotelsearchresult.do?productType=HOT&tabHighLighter=hotels";document.hotelsearch.BIZ_ACTION_MODE.value="HOTEL_SEARCH_LIST";if(document.getElementById("cbDomInt")!=null&&document.getElementById("cbDomInt").checked==true){cbNationality=document.getElementById("cbDomInt").value;document.getElementById("select").value=cbNationality}document.hotelsearch.submit()}}else{return false}}var xmlHttp;var URL;var objResultDiv1;function loadHotDealByCity(C){var D="POST";var A=true;URL="cityhotdeals1.do";paramstring="hot_deal_city="+C+"&BIZ_ACTION_MODE=LOAD_HOT_DEAL_CITYWISE&IS_AJAX=Y";try{if(xmlHttp!=null){try{xmlHttp.abort()}catch(B){alert(B)}}xmlHttp=GetXmlHttpObject();if(xmlHttp){xmlHttp.open(D,URL,A);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.onreadystatechange=showResultInDiv;xmlHttp.send(paramstring)}}catch(B){alert("Error in retrieving Hot Deal List!!")}}function showResultInDiv(){try{if(xmlHttp.readyState==4&&xmlHttp.status==200){var A=document.getElementById("hotDealsDiv");A.innerHTML=xmlHttp.responseText;A.style.visibility="visible";A.style.display=""}}catch(B){alert(B)}}function load(B){var A=document.fgetcity.hot_deal_city.value;if(A=="Selected"){alert("Please Select a City")}else{loadHotDealByCity(A,B)}}function loadHotelTextBox(A){document.getElementById("hotelName").value=A;document.getElementById("hotelName").disabled="true"}function loadOTC(C){var B=document.fgetcity.hot_deal_city.value;var A=document.fgetcity.loginmode.value;if(B=="Selected"){alert("Please Select a City")}else{loadHotDealByCityOTC(B,A,C)}}function loadDefault(B){var A=document.fgetcity.hot_deal_city.value;if(A=="Selected"){alert("Please Select a City")}else{loadHotDealByCityDefault(A,B)}}function loadHotDealByCityOTC(E,B,D){var F="POST";var A=true;URL=D+"cityhotdeals2.do";paramstring="hot_deal_city="+E+"&IS_AJAX=Y&BIZ_ACTION_MODE=LOAD_OTC_HOT_DEAL_CITYWISE&loginmode="+B;try{if(xmlHttp!=null){try{xmlHttp.abort()}catch(C){alert(C)}}xmlHttp=GetXmlHttpObject();if(xmlHttp){xmlHttp.open(F,URL,A);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.onreadystatechange=showResultInDiv;xmlHttp.send(paramstring)}}catch(C){alert("Error in retrieving Hot Deal List!!")}}function loadHotDealByCityDefault(D,C){var E="POST";var A=true;URL=C+"cityhotdeals1.do";paramstring="hot_deal_city="+D+"&BIZ_ACTION_MODE=LOAD_HOT_DEAL_CITYWISE&IS_AJAX=Y";try{if(xmlHttp!=null){try{xmlHttp.abort()}catch(B){alert(B)}}xmlHttp=GetXmlHttpObject();if(xmlHttp){xmlHttp.open(E,URL,A);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.onreadystatechange=showResultInDiv;xmlHttp.send(paramstring)}}catch(B){alert(B);alert("Error in retrieving Hot Deal List!!")}};