var a,sPwd="",goToStep2=0,CheckVAN1=0,CheckVAN2=0,dj=document.FormJourney;function entsub(b,c,d){try{if(c&&c.which==13)ValidLogin(d,b);else if(c&&c.keyCode==13)ValidLogin(d,b);else return true}catch(f){}}function entsubV(b,c,d,f){try{if(c&&c.which==13)ValidView(d,b,f);else if(c&&c.keyCode==13)ValidView(d,b,f);else return true}catch(h){}}
function ValidView(b,c,d){var f=true;if(b.BKNUM.value==""){DisplayError("Please enter your booking reference","Veuillez saisir votre num\u00e9ro de r\u00e9servation");f=false;b.BKNUM.focus()}if(!checkString(b.BKNUM.value,"1","")&&f){DisplayError("Invalid character entered in booking reference field","caract\u00e8re incorrect saisi dans le champ num\u00e9ro de r\u00e9servation");f=false;b.BKNUM.focus()}if(b.BKNUM.value.length<7&&f){DisplayError("Invalid booking reference","Num\u00e9ro de r\u00e9servation incorrect");
f=false;b.BKNUM.focus()}if(b.PASSWD.value==""&&f){DisplayError("Please enter your password","Veuillez saisir votre mot de passe");f=false;b.PASSWD.focus()}if(!checkString(b.PASSWD.value,"12","")&&f){DisplayError("Invalid character entered in password field","caract\u00e8re incorrect saisi dans le champ mot de passe");f=false;b.PASSWD.focus()}if(b.PASSWD.value.length<6&&f){DisplayError("Invalid password","Mot de passe incorrect");f=false;b.PASSWD.focus()}if(f){b.LANGUE.value=c;b.STEP.value="LOGINFROMDIRECT";
b.action=d;b.submit()}}
function ValidLogin(b,c){c=true;b.action="journey.asp";if(b.USER.value==""){DisplayError("Please enter your reference",'Veuillez renseigner le champ "R\u00e9f\u00e9rence"');c=false;b.USER.focus()}var d=b.USER.value;if(d.length<4&&c){DisplayError("Please check the number of characters in the reference field.",'Veuillez v\u00e9rifier le nombre de caract\u00e8res dans le champ "R\u00e9f\u00e9rence"');c=false;b.USER.focus()}if(b.PWD&&c&&isPWDactif){if(b.PWD.value==""){DisplayError("Please check your password.","Veuillez v\u00e9rifier votre mot de passe");
c=false;b.PWD.focus()}if(c){d=d.substr(0,2);d=d.toUpperCase();var f=b.PWD.value,h=/ /g;f=f.replace(h,"");if(d=="FQ"||d=="FC"){if(!checkString(f,"12","")){DisplayError("Please check your password.","Veuillez v\u00e9rifier votre mot de passe");c=false;b.PWD.focus()}if(f.length<6&&c){DisplayError("Please check your password.","Veuillez v\u00e9rifier votre mot de passe");c=false;b.PWD.focus()}b.STEP.value="FTLOGIN";b.FTNUMBER.value=b.USER.value;b.FTPASSWD.value=b.PWD.value;b.action=sFTStatement}}}if(c){b.hLOGIN.value=
"Y";b.submit()}}function ChangeLanguage(b,c){b.LANGUE.value=c;b.action="journey.asp";b.submit()}
function LogOut(b){b.hLOGIN.value="N";b.hTYPE.value="";b.hUSER.value="";b.hPWD.value="";b.hTITLE.value="";b.hFIRSTNAME.value="";b.hSURNAME.value="";b.hINITIALS.value="";b.hUSERNAME.value="";b.hORG.value="";b.hPOSTCODE.value="";b.hCITY.value="";b.hCOUNTRY.value="";b.hADDRLINE1.value="";b.hADDRLINE2.value="";b.hHOMEPHONE.value="";b.hMOBILEPHONE.value="";b.hWORKPHONE.value="";b.hFAX.value="";b.hEMAIL.value="";b.FTTYPE.value="";b.action="journey.asp";b.submit()}
function CheckReference(b){if(b.USER){if(b.PWD)sPwd=b.PWD.value;var c=b.USER.value;if(c.length>="2"){c=c.substr(0,2);c=c.toUpperCase();if(c=="FT"||c=="FQ"||c=="MB"||c=="FC"){hideLayer("divLogButton");showLayer("divPassword");isPWDactif=true}else{hideLayer("divPassword");showLayer("divLogButton");isPWDactif=false;b.PWD.value=""}}else{hideLayer("divPassword");showLayer("divLogButton");isPWDactif=false;b.PWD.value=""}}}
function BackDirection(b,c){b.SENS.focus();document.getElementById("Direction").style.visibility="hidden";document.getElementById("dirMessage").style.visibility="hidden";document.getElementById("divContinue").style.visibility="visible";goToStep2=0}
function Validation(b,c){var d=true,f=b.VEH.options[b.VEH.selectedIndex].value,h=b.REM.options[b.REM.selectedIndex].value;if(b.USER)if(b.USER.value!=""&&b.hLOGIN.value!="Y"&&d){DisplayError("To login, click on the red button or arrow from the Login section.","Pour vous identifier, cliquez sur le bouton rouge (ou la fl\u00e8che) de la section Espace membre.");activateLogin();b.USER.focus();d=false}if(b.SENS.options[b.SENS.selectedIndex].value=="PLS"&&d){DisplayError("Please specify the direction of travel for your outward journey.",
"Veuillez indiquer le point de d\u00e9part de votre trajet aller.");b.SENS.focus();d=false}var e=new Date;e=new String(b.elements.JJ1.value);var g=new String(b.elements.MYY1.value);if(g.length==3)g="0"+g;var k=parseInt(g.substr(0,2),10)-1;g=parseInt("20"+g.substr(2,4),10);var m=parseInt(e,10);e=new Date(g,k,e);k=e.getDate();g=parseInt(b.JJ1.value,10);if(k.toString()!=g.toString()&&d){DisplayError("Please check the departure date for your outward journey.","Veuillez v\u00e9rifier la date de d\u00e9part");
d=false;b.JJ1.focus()}if(d&&b.JJ2.selectedIndex!=0){var n=new Date;n=new String(b.elements.JJ2.value);g=new String(b.elements.MYY2.value);if(g.length==3)g="0"+g;k=parseInt(g.substr(0,2),10)-1;g=parseInt("20"+g.substr(2,4),10);m=parseInt(n,10);n=new Date(g,k,n);k=n.getDate();g=parseInt(b.JJ2.value,10);if(k.toString()!=g.toString()){DisplayError("Please check the departure date for your return journey.","Veuillez v\u00e9rifier la date de retour");d=false;b.JJ2.focus()}}if(jourDate>e&&d){DisplayError("Please check the departure date for your outward journey.",
"Veuillez v\u00e9rifier la date de d\u00e9part");d=false;b.JJ1.focus()}if(d&&b.JJ2.selectedIndex!=0)if(n<e){DisplayError("Please check the chronological order of the dates.","Merci de v\u00e9rifier l'ordre chronologique des dates");d=false;b.JJ2.focus()}if(f=="MOT"&&d)if(h=="CVS"){DisplayError('Please select the "trailer" type','Veuillez s\u00e9lectionner le type "Remorque"');b.REM.focus();d=false}if(f=="NONE"&&d){DisplayError("Please select your type of vehicle","Veuillez s\u00e9lectionner le type de votre v\u00e9hicule");
b.VEH.focus();d=false}if(b.LPG.options[b.LPG.selectedIndex].value=="0"&&d){DisplayError("Please confirm how your vehicle is powered.","Veuillez indiquer le type de carburant utilis\u00e9 par votre v\u00e9hicule");d=false;b.LPG.focus()}if(b.LPG.options[b.LPG.selectedIndex].value=="Y"&&d){c=="GB"?alert("Vehicles powered by LPG and dual-powered cannot be accepted for transport by Eurotunnel. We regret we cannot accept your booking unless you choose another type of vehicle."):alert("Les v\u00e9hicules fonctionnant au GPL et ceux \u00e9quip\u00e9s d'un double syst\u00e8me GPL/essence ne peuvent \u00eatre accept\u00e9s dans nos navettes. Nous regrettons de ne pouvoir donner suite \u00e0 votre demande si vous ne s\u00e9lectionnez pas un autre type de v\u00e9hicule");
d=false;b.LPG.focus()}if(b.COO)if(d&&b.COO.options[b.COO.selectedIndex].value=="NO"){DisplayError("Please select your country of residence.","Merci de s\u00e9lectionner votre pays de r\u00e9sidence.");d=false;b.COO.focus()}if(b.COO&&goToStep2==0&&d&&b.VEH.options[b.VEH.selectedIndex].value!="BIG")if(b.COO.options[b.COO.selectedIndex].value=="GB"&&b.SENS.options[b.SENS.selectedIndex].value=="CAFO"){document.getElementById("divContinue").style.visibility="hidden";document.getElementById("Direction").className=
"divDirectionCAFO";document.getElementById("dirMessage").style.visibility="visible";document.getElementById("Direction").style.visibility="visible";if(c=="GB")document.getElementById("dirMessage").innerHTML="Are you sure you want your outward journey to start from <b>Calais</b>?";else document.getElementById("dirMessage").innerHTML="Confirmez-vous que le d\u00e9part de votre voyage aller est <b>Calais</b> ?";goToStep2=1;d=false}else if(b.COO.options[b.COO.selectedIndex].value!="GB"&&b.COO.options[b.COO.selectedIndex].value!=
"OT"&&b.SENS.options[b.SENS.selectedIndex].value=="FOCA"){document.getElementById("divContinue").style.visibility="hidden";document.getElementById("Direction").className="divDirectionFOCA";document.getElementById("dirMessage").style.visibility="visible";document.getElementById("Direction").style.visibility="visible";goToStep2=1;if(c=="GB")document.getElementById("dirMessage").innerHTML="Are you sure you want your outward journey to start from <b>Folkestone</b>?";else document.getElementById("dirMessage").innerHTML=
"Confirmez-vous que le d\u00e9part de votre voyage aller est <b>Folkestone</b> ?";d=false}if(d&&b.VEH.options[b.VEH.selectedIndex].value=="BIG"&&CheckVAN1==0){document.getElementById("divContinue").style.visibility="hidden";document.getElementById("divVAN1").style.visibility="visible";document.getElementById("VanMessage1").style.visibility="visible";CheckVAN1=1;d=false}if(d){mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();b.action="fare.asp";b.submit()}}var isMYY2no=true,isJJ2no=true;
function isOneWay(b){if(b.FTTYPE.value=="FC"){b.MYY2.selectedIndex=0;b.JJ2.selectedIndex=0;isJJ2no=isMYY2no=true}else{if(b.MYY2.selectedIndex==0)isMYY2no=true;else{isMYY2no=false;if(b.SENS.value!="PLS"){document.getElementById("ReturnDir").style.paddingLeft="5px";if(b.SENS.value=="FOCA")document.getElementById("ReturnDir").innerHTML=DirCAFO;else document.getElementById("ReturnDir").innerHTML=DirFOCA}}if(b.JJ2.selectedIndex==0)isJJ2no=true;else{isJJ2no=false;if(b.SENS.value!="PLS"){document.getElementById("ReturnDir").style.paddingLeft=
"5px";if(b.SENS.value=="FOCA")document.getElementById("ReturnDir").innerHTML=DirCAFO;else document.getElementById("ReturnDir").innerHTML=DirFOCA}}}}
function CheckOneWay(b,c){if(c=="1")if(b.JJ2.selectedIndex!=0)if(b.FTTYPE.value=="FC"){b.JJ2.selectedIndex=0;lang=="GB"?alert("Only Single journeys can be reserved to ensure full flexibility on this ticket type."):alert("Seuls des allers simples peuvent etre reserves afin de garantir la flexibilite de ce produit.")}else{if(isMYY2no){b.MYY2.selectedIndex=b.MYY1.selectedIndex+1;if(b.SENS.value!="PLS"){document.getElementById("ReturnDir").style.paddingLeft="5px";if(b.SENS.value=="FOCA")document.getElementById("ReturnDir").innerHTML=
DirCAFO;else document.getElementById("ReturnDir").innerHTML=DirFOCA}isJJ2no=isMYY2no=false}}else if(!isMYY2no){b.MYY2.selectedIndex=0;document.getElementById("ReturnDir").style.paddingLeft="9px";document.getElementById("ReturnDir").innerHTML="-";isJJ2no=isMYY2no=true}if(c=="2")if(b.MYY2.selectedIndex!=0)if(b.FTTYPE.value=="FC"){b.MYY2.selectedIndex=0;lang=="GB"?alert("Only Single journeys can be reserved to ensure full flexibility on this ticket type."):alert("Seuls des allers simples peuvent etre reserves afin de garantir la flexibilite de ce produit.")}else{if(isJJ2no){b.JJ2.selectedIndex=
b.JJ1.selectedIndex+1;if(b.SENS.value!="PLS"){document.getElementById("ReturnDir").style.paddingLeft="5px";if(b.SENS.value=="FOCA")document.getElementById("ReturnDir").innerHTML=DirCAFO;else document.getElementById("ReturnDir").innerHTML=DirFOCA}isJJ2no=isMYY2no=false}}else if(!isJJ2no){b.JJ2.selectedIndex=0;document.getElementById("ReturnDir").style.paddingLeft="9px";document.getElementById("ReturnDir").innerHTML="-";isJJ2no=isMYY2no=true}}
function ChangeDir(b){if(!isJJ2no)switch(b.SENS.selectedIndex){case 0:document.getElementById("ReturnDir").style.paddingLeft="9px";document.getElementById("ReturnDir").innerHTML="-";break;case 1:document.getElementById("ReturnDir").style.paddingLeft="5px";document.getElementById("ReturnDir").innerHTML=DirCAFO;break;case 2:document.getElementById("ReturnDir").style.paddingLeft="5px";document.getElementById("ReturnDir").innerHTML=DirFOCA;break}if(goToStep2==1){goToStep2=0;document.getElementById("Direction").style.visibility=
"hidden";document.getElementById("dirMessage").style.visibility="hidden";document.getElementById("divContinue").style.visibility="visible"}}
function CheckDir(b){if(goToStep2==1)if((b.COO.options[b.COO.selectedIndex].value=="GB"||b.COO.options[b.COO.selectedIndex].value=="OT")&&b.SENS.options[b.SENS.selectedIndex].value=="FOCA"||b.COO.options[b.COO.selectedIndex].value!="GB"&&b.SENS.options[b.SENS.selectedIndex].value=="CAFO"){goToStep2=0;if(CheckVAN1==0){document.getElementById("Direction").style.visibility="hidden";document.getElementById("dirMessage").style.visibility="hidden";document.getElementById("divContinue").style.visibility=
"visible"}}}
function CheckVehicle(b){if(b.VEH.options[b.VEH.selectedIndex].value!="BIG"){CheckVAN1=0;document.getElementById("divContinue").style.visibility="visible";document.getElementById("divVAN1").style.visibility="hidden";document.getElementById("VanMessage1").style.visibility="hidden";document.getElementById("divVAN2").style.visibility="hidden";document.getElementById("VanMessage2").style.visibility="hidden"}else{goToStep2=0;document.getElementById("Direction").style.visibility="hidden";document.getElementById("dirMessage").style.visibility="hidden";
document.getElementById("divContinue").style.visibility="visible"}}
function Tags(){var b=document.createElement("script");b.src="http://www.google-analytics.com/ga.js";document.getElementsByTagName("head")[0].appendChild(b);b=Math.random()+"";b=b*10000000000000;var c=c+'<IMG SRC="http://ad.fr.doubleclick.net/activity;src=884630;type=reser150;cat=reser277;ord=1;num='+b+'?" WIDTH=1 HEIGHT=1 BORDER=0>';c=c+'<IFRAME SRC="http://fls.doubleclick.net/activityi;src=884630;type=new2009;cat=bk109;ord=1;num='+b+'?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0></IFRAME>';c=c+'<IFRAME SRC="http://fls.doubleclick.net/activityi;src=856279;type=euro;cat=step1;ord=1;num='+
b+'?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0></IFRAME>';document.getElementById("Tags").innerHTML=c;setTimeout("ga()",3000)}function ga(){try{var b=_gat._getTracker("UA-829324-3");b._trackPageview();typeof window.wgNow=="object"&&b._trackEvent("LoadTime",PageName,"",ms)}catch(c){return false}}
function MajusculeSansPonctuation(b){var c=true;if(lang=="FR"&&b.value=="Saisissez"||lang=="GB"&&b.value=="Please enter")c=false;if(c==true){c=true;c="";b.value=b.value.toUpperCase();for(i=0;i<b.value.length;i++){car=b.value.substring(i,i+1);if(car>="A"&&car<="Z"||car>="0"&&car<="9")c+=car}b.value=c}}function CtrlRegNum(b){if(lang=="GB"){if(b.value=="Please enter"||b.value=="PLEASEENTER")b.value=""}else if(b.value=="Saisissez"||b.value=="SAISISSEZ")b.value=""}
function LogOff(b){var c=document.FormJourney;c.hUSER.value="";c.hPWD.value="";c.hTYPE.value="";c.hLOGIN.value="";c.hACTION.value="LOGOFF";c.URL.value=b;c.action="journey.asp";c.submit()}
function VanYes1(b){DisplayError("We regret that vehicles carrying commercial goods cannot travel with Eurotunnel's passenger service.","Les v\u00e9hicules transportant des biens commerciaux ne peuvent \u00eatre accept\u00e9s \u00e0 bord des Navettes Passagers Eurotunnel.");CheckVAN2=CheckVAN1=0;document.getElementById("divVAN1").style.visibility="hidden";document.getElementById("VanMessage1").style.visibility="hidden";document.getElementById("divContinue").style.visibility="visible"}
function VanNo1(b){document.getElementById("divVAN1").style.visibility="hidden";document.getElementById("VanMessage1").style.visibility="hidden";document.getElementById("divVAN2").style.visibility="visible";document.getElementById("VanMessage2").style.visibility="visible"}
function VanYes2(b){DisplayError("For safety reasons you are not permitted to carry a load greater than 3 cubic metres.\nIf you still wish to travel on our passenger service then you must reduce your load to this level or less.","Pour des raisons de s\u00e9curit\u00e9, vous n'\u00eates pas autoris\u00e9s \u00e0 transporter un volume de marchandises sup\u00e9rieur \u00e0 3 m\u00e8tres cubes \u00e0 bord de nos Navettes Passagers.\nPour emprunter notre Service Passagers, vous devez r\u00e9duire le volume transport\u00e9 \u00e0 moins de 3 m\u00e8tres cubes.");
CheckVAN2=CheckVAN1=0;document.getElementById("divVAN2").style.visibility="hidden";document.getElementById("VanMessage2").style.visibility="hidden";document.getElementById("divContinue").style.visibility="visible"}var Calendar_Win=null,Calendar_Lang=null,Calendar_Year=0,Calendar_Month=0,Calendar_Maxy=0,dom1=true,affiche_ferie=false;new Calendar;a=Calendar.prototype;a.cal_wr=function(b){this.cWinCal.document.write(b)};
a.cal_head=function(){var b=2,c="<TR bgcolor="+this.cNmDayBg+">";vsd=this.startDay;for(i=0;i<7;i++){c+="<TD width=21 align=center class=cadaynam>"+this.nmDAY[vsd].substring(0,b)+"</TD>";if(++vsd>=7)vsd=0}c+="</TR>\n";return c};
a.cal_couleurjour=function(b,c,d,f,h){if(h.SENS.options[h.SENS.selectedIndex].value!="PLS")if(test_ferie(c+1,d,f,h))return" bgcolor="+this.cWkDayBg+" class=cadayferie onMouseOut=\"hideLayer('my_warning');\" onMouseOver=\"showLayer('my_warning','');\" ";if(b==0||b==6)return" bgcolor="+this.cWkDayBg+" class=cadaywee";return" class=cadaynum "};a.cal_weekclass=function(b){if(b==0||b==6)return" bgcolor="+this.cWkDayBg+" class=cadaywee";return" class=cadaynum"};
a.getDaysInMonth=function(b,c){if(b<1||b>12)return 0;var d=this.ndMON[b-1];if(b==2)if(c%4==0)if(c%100==0){if(c%400==0)d=29}else d=29;return d};
a.cal_days=function(b){var c=new Date;c.setDate(1);c.setMonth(this.cMonth-1);c.setFullYear(this.cYear);c=c.getDay();var d=0;d=this.cNow.getFullYear();var f=this.cNow.getMonth()+1,h=this.cNow.getDate(),e=0,g=0,k=e=0,m=0,n=false,l="";e=d*10000+f*100+h;g=(d+this.MaxY)*10000+f*100+h;d=this.getDaysInMonth(this.cMonth,this.cYear);n=false;l+="<TR bgcolor="+this.cNuDayBg+">";k=this.startDay;for(j=0;j<7;j++){if(!n&&k!=c){l+="<TD align=center"+this.cal_weekclass(k)+">";l+="<span class=cadaybad>&nbsp;</span>"}else{l+=
affiche_ferie?"<TD align=center"+this.cal_couleurjour(k,m,this.cMonth,this.cYear,b)+">":"<TD align=center"+this.cal_weekclass(k)+">";n=true;m+=1;vDayYMD=this.cYear*10000+this.cMonth*100+m;if(vDayYMD<e||vDayYMD>g){l+="<span class=cadaybad>";if(m<=9)l+="&nbsp;";l+=m;l+="</span>"}else{l+="<A href='#' onClick=\"Javascript:if (dom1) {Calendar_result(document."+b.name+","+this.cYear+","+this.cMonth+","+m+");Calendar_hide();} else if (opener && opener.Calendar_result) {opener.Calendar_result(document."+
b.name+","+this.cYear+","+this.cMonth+","+m+');opener.Calendar_hide();};return false;"';l+=vDayYMD==e?" class=cared>":" class=cadaynum>";if(m<=9)l+="&nbsp;";l+=m;l+="</A>"}}l+="</TD>";if(++k>=7)k=0}l+="</TR>\n";for(nWK=1;nWK<6;nWK++){l+="<TR bgcolor="+this.cNuDayBg+">";k=this.startDay;for(j=0;j<7;j++){l+=affiche_ferie?"<TD align=center"+this.cal_couleurjour(k,m,this.cMonth,this.cYear,b)+">":"<TD align=center"+this.cal_weekclass(k)+">";m+=1;if(m>d)l+="<span class=cadaybad>&nbsp;</span>";else{vDayYMD=
this.cYear*10000+this.cMonth*100+m;if(vDayYMD<e||vDayYMD>g){l+="<span class=cadaybad>";if(m<=9)l+="&nbsp;";l+=m;l+="</span>"}else{l+="<A href='#' onClick=\"Javascript:if (dom1) {Calendar_result(document."+b.name+","+this.cYear+","+this.cMonth+","+m+");Calendar_hide();} else if(opener && opener.Calendar_result){opener.Calendar_result(document."+b.name+","+this.cYear+","+this.cMonth+","+m+'); opener.Calendar_hide();};return false;"';l+=vDayYMD==e?" class=cared>":" class=cadaynum>";if(m<=9)l+="&nbsp;";
l+=m;l+="</A>"}}l+="</TD>";if(++k>=7)k=0}l+="</TR>\n"}return l};
a.cal_buildHTML=function(b){var c=this.cMonth,d=this.cMonth,f=this.cYear,h=this.cYear,e="";c=this.cMonth-1;f=this.cYear;if(c<=0){c=12;--f}d=this.cMonth+1;h=this.cYear;if(d>=13){d=1;++h}e+='<FORM name="CalForm">';e+='<TABLE width="178" border=0 cellspacing=0 cellpadding=0 align=center valign=top class=cabodybg>';e+='<TR><TD align="center" height="16" class="catitle">'+this.Title+"</TD></TR>";e+="<TR><TD align=center valign=middle class=cabodybg>\n";e+="<TABLE width=176 border=0 cellspacing=1 cellpadding=0 align=center valign=middle class=caaround>";
e+="<TR><TD align=center class=caaround>\n";e+="<TABLE width=174 border=0 cellspacing=0 cellpadding=0 align=center valign=top class=caboard>\n";e+="<TR>";e+="<TD colspan=3 align=center>";e+='<SELECT name="Month"';e+=' onChange="if (dom1) {Calendar_build(parseInt(document.CalForm.Month.options[document.CalForm.Month.selectedIndex].value,10),'+this.cYear+",document."+b.name+");} else if (window.opener && window.opener.Calendar_build) {window.opener.Calendar_build(parseInt(document.CalForm.Month.options[document.CalForm.Month.selectedIndex].value,10),"+
this.cYear+');};">';sel=this.cMonth;for(mm=1;mm<=12;mm++){e+='<OPTION value="'+mm+'"';if(mm==sel)e+=" selected";e+=">"+this.nmMON[mm-1]}e+='</SELECT><SELECT name="Year"';e+=' onChange="if (dom1) {Calendar_build('+this.cMonth+",parseInt(document.CalForm.Year.options[document.CalForm.Year.selectedIndex].value,10),document."+b.name+");} else if(window.opener && window.opener.Calendar_build) {window.opener.Calendar_build("+this.cMonth+",parseInt(document.CalForm.Year.options[document.CalForm.Year.selectedIndex].value,10),document."+
b.name+');};">';sel=this.cYear;min=sel-1;max=sel+this.MaxY;for(yy=min;yy<=max;yy++){e+='<OPTION value="'+yy+'"';if(yy==sel)e+=" selected";e+=">"+yy}e+="</SELECT></TD></TR>\n";e+="<TR>";e+='<TD width="9%" align=left class=caprvnxt>';e+='&nbsp;<A href="Javascript:if(dom1) {Calendar_build('+c+","+f+",document."+b.name+");} else if (window.opener && window.opener.Calendar_build) {window.opener.Calendar_build("+c+","+f+",document."+b.name+');};" class="calink">&laquo;</A>';e+="</TD>";e+='<TD width="82%" align=center class=camonthy height="16" class=camonthy>';
e+=this.cMonthName+"&nbsp;"+this.cYear;e+="</TD>";e+='<TD width="9%" align=right class=caprvnxt>';e+='<A href="Javascript:if (dom1) {Calendar_build('+d+","+h+",document."+b.name+");} else if(window.opener && window.opener.Calendar_build){ window.opener.Calendar_build("+d+","+h+",document."+b.name+');};" class="calink">&raquo;</A>';e+="&nbsp;</TD></TR>\n";e+="</TABLE>\n";e+="</TD></TR>\n";e+="<TR><TD align=center class=caaround>\n";e+="<TABLE width=174 border=0 cellspacing=1 cellpadding=1 align=center valign=top class=cacalend>\n"+
this.cal_head()+this.cal_days(b)+"</TABLE>\n";e+="</TD></TR></TABLE>\n";e+='<TR><TD align="right" height="16"><a href="#" onclick="hideLayer(\'dCalendar\'); return false;" class="caclose">';e+=closeWin;e+="</a>&nbsp;</TD></TR></TABLE>\n";e+="</TD></TR></TABLE></FORM>\n";return e};
a.cal_showLayer=function(b){var c=this.cal_buildHTML(b);c+=b.SENS.options[b.SENS.selectedIndex].value!="PLS"?'<div id="my_warning" style="visibility:hidden;position:absolute;top:151px;left:0px;"><table border=0 width=105><tr><td bgcolor="#ffffff" class="jrferie">':'<div id="my_warning" style="visibility:hidden;position:absolute;top:151px;left:0px;"><table border=0 width=80><tr><td>';if(b.SENS.options[b.SENS.selectedIndex].value=="FOCA"){if(Calendar_Lang=="FR")c+="FR jour&nbsp;f\u00e9ri\u00e9";if(Calendar_Lang==
"GB")c+="FR bank&nbsp;holiday"}if(b.SENS.options[b.SENS.selectedIndex].value=="CAFO"){if(Calendar_Lang=="FR")c+="UK jour&nbsp;f\u00e9ri\u00e9";if(Calendar_Lang=="GB")c+="UK bank&nbsp;holiday"}c+="</td></tr></table></div>\n";document.getElementById("dCalendar").innerHTML=c;showLayer("dCalendar","")};
a.cal_show=function(b){var c="";this.cWinCal.document.open();c="<HTML>\n<HEAD>\n";c+='<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';c+='<META http-equiv="Content-Script-Type" content="text/javascript">\n';c+='<META name="Author" content="eurotunnel">\n';c+="<TITLE>"+this.Title+" - "+this.Copyright+"</TITLE>\n";c+="</HEAD>\n";c+='<STYLE type="text/css">\n<!--\n';c+="body { margin:0px; padding:0px; border-width:0px; border-style:outset; background-color:"+this.cBodyBg+
"; font-family:Verdana,Arial; font-size:8pt; font-weight:normal; color:"+this.cBodyText+" }\n";c+="a:link { text-decoration:none; color:"+this.cBodyLink+" }\n";c+="a:visited { text-decoration:none; color:"+this.cBodyLink+" }\n";c+="a:active { text-decoration:none; color:"+this.cBodyLink+" }\n";c+="a:hover { text-decoration:underline }\n";c+="table.cabodybg { background-color:"+this.cBodyBg+" }\n";c+="table.caaround { background-color:"+this.cAroundBg+" }\n";c+="table.caboard  { background-color:"+
this.cBoardBg+" }\n";c+="table.cacalend { background-color:"+this.cCalenBg+" }\n";c+="td { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:normal; color:"+this.cBodyText+" }\n";c+="td.cabodybg { background-color:"+this.cBodyBg+" }\n";c+="td.caaround { background-color:"+this.cAroundBg+" }\n";c+="td.caselect { background-color:"+this.cSelectBg+" }\n";c+="font.caselect { font-family:Verdana,Arial; font-size:8pt; font-style:normal; font-weight:normal; color:"+this.cBodyText+
" }\n";c+="td.camonthy { background-color:"+this.cTitleBg+" }\n";c+="font.camonthy { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:bold; color:"+this.cBodyText+" }\n";c+="td.caprvnxt { background-color:"+this.cTitleBg+" }\n";c+="font.caprvnxt { font-family:wingdings; font-size:10pt; font-style:normal; font-weight:normal; color:"+this.cBodyText+" }\n";c+="td.capnyear { background-color:"+this.cTitleBg+" }\n";c+="font.capnyear { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:normal; color:"+
this.cBodyText+" }\n";c+="td.cadaynam { background-color:"+this.cNmDayBg+" }\n";c+="font.cadaynam { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:bold; color:"+this.cNmDayCo+" }\n";c+="td.cadaywee { background-color:"+this.cWkDayBg+" }\n";c+="td.cadaynum { background-color:"+this.cNuDayBg+" }\n";c+="font.cadaynum { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:bold; color:"+this.cNuDayCo+" }\n";c+="font.cadaybad { font-family:Verdana,Arial; font-size:9pt; font-style:normal; font-weight:normal; color:"+
this.cBaDayCo+" }\n";c+="select { background-color:"+this.cSelectBg+"; font-family:Verdana,Arial; font-size:8pt; font-style:normal; font-weight:normal; color:"+this.cBodyText+" }\n";c+="//--\>\n</STYLE>\n";this.cal_wr(c);c="<BODY topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0 link="+this.cBodyLink+" vlink="+this.cBodyLink+" alink="+this.cBodyLink+" text="+this.cBodyText+" bgcolor="+this.cBodyBg+">\n";this.cal_wr(c);b=this.cal_buildHTML(b);this.cal_wr(b);c+="</BODY>\n</HTML>\n";
this.cal_wr(c);this.cWinCal.document.close()};a.cal_hide=function(){if(dom1)document.getElementById("dCalendar").style.visibility="hidden";else Calendar_Win.close()};
function Calendar(b,c,d,f,h){this.Copyright="Eurotunnel";this.Version="vJPop1.0";this.GB_Title="Calendar";this.FR_Title="Calendrier";this.NL_Title=this.DE_Title="Kalender";this.GB_nmMON=["January","February","March","April","May","June","July","August","September","October","November","December"];this.FR_nmMON=["Janvier","F\u00e9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\u00fbt","Septembre","Octobre","Novembre","D\u00e9cembre"];this.DE_nmMON=["Januar","Februar","M\u00e4rz","April","Mai","Juni",
"Juli","August","September","Oktober","November","Dezember"];this.NL_nmMON=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"];this.ndMON=[31,28,31,30,31,30,31,31,30,31,30,31];this.GB_nmDAY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];this.FR_nmDAY=["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"];this.DE_nmDAY=["Son","Mon","Die","Mit","Don","Fre","Sam"];this.NL_nmDAY=["Zon","Maa","Din","Woe","Don","Vri","Zat"];this.cBodyText=this.cBodyLink="#000000";
this.cBodyBg="#0F3184";this.cAroundBg="#ffffff";this.cSelectBg=this.cBoardBg="#C5D2D8";this.cTitleCo="#FFFFFF";this.cTitleBg="#C5D2D8";this.cCalenBg="#ffffff";this.cNmDayBg="#0F3184";this.cNmDayCo="#FFFFFF";this.cNuDayBg="#EAEFF1";this.cNuDayCo="#0F3184";this.cWkDayBg="#C5D2D8";this.cBaDayCo="#000000";this.Title=this.GB_Title;this.nmMON=this.GB_nmMON;this.nmDAY=this.GB_nmDAY;if(f!=null)if(f=="FR"){this.Title=this.FR_Title;this.nmMON=this.FR_nmMON;this.nmDAY=this.FR_nmDAY}else if(f=="DE"){this.Title=
this.DE_Title;this.nmMON=this.DE_nmMON;this.nmDAY=this.DE_nmDAY}else if(f=="NL"){this.Title=this.NL_Title;this.nmMON=this.NL_nmMON;this.nmDAY=this.NL_nmDAY}this.cWinCal=b;this.startDay=1;this.MaxY=h;this.cNow=new Date;this.cMonthName=this.nmMON[c-1];this.cMonth=c;this.cYear=d}function Calendar_build(b,c,d){n_cal=new Calendar(Calendar_Win,b,c,Calendar_Lang,Calendar_Maxy);if(dom1)n_cal.cal_showLayer(d);else{n_cal.cal_show(d);Calendar_Win.focus()}}
function Calender_show(){if(!dom1){Calendar_Win=window.open("","Calendar","width=178,height=170,top=46,left=0,status=no,resizable=no,scrollbars=no,location=no,status=no,statusbar=no,toolbar=no,menubar=no,directories=no,dependent=yes");Calendar_Win.opener=self}}function Calendar_hide(){n_cal.cal_hide()}
function winCalendar(b,c,d,f,h){b=b;c=c;d=d;f=f;h=h;var e=null,g=new Date,k=0;k=0;if(b!=null)Calendar_Lang=b;if(h!=null)affiche_ferie=h;Calendar_Month=c!=null&&c!=""?parseInt(c,10):0;if(Calendar_Month<=0||Calendar_Month>12)Calendar_Month=g.getMonth()+1;Calendar_Year=d!=null&&d!=""?parseInt(d,10):0;if(Calendar_Year<=2000)Calendar_Year=g.getFullYear();Calendar_Maxy=e!=null&&e!=0?e:1;Calender_show();Calendar_build(Calendar_Month,Calendar_Year,f)}
function Calendar_close(){Calendar_Win!=null&&Calendar_Win.close&&Calendar_Win.close()}var Cal_way=0,Cal_item=0,Cal_return_field="",opt="",Cleaner_status=false;
function Calendar_result(b,c,d,f){if(opt=="1"){b.JJ1.selectedIndex=parseInt(f,10)-1;c=c.toString();c=d+c.substring(2,4);for(i=0;i<=12;i++)if(b.MYY1.options[i].value==c)b.MYY1.selectedIndex=i}else{b.JJ2.selectedIndex=parseInt(f,10);c=c.toString();c=d+c.substring(2,4);for(i=0;i<=13;i++)if(b.MYY2.options[i].value==c)b.MYY2.selectedIndex=i}b.JJ2.selectedIndex!=0&&updateRetdate(b);if(b.JJ2.selectedIndex!=0){isJJ2no=isMYY2no=false;if(b.SENS.value!="PLS"){document.getElementById("ReturnDir").style.paddingLeft=
"5px";if(b.SENS.value=="FOCA")document.getElementById("ReturnDir").innerHTML=DirCAFO;else document.getElementById("ReturnDir").innerHTML=DirFOCA}}}function uncheckOneWay(b){b.JJ2.selectedIndex=b.JJ1.selectedIndex+1;b.MYY2.selectedIndex=b.MYY1.selectedIndex+1}
function updateRetdate(b){var c=new Date,d=new Date;c=new String(b.elements.JJ1.value);var f=new String(b.elements.MYY1.value);d=new String(b.elements.JJ2.value);var h=new String(b.elements.MYY2.value);if(f.length==3)f="0"+f;if(h.length==3)h="0"+h;var e=parseInt(f.substr(0,2),10)-1;f=parseInt("20"+f.substr(2,4),10);var g=parseInt(c,10);c=new Date(f,e,c);e=parseInt(h.substr(0,2),10)-1;h=parseInt("20"+h.substr(2,4),10);f=parseInt(d,10);d=new Date(h,e,d);if(c>d){b.JJ2.selectedIndex=b.JJ1.selectedIndex+
1;b.MYY2.selectedIndex=b.MYY1.selectedIndex+1}}
function popCal(b,c,d,f,h){var e=0;e=0;opt=d;if(!c)c=window.event;if(c.pageX||c.pageY){e=c.pageX;e=c.pageY}else if(c.clientX||c.clientY){e=c.clientX+document.body.scrollLeft;e=c.clientY+document.body.scrollTop}c=e-20;c+="px";document.getElementById("dCalendar").style.top=c;if(opt=="1"){c=new String(b.elements.JJ1.value);d=new String(b.elements.MYY1.value)}else{c=new String(b.elements.JJ2.value);d=new String(b.elements.MYY2.value)}if(d.length==3)d="0"+d;month=parseInt(d.substr(0,2),10)-1;year=parseInt("20"+
d.substr(2,4),10);day=parseInt(c,10);e=new Date(year,month,c);var g=e.getDate(),k=e.getMonth(),m=e.getFullYear();g=g.toString();if(g.length==1)g="0"+g;g.toString()==c&&parseInt(k,10)==parseInt(d.substr(0,2),10)-1&&parseInt(m)==parseInt("20"+d.substr(2,4),10)||(e=new Date);winCalendar(f,e.getMonth()+1,e.getFullYear(),b,h)}function winCleaner(){if(Cleaner_status==true){helpwin!=null&&helpwin.close&&helpwin.close();Calendar_close()}return Cleaner_status=true}
var annee_courante=2009,V_FR_lundi_paques_annee_en_cours_day=13,V_FR_lundi_paques_annee_en_cours_month=4,V_FR_jeudi_ascencion_annee_en_cours_day=21,V_FR_jeudi_ascencion_annee_en_cours_month=5,V_FR_lundi_paques_annee_suivante_day=5,V_FR_lundi_paques_annee_suivante_month=4,V_FR_jeudi_ascencion_annee_suivante_day=13,V_FR_jeudi_ascencion_annee_suivante_month=5,V_UK_vendredi_saint_annee_en_cours_day=10,V_UK_vendredi_saint_annee_en_cours_month=4,V_UK_lundi_paques_annee_en_cours_day=13,V_UK_lundi_paques_annee_en_cours_month=
4,V_UK_ferie_de_mai_annee_en_cours_day=4,V_UK_ferie_de_mai_annee_en_cours_month=5,V_UK_conge_printemps_annee_en_cours_day=25,V_UK_conge_printemps_annee_en_cours_month=5,V_UK_conge_ete_annee_en_cours_day=31,V_UK_conge_ete_annee_en_cours_month=8,V_UK_jour_noel_reporte_lundi_annee_en_cours_day=25,V_UK_jour_noel_reporte_lundi_annee_en_cours_month=12,V_UK_jour_noel_reporte_mardi_annee_en_cours_day=28,V_UK_jour_noel_reporte_mardi_annee_en_cours_month=12,V_UK_vendredi_saint_annee_suivante_day=2,V_UK_vendredi_saint_annee_suivante_month=
4,V_UK_lundi_paques_annee_suivante_day=5,V_UK_lundi_paques_annee_suivante_month=4,V_UK_ferie_de_mai_annee_suivante_day=3,V_UK_ferie_de_mai_annee_suivante_month=5,V_UK_conge_printemps_annee_suivante_day=31,V_UK_conge_printemps_annee_suivante_month=5,V_UK_conge_ete_annee_suivante_day=30,V_UK_conge_ete_annee_suivante_month=8,V_UK_jour_noel_reporte_lundi_annee_suivante_day=27,V_UK_jour_noel_reporte_lundi_annee_suivante_month=12,V_UK_jour_noel_reporte_mardi_annee_suivante_day=28,V_UK_jour_noel_reporte_mardi_annee_suivante_month=
12,F_FR_fete_du_travail_day=1,F_FR_fete_du_travail_month=5,F_FR_armistice45_day=8,F_FR_armistice45_month=5,F_FR_fete_nationale_day=14,F_FR_fete_nationale_month=7,F_FR_assomption_day=15,F_FR_assomption_month=8,F_FR_toussaint_day=1,F_FR_toussaint_month=11,F_FR_armistice18_day=11,F_FR_armistice18_month=11,F_UK_boxing_day_day=26,F_UK_boxing_day_month=12,F_nouvel_an_day=1,F_nouvel_an_month=1,F_noel_day=25,F_noel_month=12;
function test_FR_ferie(b,c,d){if(b==F_nouvel_an_day&&c==F_nouvel_an_month)return true;if(b==F_noel_day&&c==F_noel_month)return true;if(b==F_FR_fete_du_travail_day&&c==F_FR_fete_du_travail_month)return true;if(b==F_FR_armistice45_day&&c==F_FR_armistice45_month)return true;if(b==F_FR_fete_nationale_day&&c==F_FR_fete_nationale_month)return true;if(b==F_FR_assomption_day&&c==F_FR_assomption_month)return true;if(b==F_FR_toussaint_day&&c==F_FR_toussaint_month)return true;if(b==F_FR_armistice18_day&&c==
F_FR_armistice18_month)return true;if(d==annee_courante){if(b==V_FR_lundi_paques_annee_en_cours_day&&c==V_FR_lundi_paques_annee_en_cours_month)return true;if(b==V_FR_jeudi_ascencion_annee_en_cours_day&&c==V_FR_jeudi_ascencion_annee_en_cours_month)return true}if(d==annee_courante+1){if(b==V_FR_lundi_paques_annee_suivante_day&&c==V_FR_lundi_paques_annee_suivante_month)return true;if(b==V_FR_jeudi_ascencion_annee_suivante_day&&c==V_FR_jeudi_ascencion_annee_suivante_month)return true}return false}
function test_UK_ferie(b,c,d){if(b==F_nouvel_an_day&&c==F_nouvel_an_month)return true;if(b==F_noel_day&&c==F_noel_month)return true;if(b==F_UK_boxing_day_day&&c==F_UK_boxing_day_month)return true;if(d==annee_courante){if(V_UK_vendredi_saint_annee_en_cours_day==b&&V_UK_vendredi_saint_annee_en_cours_month==c)return true;if(V_UK_lundi_paques_annee_en_cours_day==b&&V_UK_lundi_paques_annee_en_cours_month==c)return true;if(V_UK_ferie_de_mai_annee_en_cours_day==b&&V_UK_ferie_de_mai_annee_en_cours_month==
c)return true;if(V_UK_conge_printemps_annee_en_cours_day==b&&V_UK_conge_printemps_annee_en_cours_month==c)return true;if(V_UK_conge_ete_annee_en_cours_day==b&&V_UK_conge_ete_annee_en_cours_month==c)return true;if(V_UK_jour_noel_reporte_lundi_annee_en_cours_day==b&&V_UK_jour_noel_reporte_lundi_annee_en_cours_month==c)return true;if(V_UK_jour_noel_reporte_mardi_annee_en_cours_day==b&&V_UK_jour_noel_reporte_mardi_annee_en_cours_month==c)return true}if(d==annee_courante+1){if(V_UK_vendredi_saint_annee_suivante_day==
b&&V_UK_vendredi_saint_annee_suivante_month==c)return true;if(V_UK_lundi_paques_annee_suivante_day==b&&V_UK_lundi_paques_annee_suivante_month==c)return true;if(V_UK_ferie_de_mai_annee_suivante_day==b&&V_UK_ferie_de_mai_annee_suivante_month==c)return true;if(V_UK_conge_printemps_annee_suivante_day==b&&V_UK_conge_printemps_annee_suivante_month==c)return true;if(V_UK_conge_ete_annee_suivante_day==b&&V_UK_conge_ete_annee_suivante_month==c)return true;if(V_UK_jour_noel_reporte_lundi_annee_suivante_day==
b&&V_UK_jour_noel_reporte_lundi_annee_suivante_month==c)return true;if(V_UK_jour_noel_reporte_mardi_annee_suivante_day==b&&V_UK_jour_noel_reporte_mardi_annee_suivante_month==c)return true}return false}function test_ferie(b,c,d,f){if(f!=null)if(f.SENS.options[f.SENS.selectedIndex].value!="PLS")return f.SENS.options[f.SENS.selectedIndex].value=="FOCA"?test_FR_ferie(b,c,d):test_UK_ferie(b,c,d);return test_FR_ferie(b,c,d)||test_UK_ferie(b,c,d)}var what=null,newbrowser=true,check=false;
function init(){if(document.getElementById){layerRef="document.getElementByID";styleSwitch=".style";visibleVar="visible";what="dom1"}else if(document.layers){layerRef="document.layers";styleSwitch="";visibleVar="show";what="ns4"}else if(document.all){layerRef="document.all";styleSwitch=".style";visibleVar="visible";what="ie4"}else{what="none";newbrowser=false}check=true}function onLoad(){init()}
function showLayer(b){if(check)if(what!="none")if(what=="dom1")document.getElementById(b).style.visibility="inherit";else eval(layerRef+'["'+b+'"]'+styleSwitch+'.visibility="inherit"')}function hideLayer(b){if(check){window.status="Eurotunnel";if(what!="none")if(what=="dom1")document.getElementById(b).style.visibility="hidden";else eval(layerRef+'["'+b+'"]'+styleSwitch+'.visibility="hidden"')}}
function writedetails(b,c){if(check)if(what!="none")what=="dom1"?eval("document.getElementById(layerName).innerHTML=("+c+");"):eval(layerRef+'["'+b+'"].innerHTML=('+c+")")}function moveLayer(b,c,d){b=document.getElementById(b);b.style.left=c;b.style.top=d}function getMouseY(){if(!b)var b=window.event;if(b)if(b.pageX||b.pageY)return b.pageY;else if(b.clientX||b.clientY)return b.clientY+document.body.scrollTop}
function getMouseX(){if(!b)var b=window.event;if(b)if(b.pageX||b.pageY)return b.pageX;else if(b.clientX||b.clientY)return b.clientX+document.body.scrollLeft}function swapimage(b,c){document.getElementById(b).src="img/"+c}function languagebutover(b){if(b=="FR")document.getElementById("languagetext").innerHTML="Site en fran\u00e7ais";else document.getElementById("languagetext").innerHTML="Site in English";document.getElementById("languagetext").style.visibility="visible"}
function languagebutoff(b){document.getElementById("languagetext").style.visibility="hidden"}function activateLogin(){document.getElementById("divOuterLIADMI").style.display="none";document.getElementById("divOuterLADMI").style.display="block"}function activateLoggedin(){document.getElementById("divOuterLIADMI").style.display="block";document.getElementById("divOuterLADMI").style.display="none"}
function openInfo(b,c,d){MyHeight=MyWidth=d="";if(c=="FR")switch(b){case "vehdesc":MyWidth="660";MyHeight="800";d="help/Vehdesc_FR.asp";break;case "vehtrailer":MyWidth="450";MyHeight="640";d="help/VehTrail_FR.asp";break;case "vhlpg":MyWidth="450";MyHeight="620";d="help/VehLPG_FR.asp";break;case "loginref":MyWidth="400";MyHeight="290";d="help/LoginRef_FR.asp";break;case "loginpwd":MyWidth="320";MyHeight="245";d="help/LoginPwd_FR.asp";break;case "goods":MyWidth="400";MyHeight="290";d="help/goods_FR.asp";
break;case "viewref":MyWidth="400";MyHeight="290";d="help/View_FR.asp";break}if(c=="GB")switch(b){case "vehdesc":MyWidth="640";MyHeight="770";d="help/Vehdesc_GB.asp";break;case "vehtrailer":MyWidth="450";MyHeight="590";d="help/VehTrail_GB.asp";break;case "vhlpg":MyWidth="500";MyHeight="570";d="help/VehLPG_GB.asp";break;case "loginref":MyWidth="400";MyHeight="300";d="help/LoginRef_GB.asp";break;case "loginpwd":MyWidth="330";MyHeight="245";d="help/LoginPwd_GB.asp";break;case "goods":MyWidth="400";MyHeight=
"280";d="help/goods_GB.asp";break;case "viewref":MyHeight=MyWidth="400";d="help/View_GB.asp";break}b=window.top.parent.window.screenTop;c=window.top.parent.window.screenLeft;c=c+570;b=b-120;if(b<0)b=0;if(c<0)c=0;mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();mywinoutt=window.open(d,"INFO","width="+MyWidth+",height="+MyHeight+",top="+b+",left="+c+",resizable=yes,scrollbars=yes,location=no,status=no,statusbar=no,toolbar=no,menubar=no,directories=no,dependent=yes");mywinoutt.focus()}
function checkEmail(b){var c=0,d=0,f=0;c=0;if(b==null||b=="")return false;if(b.length<7)return false;c=b.indexOf("@");d=b.lastIndexOf(".");if(c<=0||d<=0||c>=d)return false;f=b.length-d-1;if(f<2||f>4)return false;c=d-c-1;if(c<2)return false;return true}
function checkString(b,c,d){var f="0123456789",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e="\u00c0\u00c1\u00c2\u00c3\u00c4\u00c5\u00c6\u00c7\u00c8\u00c9\u00ca\u00cb\u00cc\u00cd\u00ce\u00cf\u00d1\u00d2\u00d3\u00d4\u00d5\u00d6\u00d8\u00d9\u00da\u00db\u00dc\u00dd\u00df\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6\u00e7\u00e8\u00e9\u00ea\u00eb\u00ec\u00ed\u00ee\u00ef\u00f1\u00f2\u00f3\u00f4\u00f5\u00f6\u00f8\u00f9\u00fa\u00fb\u00fc\u00fd",g="",k="",m="",n=0;if(b==null||b=="")return false;
if(c==null)g=f+h;else for(i=0;i<c.length;i++){k=""+c.charAt(i);if(k=="1")g+=f;else if(k=="2")g+=h;else if(k=="3")g+=e}if(d!=null&&d!="")g+=d;for(i=0;i<b.length;i++){k=""+b.charAt(i);if(g.indexOf(k)<0){m+=k;break}k==" "&&n++}if(m!=""||n==b.length)return false;return true}function DisplayError(b,c){lang=="FR"?alert(c):alert(b)}function goAnotherPages(b,c){mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();b.action=c;b.submit()}
function goFare(b){mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();b.action="fare.asp";b.submit()}function goJourney(b){mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();b.action="journey.asp";b.submit()}function goTime(b){mywinoutt&&mywinoutt.open&&!mywinoutt.closed&&mywinoutt.close();b.action="time.asp";b.submit()}var mywinoutt2="";
function openLink(b){mywinoutt2&&mywinoutt2.open&&!mywinoutt2.closed&&mywinoutt2.close();var c=window.top.parent.window.screenTop,d=window.top.parent.window.screenLeft;d=d+250;c=c-250;if(c<0)c=0;if(d<0)d=0;mywinoutt2=window.open(b,null,"width=780,height=600,top="+c+",left="+d+",resizable=yes,scrollbars=yes,location=yes,status=yes,statusbar=yes,toolbar=yes,menubar=yes,directories=yes,dependent=yes");mywinoutt2.focus()};
