var folder;
var URI=parent.document.URL;
folder=URI.substring(URI.indexOf('/',7)+1,URI.length);
folder=folder.substring(folder.indexOf(''),folder.indexOf('/')+3);

document.write('<script type="text/javascript" src="/scripts/ibe/common.js"></script>');
document.write('<script type="text/javascript" src="/scripts/ibe/fillDD.js"></script>'); 
document.write('<script type="text/javascript" src="/scripts/ibe/commonSystem.js"></script>'); 
document.write('<script type="text/javascript" src="/scripts/ibe/validations.js"></script>');
document.write('<script type="text/javascript" src="/scripts/ibe/autoDate.js"></script>');
document.write('<script type="text/javascript" src="/scripts/ibe/browser.js"></script>');
document.write('<script type="text/javascript" src="/scripts/ibe/calendar.js"></script>');
//IBE begins
document.writeln('<div id="book-flights1">');
document.writeln('<table width="980px" border="0" cellpadding="0" cellspacing="0" align="center">');
document.writeln('<tr><td style="height:355px" valign="top">');
document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
document.writeln('<tr><td class="bgDark"><span id="spnTab"></span></td></tr>');
document.writeln('<tr><td class="bgDark" style="height:292px;" valign="top" align="center">');
document.writeln('<table width="97%" border="0" cellpadding="0" cellspacing="0"><tr><td>');
document.writeln('<div id="spnTab1" style="display:none;">');
document.writeln('<table width="100%" border="0" cellpadding="1" cellspacing="0">');
document.writeln('<tr><td colspan="2">');
document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
document.writeln('<td width="5%"><input type="radio" id="radTrip" name="radTrip" value="R" class="NoBorder" checked="true" onclick="disbalReturnTrip(this)" /></td>');
document.writeln('<td width="22%" align="left">Return</td>');
document.writeln('<td width="5%"><input type="radio" id="radTrip" name="radTrip" value="O" class="NoBorder" onclick="disbalReturnTrip(this)" /></td>');
document.writeln('<td width="20%" align="left">One Way</td>');
document.writeln('<td><a href="http://booking.qatarairways.com/qribe-web/public/multipointSearch.do?L=en" class="more">Multiple Stops</a></td>');
//document.writeln('<td><a href="#" onclick="window.location=\'/disabled.html\';" id="lnkMulti" class="more">Multiple Stops</a></td>');
document.writeln('</tr></table></td></tr><tr>');
document.writeln('<td width="15%" align="left">From</td>');
document.writeln('<td width="85%">');
document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
document.writeln('<td width="40%"><select id="selFrom" size="1" style="width:120px;" onchange="fillRouteCity(\'selFrom\', \'selTo\')"></select></td>');
document.writeln('<td width="10%" align="left">To</td>');
document.writeln('<td width="50%"><select id="selTo" size="1" style="width:120px;"><option value="">-- Choose --</option></select></td>');
document.writeln('</tr></table></td></tr><tr><td></td>');
document.writeln('<td align="left" height="20" valign="bottom">');
document.writeln('<a href="http://booking.qatarairways.com/qribe-web/public/showSearch.do?L=en" id="lnkSearch" class="more">Click here for more cities</a>');
document.writeln('</td></tr><tr>');
document.writeln('<td align="left">Depart</td><td>');
document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
document.writeln('<td width="17%"><span id="spnDepDay"></span>&nbsp;</td>');
document.writeln('<td width="50%">');
document.writeln('<select id="selDtDept" name="selDtDept" size="1" style="width:45px;" onchange="selDtDeptOnChange()"></select>');
document.writeln('<select id="selYrDept" name="selYrDept" size="1" style="width:80px;" onchange="selYrDeptOnChange()"></select></td>');
document.writeln('<td align="left"><a href="#" onclick="showCal(\'0\',event);return false;" onfocus="calOnFocus()"><img id="c1" src="/images/ibe/FI0009.gif" border="0" alt="calendar" /></a></td>');
document.writeln('<td style="display:none;">');
//document.writeln('<select id="selAnyDept" size="1" style="width:70px;display:none;">');
document.writeln('<select id="selAnyDept"><option value="ANY">Any Time</option></select>');
//document.writeln('<input type="hidden" name="selAnyDept" id="selAnyDept" value="ANY" />');
document.writeln('</td></tr></table></td></tr><tr>');
document.writeln('<td align="left"><span id="spnReturn"><label for="selDtDept">Return</label></span></td><td>');
document.writeln("					<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
document.writeln("					<td width=\"17%\"><span id=\"spnRetDay\"></span>&nbsp;</td>");
document.writeln("					<td width=\"50%\">");
document.writeln("					<select id=\"selDtRetu\" name=\"selDtDept\" size=\"1\" style=\"width:45px;\" onchange=\"selDtRetuOnChange()\"></select>																						");
document.writeln("					<select id=\"selYrRetu\" name=\"selYrDept\" size=\"1\" style=\"width:80px;\" onchange=\"selYrRetuOnChange()\"></select>");
document.writeln("					</td>");
document.writeln('<td align="left"><a href="#" onclick="showCal(\'1\',event);return false;" onfocus="calOnFocus()"><img id="c2" src="/images/ibe/FI0009.gif" border="0" alt="calendar" /></a></td>');
document.write('<td style="display:none;"><select id="selAnyRetu" name="selAnyRetu"><option value="ANY" selected="selected">Any Time</option></select>');
document.writeln('</td></tr></table></td></tr><tr><td></td><td>');
document.write('<input type="checkbox" id="chkFlex" name="chkFlex" class="NoBorder" onclick="chkFlexOnClick()" />');
document.write('<label for="chkFlex">Choose +/- 3 days for better fare options.</label>');
document.writeln('</td></tr><tr><td colspan="2"><hr /></td></tr><tr>');
document.writeln('<td valign="top" align="left">Travellers</td>');
document.writeln('<td><table width="100%" border="0" cellpadding="1" cellspacing="0"><tr>');
document.writeln('<td><select id="selAdults" name="selAdults" size="1" onchange="selAdults_onChange()"></select><br />Adults<br />(12+)</td>');
document.writeln('<td><select id="selChild" name="selChild" size="1"></select><br />Children<br />(2-11)</td>');
document.writeln('<td><select id="selInfants" name="selInfants" size="1"></select><br />Infants<br />(0-1)</td>');
document.writeln('<td valign="top"><a href="#" onclick="callMorePax();return false;" class="more"><span id="spnMorePsng" title="More than 9 travellers?"></span></a></td>');
document.writeln('</tr></table></td></tr><tr><td colspan="2"><hr /></td></tr><tr>');
document.writeln('<td align="left"><label for="selSrchBy">Search</label></td><td align="left">');
document.writeln('<select id="selSrchBy" size="1">');
document.writeln('<option value="F">Fare</option>');
document.writeln('<option value="S">Schedule</option>');
document.writeln('</select>');
document.writeln('<span style="margin:0 15px 0 30px;"><label for="selClass">Class</label></span>');
document.writeln('<select id="selClass" size="1">');
document.writeln('<option value="E">Economy</option>');
document.writeln('<option value="B">Business</option>');
document.writeln('<option value="F">First</option>');
document.writeln('</select>');
document.writeln('</td></tr><tr><td colspan="2"><hr /></td></tr><tr>');
document.writeln('<td colspan="2" class="thinHeight"></td></tr><tr><td colspan="2">');
document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>');
document.writeln('<td width="6%" align="center"><img src="/images/ibe/FI0007.gif" alt="help" /></td>');
document.writeln('<td width="3%" align="center"></td>');
document.writeln('<td><a href="#" onclick="callFaqHelp(0);return false;" id="lnkHelp" name="lnkHelp"><u>Help</u></a></td>');
document.writeln('<td width="84%" align="right"><input type="button" id="btnFltSearch" class="button buttonLL" value="Search" onclick="pgBtnClick(0)" /></td></tr></table>');
//document.writeln('<td width="84%" align="right"><input type="button" id="btnFltSearch" class="button buttonLL" value="Search" onclick="window.location=\'/disabled.html\'" /></td></tr></table>');
document.writeln('</td></tr></table></div>');
//WCI
document.writeln('<div id="spnTab2" style="display:none;">');
document.writeln('<p>Available 36 hours to 90 minutes before your flight departs.</p>');
document.writeln('<div class="fields">');
document.writeln('<div class="row"><span class="label"><label for="available">Departure Airport</label></span>');
document.writeln('<span class="field"><select id="available" name="available">');
document.writeln('<option value="">select a city</option>');
document.writeln('<option value="auh">Abu Dhabi (AUH)</option>');
document.writeln('<option value="amd">Ahmedabad (AMD)</option>');
document.writeln('<option value="aly">Alexandria (ALY)</option>');
document.writeln('<option value="alg">Algiers (ALG)</option>');
document.writeln('<option value="amm">Amman (AMM)</option>');
document.writeln('<option value="atq">Amritsar (ATQ)</option>');
document.writeln('<option value="ath">Athens (ATH)</option>');
document.writeln('<option value="bah">Bahrain (BAH)</option>');
document.writeln('<option value="dps">Bali (DPS)</option>');
document.writeln('<option value="bkk">Bangkok (BKK)</option>');
document.writeln('<option value="pek">Beijing (PEK)</option>');
document.writeln('<option value="bey">Beirut (BEY)</option>');
document.writeln('<option value="txl">Berlin (TXL)</option>');
document.writeln('<option value="cai">Cairo (CAI)</option>');
document.writeln('<option value="CPT">Cape Town (CPT)</option>');
document.writeln('<option value="cmn">Casablanca (CMN)</option>');
document.writeln('<option value="ceb">Cebu (CEB)</option>');
document.writeln('<option value="maa">Chennai (MAA)</option>');
document.writeln('<option value="cmb">Colombo (CMB)</option>');
document.writeln('<option value="dmm">Dammam (DMM)</option>');
document.writeln('<option value="del">Delhi (DEL)</option>');
document.writeln('<option value="dac">Dhaka (DAC)</option>');
document.writeln('<option value="doh">Doha (DOH)</option>'); 
document.writeln('<option value="dxb">Dubai (DXB)</option>');
document.writeln('<option value="fra">Frankfurt (FRA)</option>');
document.writeln('<option value="can">Guangzhou (CAN)</option>');
document.writeln('<option value="gva">Geneva (GVA)</option>');
document.writeln('<option value="goi">Goa (GOI)</option>');
document.writeln('<option value="sgn">Ho Chi Minh City (SGN)</option>');
document.writeln('<option value="hkg">Hong Kong (HKG)</option>');
document.writeln('<option value="hyd">Hyderabad (HYD)</option>');
document.writeln('<option value="isb">Islamabad (ISB)</option>');
document.writeln('<option value="ist">Istanbul (IST)</option>');
document.writeln('<option value="cgk">Jakarta (CGK)</option>');
document.writeln('<option value="jed">Jeddah (JED)</option>');
document.writeln('<option value="jnb">Johannesburg (JNB)</option>');
document.writeln('<option value="khi">Karachi (KHI)</option>');
document.writeln('<option value="ktm">Kathmandu (KTM)</option>');
document.writeln('<option value="cok">Kochi (COK)</option>');
document.writeln('<option value="ccj">Kozhikode (CCJ)</option>');
document.writeln('<option value="kul">Kuala Lumpur (KUL)</option>');
document.writeln('<option value="kwi">Kuwait (KWI)</option>');
document.writeln('<option value="los">Lagos (LOS)</option>');
document.writeln('<option value="lhe">Lahore (LHE)</option>');
document.writeln('<option value="lgw">London Gatwick (LGW)</option>');
document.writeln('<option value="lhr">London Heathrow (LHR)</option>');
document.writeln('<option value="lxr">Luxor (LXR)</option>');
document.writeln('<option value="mad">Madrid (MAD)</option>');
document.writeln('<option value="mle">Maldives (MLE)</option>');
document.writeln('<option value="man">Manchester (MAN)</option>');
document.writeln('<option value="mnl">Manila (MNL)</option>');
document.writeln('<option value="mxp">Milan (MXP)</option>');
document.writeln('<option value="dme">Moscow (DME)</option>');
document.writeln('<option value="bom">Mumbai (BOM)</option>');
document.writeln('<option value="muc">Munich (MUC)</option>');
document.writeln('<option value="mct">Muscat (MCT)</option>');
document.writeln('<option value="nbo">Nairobi (NBO)</option>');
document.writeln('<option value="kix">Osaka (KIX)</option>');
document.writeln('<option value="cdg">Paris (CDG)</option>');
document.writeln('<option value="pew">Peshawar (PEW)</option>');
document.writeln('<option value="ruh">Riyadh (RUH)</option>');
document.writeln('<option value="fco">Rome (FCO)</option>');
document.writeln('<option value="sah">Sanaa (SAH)</option>');
document.writeln('<option value="icn">Seoul (ICN)</option>');
document.writeln('<option value="pvg">Shanghai (PVG)</option>');
document.writeln('<option value="sin">Singapore (SIN)</option>');
document.writeln('<option value="arn">Stockholm (ARN)</option>');
document.writeln('<option value="ika">Tehran (IKA)</option>');
document.writeln('<option value="trv">Thiruvananthapuram (TRV)</option>');
document.writeln('<option value="tip">Tripoli (TIP)</option>');
document.writeln('<option value="tun">Tunis (TUN)</option>');
document.writeln('<option value="vie">Vienna (VIE)</option>'); 
document.writeln('<option value="zrh">Zurich (ZRH)</option>'); 
document.writeln('</select></span></div>');
document.writeln('<div class="row"><span class="subText">Other airports that Qatar Airways operates from will be available soon.</span></div>');
document.writeln('<div class="row"><span class="label"><label for="selWciFOID">Form of Identification</label></span>');
document.writeln('<span class="field"><select id="selWciFOID" name="selWciFOID" size="1" onchange="selWciFOIDOnChange()">');
document.writeln('<option value="">Please Select</option>'); 
document.writeln('</select></span></div>');
document.writeln('<div class="row"><span class="label"><span id="spnWCIDesc">&nbsp;</span></span>');
document.writeln('<span id="spnWciFFP" style="display:none;float:left;">');
document.writeln('<select id="selWciAL" name="selWciAL" size="1">');
document.writeln('<option value="a">a</option></select></span>');
document.writeln('<span class="fieldHelp"><span id="spnWCINoHelp">&nbsp;</span></span>');
document.writeln('<span class="field"><input type="text" id="txtWciNo" name="txtWciNo" maxlength="20" /></span></div>');
document.writeln('<div class="row"><span class="label"><label for="txtWciLN">Last Name</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="callLastName();return false;"></a></div>');
document.writeln('<span class="field"><input type="text" id="txtWciLN" name="txtWciLN" maxlength="50" /></span></div>');
document.writeln('</div><div class="submit">');
document.writeln('<div class="formHelp"><img src="/images/ibe/FI0007.gif" alt="">');
document.writeln('<a href="#" onclick="callFaqHelp(6);return false;" id="lnkHelp" name="lnkHelp"><u>Help</u></a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnFltSearch" class="button buttonLL" value="Check-in" onclick="pgBtnClick(7);">');
//document.writeln('<div class="formSubmit"><input type="button" id="btnFltSearch" class="button buttonLL" value="Check-in" onclick="window.location=\'/disabled.html\';">');
document.writeln('</div></div><div style="text-align:left;clear:both;"><a href="#" title="Click to open our online demo" onclick="window.open(\'/global/en/multimedia/help/olci/OLCIDemo.html\',\'callToActionWindow\',\'height=400px,width=550px\');return false;" class="more">Online Check-in demo</a></div></div>');
//Review
document.writeln('<div id="spnTab3" style="display:none;">');
document.writeln('<p>Enter your booking reference and last name to find your booking.</p>');
document.writeln('<div class="fields">');
document.writeln('<div class="row"><span class="label"><label for="txtPNR">Booking Reference</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="needHelp();return false;"></a></div>');
document.writeln('<span class="field"><input type="text" id="txtPNR" style="text-transform:uppercase;" /></span></div>');
document.writeln('<div class="row"><span class="label"><label for="txtLastName">Last Name</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="callLastName();return false;"></a></div>');
document.writeln('<span class="field"><input id="txtLastName" name="txtLastName" type="text" /></span></div>');
document.writeln('</div><div class="submit">');
document.writeln('<div class="formHelp"><img src="/images/ibe/FI0007.gif" alt="help" />');
document.writeln('<a href="#" onclick="callFaqHelp(5);return false;" id="lnkHelp" name="lnkHelp">Help</a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnReview" class="button buttonLLBig" value="Find Booking" onclick="pgBtnClick(4)"></div></div>');
//document.writeln('<div class="formSubmit"><input type="button" id="btnReview" class="button buttonLLBig" value="Find Booking" onclick="window.location=\'/disabled.html\';"></div></div>');
document.writeln('</div>');
//Flight Status
document.writeln('<div id="spnTab4" style="display:none;">');
document.writeln('<div class="fields">');
document.writeln('<div class="row"><span class="label"><label for="dateGroup2">Date</label></span>');
document.writeln('<span class="field"><select name="dateGroup2" id="dateGroup2">');
document.writeln('<option value="Group2Yesterday">Yesterday</option>');
document.writeln('<option value="Group2Today" selected="selected">Today</option>');
document.writeln('<option value="Group2Tomorrow">Tomorrow</option>');
document.writeln('</select></span></div>');
document.writeln('<div class="row"><span class="label" style="margin-left:50px;margin-right:-50px;"><input type="radio" id="route" name="srchType" value="route" checked="checked" onclick="document.getElementById(\'selFSFrom\').disabled=false;document.getElementById(\'selFSTo\').disabled=false;document.getElementById(\'txtFSFlightNo\').disabled=true;" /></span>');
document.writeln('<span class="field">Search Based on Route</span></div>');
document.writeln('<div class="row"><span class="label"><label for="selFSFrom">From</label></span>');
document.writeln('<span class="field"><select id="selFSFrom" name="selFSFrom" onchange="fillFSRouteCity(\'selFSFrom\', \'selFSTo\')"></select></span></div>');
document.writeln('<div class="row"><span class="label"><label for="selFSTo">To</label></span>');
document.writeln('<span class="field"><select name="selFSTo" id="selFSTo"></select></span></div>');
document.writeln('<div class="row"><span class="label" style="margin-left:50px;margin-right:-50px;"><input type="radio" id="flightNo" name="srchType" value="flightNo" onclick="document.getElementById(\'selFSFrom\').disabled=true;document.getElementById(\'selFSTo\').disabled=true;document.getElementById(\'txtFSFlightNo\').disabled=false;" /></span>');
document.writeln('<span class="field">Search Based on Flight Number</span></div>');
document.writeln('<div class="row"><span class="label"><label for="txtFSFlightNo">QR</label></span>');
document.writeln('<span class="field"><input type="text" id="txtFSFlightNo" name="txtFSFlightNo" style="text-transform:uppercase;" onkeypress="return MaxLength(this,event,3);" disabled="disabled" /></span>eg. 264</div>');
document.writeln('</div><div class="submit">');
document.writeln('<div class="formHelp"><img src="/images/ibe/FI0007.gif" alt="help" />');
document.writeln('<a href="#" onclick="callFaqHelp(1);return false;" id="lnkHelp" name="lnkHelp">Help</a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnContinue" class="button buttonLLBig" value="Check Status" onclick="pgBtnClick(6)">');
//document.writeln('<div class="formSubmit"><input type="button" id="btnContinue" class="button buttonLLBig" value="Check Status" onclick="window.location=\'/disabled.html\';">');
document.writeln('</div></div></div>');
//Holidays tab
document.writeln('<div id="spnTab5" style="display:none;"></div>');
//end Holidays
document.writeln('</td></tr></table></td></tr><tr>');
document.writeln('<td class="bgBar" style="height:50px;">');
document.writeln('<div><a href="/'+folder+'/newsletter.html" title="Go to the e-Newsletter sign up form"><img src="/images/ibe/enews-signup-en.gif" alt="Sign up to our e-Newsletter" /></a></div>');
document.writeln('</td></tr></table>');
document.writeln('</td><td width="585" rowspan="2"></td></tr><tr><td></td></tr><tr><td colspan="2"></td></tr></table>');
document.writeln('<span id="spnCalendar"></span>');
document.writeln('<form id="frmDummy" name="frmDummy" method="post" action="">');
document.writeln('<input type="hidden" id="hdnData" name="hdnData" />');
document.writeln('<input type="hidden" id="hdnMode" name="hdnMode" />');
document.writeln('</form>');
document.writeln('<form id="frmWci" name="frmWci" method="post" action="">');
document.writeln('<input type="hidden" id="hdnFOID" name="hdnFOID" />');
document.writeln('<input type="hidden" id="hdnFOIDAL" name="hdnFOIDAL" />');
document.writeln('<input type="hidden" id="hdnFOIDNo" name="hdnFOIDNo" />');
document.writeln('<input type="hidden" id="hdnLn" name="hdnLn" />');	
document.writeln('<input type="hidden" id="hdnLang" name="hdnLang" />');
document.writeln('</form>');
document.writeln('<script type="text/javascript">');
document.writeln('var arrTabs=new Array()');
document.writeln('arrTabs[0]=new Array("Book Flights")');
document.writeln('arrTabs[1]=new Array("Check-in")');
document.writeln('arrTabs[2]=new Array("My Booking")');
document.writeln('arrTabs[3]=new Array("Flight Status")');
//document.writeln('arrTabs[4]=new Array("<a href=\'/global/en/holidays.html\' style=\'color:#fff;text-decoration:none;\'>Holidays</a>");');
document.writeln('var strLanguage="en";');
document.writeln('var strImagePath="/images/";');
document.writeln('var strHDMorePsng="More than #1<br />Travellers?"');
document.writeln('var strDDFirstValue="select a city";');
document.writeln('var strWciVal="BKG_REF^ETKT_NO^FF_NO";');
document.writeln('var strWciDesc="Booking Reference^E-Ticket Number^Frequent Flyer Number";');
document.writeln('var strWciFFPID="QR";');
document.writeln('var strWciFFPDesc="Qatar Airways";');
document.writeln('</script></div>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/windowPosition.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/routes.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/fsroutes.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/searchCommon.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/flightSearch.js"></script>'); 
document.writeln('<script type="text/javascript" src="/scripts/ibe/search.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/flightStatus.js"></script>');