function confirmNRFATerms(){if(!document.forms[0].terms.checked){document.forms[0].page.value=document.forms[0].page.value;document.forms[0].action.value=document.forms[0].action.value}return true} function confirmUMNRTerms(){if(!document.forms[0].terms.checked){document.forms[0].requestPage.value=document.forms[0].page.value;document.forms[0].requestAction.value=document.forms[0].action.value;document.forms[0].terms.value="false";document.forms[0].page.value="ssw_UnaccompaniedMinorMessage";document.forms[0].action.value="SSWUnaccompaniedMinor";document.forms[0].terms.value="false"}return true}var win; function openSearchPopup(a,b,c){win=window.open(a,b,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200"+c);win.focus()}function submit(){document.forms[0].submit()}function SwapX(a){if(document[a]!=null&&browserVer>="4"||browserName=="Netscape"&&browserVer=="3")document[a].src="asterisk.gif"} function SwapY(a){if(document[a]!=null&&browserVer>="4"||browserName=="Netscape"&&browserVer=="3")document[a].src="p.gif"}var ageWin;function openAge(a){ageWin=window.open(a,"age","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=670,height=350,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");ageWin.focus()}var CityWin; function openCity(a,b,c,e){CityWin=window.open("https://ww3.dotres.com/meridia?posid=3ETB&amp;sid=<%Session.SessionID%>&amp;&amp;page=findCityMessage_default&amp;posid="+a+"&amp;action=findCity&amp;returnToForm="+b+"&amp;returnToTextBox="+c+"&amp;commercialFlag="+e,"CityWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=435,height=380,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");CityWin.focus()} function getChainCode(){document.forms[0].hotel1Value.value="SA"}function confirmRedirect(a){input_box=confirm(a);return input_box==true?true:false}function doRefresh(a,b,c,e,f){var g=document.forms[0].language.options[document.forms[0].language.selectedIndex].value,h=(new Date).getTime();self.location.replace(a+"&amp;language="+g+"&amp;action="+b+"&amp;timestamp="+h+"&amp;PageNumber="+c+"&amp;RecordLocator="+e+"&amp;page="+f)}var isLoaded=false;function loaded(){isLoaded=true} function openVT(a,b){window.open("https://www.virtuallythere.com/new/homePage.html?pnr=&amp;name=&amp;language="+a+"&amp;host="+b+"&amp;pcc=&amp;clocktype=12&amp;error=&amp;nosub=N","VTO","width=670,height=350,screenX=200,screenY=200,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes").focus()} var windowParam="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=670,height=300,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200",cRateWin;function openCarRateWin(a){cRateWin=window.open(a,"carPolicyWin",windowParam);cRateWin.focus()}var agencyInfoWin; function openAgencyRate(a){agencyInfoWin=window.open(a,"AgencyRateInformation","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=670,height=\t350,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");agencyInfoWin.focus()}var fareRulesWin; function openFareRules(a){fareRulesWin=window.open(a,"FareRules","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=670,height=500,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");fareRulesWin.focus()}var faqWin;function openfaq(a){faqWin=window.open("faq.html","faqWin",windowParam);faqWin.focus()} function openTaxesFees(a){var b=(new Date).getTime();actualUrl=a+"page=requestTaxesFeesMessage_common&amp;action=requestTaxesFees&amp;timestamp="+b;myTaxesFeesWin=window.open(actualUrl,"taxesFees","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=670,height=500,alwaysRaised=yes,dependent=yes");myTaxesFeesWin.focus()}var securityWin; function openSecurity(a){actualUrl=a+"&amp;action=requestSecurity";securityWin=window.open(actualUrl,"securityWin",windowParam);securityWin.focus()}var privacyWin;function openPrivacy(a){actualUrl=a+"&amp;action=requestPrivacy";privacyWin=window.open(actualUrl,"privacyWin",windowParam);privacyWin.focus()}var legalWin; function openLegalNotice(a){actualUrl=a+"&amp;action=requestLegalNotice";legalWin=window.open(actualUrl,"legalWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=670,height=300,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");legalWin.focus()}var customPrivacyWin;function openCustomprivacyPolicy(a){actualUrl=a+"&amp;action=requestCustomPrivacy";customPrivacyWin=window.open(actualUrl,"customPrivacyWin",windowParam);customPrivacyWin.focus()}var flexCalWin; function openFlexCal(a){flexCalWin=window.open(a,"flexCalWin",windowParam);flexCalWin.focus()}var flightInfoWin;function doServices(a){a=a.options[a.selectedIndex].value;var b=a.substring(11,a.length);a.substring(0,10)=="javascript"&&eval(b);if(a.substring(0,4)=="http")parent.location.href=a;if(a.substring(0,1)=="/")self.location.href=a}browserVer=parseInt(navigator.appVersion);browserName=navigator.appName; function opencurrency(a,b){var c="https://ww3.dotres.com/meridia?posid=3ETB&amp;sid=<%Session.SessionID%>&amp;&amp;page=requestConvertCurrencyMessage_common&amp;action=requestCurrencyConv";c=c+"&amp;amountFrom="+a+"&amp;currencyFrom="+b;currencyWin=window.open(c,"currencyWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=480,height=200,alwaysRaised=yes,dependent=yes,screenX=200,screenY=200");currencyWin.focus()} function opentoplink(){var a="link_requestAir_air_t";if(a=="link_requestAir_air_t")a="";if(a!=""){bannerWin=window.open(a,"bannerWin","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=670,height=300");bannerWin.focus()}} function openbottomlink(){var a="link_requestAir_air_b";if(a=="link_requestAir_air_b")a="";if(a!=""){bannerWin=window.open(a,"bannerWin","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");bannerWin.focus()}} function winCheck(){if(this.opener!=null){this.opener.document.open();this.opener.document.write("<HTML><HEAD><TITLE>SESSION EXPIRATION</TITLE></HEAD><BODY><p><u>Your session has expired. Please restart:</u></p>");this.opener.document.write("<p>goto <a href='http://www.minima/index.asp' target='_top'>Home page</a></p></BODY></HTML>");this.opener.document.close();this.opener.focus();self.close()}}function makeArray(a){this.length=a;return this} function init(){theDate=new Date;today=new Date;currMonth=today.getMonth();msPerDay=864E5;cookieString="dispMonth="+currMonth+";";document.cookie=cookieString;startOfString=document.cookie.indexOf("dispMonth");countbegin=document.cookie.indexOf("=",startOfString)+1;countend=document.cookie.indexOf(";",countbegin);if(countend==-1)countend=document.cookie.length;dispMonth=eval("document.cookie.substring(countbegin,countend)");firstOfMonth=new Date(today.getYear(),dispMonth,1);monthName=new Array("", "January","February","March","April","May","June","July","August","September","October","November","December")} function openCalendar(a,b,c,e,f){init();formNum=f;for(f=0;f<document.forms[formNum].length;f++){if(document.forms[formNum].elements[f].name.toLowerCase()==a.toLowerCase()){monthFld="elements["+f+"]";dispMonth=document.forms[formNum].elements[f].selectedIndex}if(document.forms[formNum].elements[f].name.toLowerCase()==b.toLowerCase())dateFld="elements["+f+"]";if(c!=""){if(document.forms[formNum].elements[f].name.toLowerCase()==c.toLowerCase())monthFld1="elements["+f+"]"}else monthFld1="";if(e!=""){if(document.forms[formNum].elements[f].name.toLowerCase()== e.toLowerCase())dateFld1="elements["+f+"]"}else dateFld1=""}windowOptions="toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=yes,width=275,height=290";calendarWindow=this.open("","calendarWindow",windowOptions);calendarWindow.callingForm=this;redraw(-1)} function redraw(a){calendarWindow.callingForm=this;if(navigator.appName=="Netscape"){newYear=today.getYear();newYear=1900+newYear}else newYear=today.getYear();var b=new Date;b.setMonth(dispMonth);b.getTime()<today.getTime()&&newYear++;firstOfMonth=new Date(newYear,dispMonth,1);calendarWindow.document.open();calTitle="<TITLE>.res [ calendar ]</TITLE>";calendarWindow.document.write(calTitle);drawCalendar(firstOfMonth);calendarWindow.document.write(htmlBuffer);calendarWindow.document.close();calendarWindow.callingForm= this;a==1?calendarWindow.document.forms[0].monthUp.focus():calendarWindow.document.forms[0].monthDn.focus()}function fillDate(a){var b=monthNum-1;a=a-1;eval("document.forms["+formNum+"]."+monthFld+".selectedIndex="+b);eval("document.forms["+formNum+"]."+dateFld+".selectedIndex="+a);monthFld1!=""&&eval("document.forms["+formNum+"]."+monthFld1+".selectedIndex="+b);dateFld1!=""&&eval("document.forms["+formNum+"]."+dateFld1+".selectedIndex="+a);calendarWindow.close()} function changeMonth(a){nextMonth=dispMonth;if(a==1)nextMonth++;else nextMonth--;if(nextMonth==12)nextMonth=0;if(nextMonth==-1)nextMonth=11;dispMonth=nextMonth;document.cookie="dispMonth="+nextMonth;redraw(a)} function drawCalendar(a){monthNum=a.getMonth()+1;htmlBuffer="<HTML><head><title>Calendar</title><link type='text/css' href='custom.css#custom.css' rel='stylesheet'></head><BODY BGCOLOR='#ffffff'><FORM>";htmlBuffer+="<CENTER><TABLE border='1' cellpadding='0' cellspacing='1' bordercolor='#9FCAC0'#6699cc><TH COLSPAN=2><INPUT class='input_button' TYPE=BUTTON NAME=monthDn VALUE=\"<<\" onClick=callingForm.changeMonth(-1)>";htmlBuffer+="<TH COLSPAN='3' class='font_title_dark'>"+monthName[monthNum];var b= a.getYear();if(b<=1900)b+=1900;htmlBuffer+=" "+b;htmlBuffer+="</FONT><td COLSPAN=2 align='center'><INPUT class='input_button' TYPE=BUTTON NAME=monthUp VALUE=\">>\" onClick=callingForm.changeMonth(1)></td><TR>";htmlBuffer+="<TH class='font_title_light_bold'><FONT COLOR=#000000>S</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>M</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>T</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>W</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>T</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>F</FONT><TH class='font_title_light_bold'><FONT COLOR=#000000>S</FONT><TR>"; drawBody(a);htmlBuffer+="</TABLE></BODY></HTML>"} function drawBody(a){a.setHours(11);a.setMinutes(30);thisMonth=a.getMonth();thisDate=a.getDate();firstSunday(a);for(w=0;w<6;w++){for(d=0;d<7;d++){date=a.getDate();htmlBuffer+="<TD ALIGN=CENTER class='font_default_center'>";if(a.getMonth()!=thisMonth)htmlBuffer+="<br />";else{htmlBuffer+="<INPUT class='input_cal' TYPE=BUTTON NAME="+date+" VALUE=";if(date<10)htmlBuffer+="0";htmlBuffer+=date+" onClick=callingForm.fillDate("+date+")>"}newTime=a.getTime()+msPerDay;a.setTime(newTime)}htmlBuffer+="<TR>"}htmlBuffer+= "</FORM>"}function firstSunday(a){for(;a.getDay()!=0;){newTime=a.getTime()-msPerDay;a.setTime(newTime)}}function openVTDest(a,b,c,e){var f=(new Date).getTime(),g=true;f=window.location.protocol+"//"+window.location.host+c.replace(/&amp;/gi,"&")+"&timestamp="+f;a=a+"?destCity="+escape(b)+"&url="+window.location.protocol+"//"+window.location.host+c.replace(/&/gi,"%26")+"&lang="+e;for(a=0;a<document.RequestAirForm.actionType.length;a++);} function openPopUpLov(a){popup=window.open(a,"LOV","toolbar=no,location=no,directories=no,status=no,scrollbars=auto,menubar=no,resizable=yes,copyhistory=yes,width=320,height=300,screenX=275,screenY=290")}function setSelect(){}function checkUMNRFlight(a){}function checkUMNR(a){}function showUMNRAge(a){}function hideUMNRAge(a){} function updateSearchPaths(){if(document.RequestAirForm.actionType==null)acType="nonFlex";else if(document.RequestAirForm.actionType.length==null)acType=document.RequestAirForm.actionType.value;else for(i=0;i<document.RequestAirForm.actionType.length;i++)if(document.RequestAirForm.actionType[i].checked){acType=document.RequestAirForm.actionType[i].value;break}if(document.getElementById("refundableSearch")!=null&&document.RequestAirForm.refundableSearch.checked&&(acType=="redeemMiles"||acType=="flex"|| acType=="flexSimple")){alert("meridia.air.request.notavalidpath");return false}else{if(acType!=null&&acType=="semiFlex"&&0){document.RequestAirForm.page.value="ssw_SemiFlexOutboundMessage";document.RequestAirForm.action.value="SSWSemiFlexService"}else if(acType!=null&&acType=="redeemMiles"){document.RequestAirForm.page.value="ssw_RedeemMilesSearchMessage";document.RequestAirForm.action.value="SSWAirAvailService"}else{document.RequestAirForm.page.value=document.RequestAirForm.requestPage.value=="ssw_CurrentItinReqMessage"? "ssw_CurrentItinReqMessage":"requestAirMessage_air";document.RequestAirForm.action.value="airRequest"}bbrPaxLimitCheck();return true}} function bbrPaxLimitCheck(){var a;a="DISABLE";a="true";var b=a=0,c=0,e=0,f=0,g=0,h=0,k=0,l=0,j=0,m=false;m=false;if(document.RequestAirForm.ADT!=null){numOfAdult=document.RequestAirForm.ADT.options[document.RequestAirForm.ADT.selectedIndex].value;a+=parseInt(numOfAdult)}if(document.RequestAirForm.YTH!=null){numOfYouth=document.RequestAirForm.YTH.options[document.RequestAirForm.YTH.selectedIndex].value;c=parseInt(numOfYouth);a+=c}if(document.RequestAirForm.CHD!=null){numOfChild=document.RequestAirForm.CHD.options[document.RequestAirForm.CHD.selectedIndex].value; parseInt(numOfChild);a+=parseInt(numOfChild)}if(document.RequestAirForm.SCR!=null){numOfSenior=document.RequestAirForm.SCR.options[document.RequestAirForm.SCR.selectedIndex].value;b=parseInt(numOfSenior);a+=b}if(document.RequestAirForm.STU!=null){numOfStudent=document.RequestAirForm.STU.options[document.RequestAirForm.STU.selectedIndex].value;e=parseInt(numOfStudent);a+=e}if(document.RequestAirForm.MIL!=null){numOfMilitary=document.RequestAirForm.MIL.options[document.RequestAirForm.MIL.selectedIndex].value; f=parseInt(numOfMilitary);a+=f}if(document.RequestAirForm.UMNR!=null){numOfMinors=document.RequestAirForm.UMNR.options[document.RequestAirForm.UMNR.selectedIndex].value;j=parseInt(numOfMinors);a+=j}if(document.RequestAirForm.IFS!=null){numOfIfs=document.RequestAirForm.IFS.options[document.RequestAirForm.IFS.selectedIndex].value;a+=parseInt(numOfIfs)}if(document.RequestAirForm.INF!=null){numOfInf=document.RequestAirForm.INF.options[document.RequestAirForm.INF.selectedIndex].value;g+=parseInt(numOfInf)}if(document.RequestAirForm.STR!= null){numOfSTR=document.RequestAirForm.STR.options[document.RequestAirForm.STR.selectedIndex].value;h=parseInt(numOfSTR);a+=h}if(document.RequestAirForm.EMI!=null){numOfEMI=document.RequestAirForm.EMI.options[document.RequestAirForm.EMI.selectedIndex].value;k=parseInt(numOfEMI);a+=k}if(document.RequestAirForm.DIS!=null){numOfDIS=document.RequestAirForm.DIS.options[document.RequestAirForm.DIS.selectedIndex].value;l=parseInt(numOfDIS);a+=l}if(b>0&&(b!=a||g>0))alert("Cannot combine Senior Citizen with other passenger types. Please make a separate reservation for this passenger type."); else if(c>0&&(c!=a||g>0))alert("Cannot combine Youth with other passenger types. Please make a separate reservation for this passenger type.");else if(e>0&&(e!=a||g>0))alert("Cannot combine Student with other passenger types. Please make a separate reservation for this passenger type.");else if(f>0&&(f!=a||g>0))alert("Cannot combine Military with other passenger types. Please make a separate reservation for this passenger type.");else if(h>0&&(h!=a||g>0))alert("meridia.air.request.stateResidentnotcombine"); else if(k>0&&(k!=a||g>0))alert("meridia.air.request.emigrantnotcombine");else if(l>0&&(l!=a||g>0))alert("meridia.air.request.disablednotcombine");else if(j>0&&(j!=a||g>0))alert("meridia.air.request.minornotcombine");else{bbrFlag="false";b="";if(document.RequestAirForm.returnCity!=null)b=document.RequestAirForm.returnCity.value;else if(document.RequestAirForm.returnCity1!=null)b=document.RequestAirForm.returnCity1.value;if(a>4&&bbrFlag==true){a=confirm("This airline does not allow greater than 4 passengers."); if(a==true){openVTDest("http://ccs.sabre.com/Sandbox/Meridia",b,"https://ww3.dotres.com/meridia?posid=3ETB&sid=<%Session.SessionID%>&action=pause&page=requestAirMessage_air&language=US","en");document.RequestAirForm.submit()}}else{j>0&&0&&setUMNR();openVTDest("http://ccs.sabre.com/Sandbox/Meridia",b,"https://ww3.dotres.com/meridia?posid=3ETB&sid=<%Session.SessionID%>&action=pause&page=requestAirMessage_air&language=US","en");document.RequestAirForm.submit()}}} function setUMNR(){document.RequestAirForm.requestPage.value=document.RequestAirForm.page.value;document.RequestAirForm.requestAction.value=document.RequestAirForm.action.value;if(document.RequestAirForm.actionType==null||document.RequestAirForm.actionType.length==null)document.RequestAirForm.requestActionType.value="nonFlex";else for(var a=0;a<document.RequestAirForm.actionType.length;a++)if(document.RequestAirForm.actionType[a].checked)document.RequestAirForm.requestActionType.value=document.RequestAirForm.actionType[a].value; document.RequestAirForm.page.value="ssw_UnaccompaniedMinorMessage";document.RequestAirForm.action.value="SSWUnaccompaniedMinor";return true}function checkMexicoCities(a){for(var b=new Array("CUN","SJD","MZT","ZIH","CZM","PVR"),c=0;c<b.length;c++)if(a.value==b[c])return true;return false}function MM_swapImgRestore(){var a,b,c=document.MM_sr;for(a=0;c&&a<c.length&&(b=c[a])&&b.oSrc;a++)b.src=b.oSrc} function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=[];var b,c=a.MM_p.length,e=MM_preloadImages.arguments;for(b=0;b<e.length;b++)if(e[b].indexOf("#")!=0){a.MM_p[c]=new Image;a.MM_p[c++].src=e[b]}}} function MM_findObj(a,b){var c,e;b||(b=document);if((c=a.indexOf("?"))>0&&parent.frames.length){b=parent.frames[a.substring(c+1)].document;a=a.substring(0,c)}if(!(e=b[a])&&b.all)e=b.all[a];for(c=0;!e&&c<b.forms.length;c++)e=b.forms[c][a];for(c=0;!e&&b.layers&&c<b.layers.length;c++)e=MM_findObj(a,b.layers[c].document);if(!e&&b.getElementById)e=b.getElementById(a);return e} function MM_swapImage(){var a,b=0,c,e=MM_swapImage.arguments;document.MM_sr=[];for(a=0;a<e.length-2;a+=3)if((c=MM_findObj(e[a]))!=null){document.MM_sr[b++]=c;if(!c.oSrc)c.oSrc=c.src;c.src=e[a+2]}};
