var folder;
var URI=parent.document.URL;
folder=URI.substring(URI.indexOf('/',7)+1,URI.length);
folder=folder.substring(folder.indexOf(''),folder.indexOf('/')+3);
//Required external scripts
document.writeln('<script type="text/javascript" src="/scripts/ibe/common.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/fillDD.js"></script>'); 
document.writeln('<script type="text/javascript" src="/scripts/ibe/commonSystem.js"></script>'); 
document.writeln('<script type="text/javascript" src="/scripts/ibe/validations.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/autoDate.js"></script>');
document.writeln('<script type="text/javascript" src="/scripts/ibe/browser.js"></script>');
document.writeln('<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">Andata e ritorno</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">Sola andata</td>');
document.writeln('<td width="50%"><a href="http://booking.qatarairways.com/qribe-web/public/multipointSearch.do?L=it" class="more">vari scali</a></td>');
//document.writeln('<td width="50%"><a href="#" onclick="window.location=\'/disabled.html\';" class="more">vari scali</a></td>');
document.writeln('</tr></table></td></tr><tr>');
document.writeln('<td width="15%" align="left">Da</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">A</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>');
document.writeln('<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=it" class="more">Clicca qui per visualizzare altre citt&#224;</a>');
document.writeln('</td></tr><tr>');
document.writeln('<td align="left">Partenza</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;"><img src="/images/ibe/FI0009.gif" border="0" alt="Calendario" /></a></td>');
document.writeln('<td style="visibility:hidden;">');
document.writeln('<select id="selAnyDept" size="1" style="width:70px;display:none;">');
document.writeln('<option value="ANY" selected="selected">Any Time</option>');
document.writeln('</select>');
document.writeln('</td></tr></table></td></tr><tr>');
document.writeln('<td align="left"><span id="spnReturn">Ritorno</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 src="/images/ibe/FI0009.gif" border="0" id="imgRetu" alt="Calendario" /></a></td>');
document.writeln("					<td style=\'visibility:hidden;\'>");
document.writeln('<select id="selAnyRetu" name="selAnyRetu" size="1" style="width:70px;display:none;" />');
document.writeln("					<option value=\"ANY\" selected=\"selected\">Any Time</option>			");
document.writeln("					</select>");
document.writeln("					</td></tr></table>");
document.writeln("				</td></tr><tr><td></td><td>");
document.writeln("					<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
document.writeln('<td width="5%"><input type="checkbox" id="chkFlex" name="chkFlex" class="NoBorder" onclick="chkFlexOnClick()" /></td>');
document.writeln('<td align=\"left\">Scegliere +/- 3 giorni per migliori opzioni tariffarie</td>');
document.writeln('</tr></table></td></tr><tr><td colspan="2"><hr /></td></tr><tr>');
document.writeln('<td valign="top" align="left">Passeggeri</td><td>');
document.writeln('<table width="100%" border="0" cellpadding="1" cellspacing="0"><tr>');
document.writeln('<td><select id="selAdults" name="selAdults" size="1" style="width:50px;" onchange="selAdults_onChange()"></select><br />Adulti<br />(12+)</td>');
document.writeln('<td><select id="selChild" name="selChild" size="1" style="width:50px;"></select><br />Bambini<br />(2-11)</td>');
document.writeln('<td><select id="selInfants" name="selInfants" size="1" style="width:50px;"></select><br />Neonati<br />(0-1)</td><td valign="top">');
document.writeln('<td valign="top"><a href="#" onclick="callMorePax(\'it\');return false;" class="more"><span id="spnMorePsng"></span></a></td>');
document.writeln('</tr></table></td></tr><tr><td colspan="2"><hr /></td></tr><tr>');
document.writeln('<td align="left">Ricerca</td><td>');
document.writeln("					<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr>");
document.writeln("					<td width=\"40%\">");
document.writeln("					<select id=\"selSrchBy\" size=\"1\">");// style=\"width:120px;\"
document.writeln('<option value="F">Tariffa</option>');
document.writeln('<option value="S">Orario</option>');
document.writeln("					</select>");
document.writeln("					</td>");
document.writeln("					<td width=\"10%\">Classe</td>");
document.writeln("					<td width=\"50%\">");
document.writeln("					<select id=\"selClass\" size=\"1\">");// style=\"width:120px;\"
document.writeln('<option value="E">Economica</option>');
document.writeln('<option value="B">Business</option>');
document.writeln('<option value="F">First</option>');
document.writeln('</select>');
document.writeln('</td></tr></table></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=\"Aiuto\" /></td>");
document.writeln("					<td width=\"3%\" align=\"center\"></td>");
document.writeln('<td><a href="#" onclick="callFaqHelp(0,\'it\');return false;" id="lnkHelp" name="lnkHelp"><u>Aiuto</u></a></td>');
document.writeln('<td width="84%" align="right"><input type="button" id="btnFltSearch" class="button buttonLL" value="Ricerca" onclick="pgBtnClick(0)" /></td></tr></table>');
//document.writeln('<td width="84%" align="right"><input type="button" id="btnFltSearch" class="button buttonLL" value="Ricerca" 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>Disponibile da 36 ore a 90 minuti prima della partenza del volo.</p>');
document.writeln('<div class="fields">');
document.writeln('<div class="row"><span class="label"><label for="available">Aeroporto di partenza</label></span>');
document.writeln('<span class="field"><select id="available" name="available">');
document.writeln('<option value="" selected="selected">Selezionare una citt&#224;</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="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">Thiruvananthpuram (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">Per tutti gli altri aeroporti serviti dalla Qatar Airways il servizio sarą presto disponibile.</span></div>');
document.writeln('<div class="row"><span class="label"><label for="selWciFOID">Forma di identificazione</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">Cognome</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="callLastName(\'it\');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="Aiuto">');
document.writeln('<a href="#" onclick="callFaqHelp(6,\'it\');return false;" id="lnkHelp" name="lnkHelp">Aiuto</a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnFltSearch" class="button buttonLL" value="Check-in" onclick="pgBtnClick(7);"></div></div>');
document.writeln('</div>');
//Review
document.writeln('<div id="spnTab3" style="display:none;">');
document.writeln('<p>Inserisca il codice della sua prenotazione e il suo cognome per rivedere la prenotazione.</p>');
document.writeln('<div class="fields">');
document.writeln('<div class="row"><span class="label"><label for="txtPNR">Codice Della Prenotazione</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="needHelp(\'it\');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">Cognome</label></span>');
document.writeln('<div class="fieldHelp"><a href="#"><img src="/images/ibe/FI0007.gif" alt="" border="0" onclick="callLastName(\'it\');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="Aiuto" />');
document.writeln('<a href="#" onclick="callFaqHelp(5,\'it\');return false;" id="lnkHelp" name="lnkHelp">Aiuto</a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnReview" class="button buttonLLBig" value="Cerca" onclick="pgBtnClick(4)"></div></div>');
//document.writeln('<div class="formSubmit"><input type="button" id="btnReview" class="button buttonLL" value="Cerca" 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('<h3>Ricerca in base alla rotta</h3>');
document.writeln('<div class="row"><span class="label"><label for="selFSFrom">Da</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">A</label></span>');
document.writeln('<span class="field"><select name="selFSTo" id="selFSTo"></select></span></div>');
document.writeln('<h3>O Ricerca in base al numero di volo</h3>');
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);"></span>');
document.writeln('<span class="field">Es. 264</span></div>');
document.writeln('<div class="row"><span class="label"><label for="dateGroup2">Data</label></span>');
document.writeln('<span class="field"><select name="dateGroup2" id="dateGroup2">');
document.writeln('<option value="Group2Yesterday">Ieri</option>');
document.writeln('<option value="Group2Today" selected="selected">Oggi</option>');
document.writeln('<option value="Group2Tomorrow">Domani</option>');
document.writeln('</select></span></div>');
document.writeln('</div><div class="submit">');
document.writeln('<div class="formHelp"><img src="/images/ibe/FI0007.gif" alt="Aiuto" />');
document.writeln('<a href="#" onclick="callFaqHelp(1,\'it\');return false;" id="lnkHelp" name="lnkHelp">Aiuto</a></div>');
document.writeln('<div class="formSubmit"><input type="button" id="btnContinue" name="btnContinue" class="button buttonLLBig" value="Controlla volo" onclick="pgBtnClick(6)" /></div></div>');
//document.writeln('<div class="formSubmit"><input type="button" id="btnContinue" name="btnContinue" class="button buttonLLBig" value="Controlla volo" onclick="window.location=\'/disabledfs.html\'" /></div></div>');
document.writeln('</div>');
//Holidays tab
document.writeln('<div id="spnTab5" style="display:none;">');
document.writeln('<h3>Hello World!</h3>');
document.writeln('</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="Iscriviti alla nostra e-Newsletter"><img src="/images/ibe/enews-signup-it.gif" alt="Iscriviti alla nostra 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("Prenota i voli")');
document.writeln('arrTabs[1]=new Array("Check-in")');
document.writeln('arrTabs[2]=new Array("Rivedi");');
document.writeln('arrTabs[3]=new Array("Stato del volo");');
//document.writeln('arrTabs[4]=new Array("Holidays");');
document.writeln('var strLanguage="it";');
document.writeln('var strImagePath="/images/";');
document.writeln('var strHDMorePsng="Pił di #1 passeggeri?"');
document.writeln('var strDDFirstValue="selezionare una citta";');
document.writeln('var strWciVal="BKG_REF^ETKT_NO^FF_NO";');
document.writeln('var strWciDesc="Riferimento della prenotazione^Numero di biglietto elettronico^Numero di socio del Frequent Flyer";');
document.writeln('var strWciFFPID="QR";');
document.writeln('var strWciFFPDesc="Qatar Airways";');
document.writeln('</script></div>');
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>'); 