var mac=(navigator.platform.indexOf('Mac') > -1)? true:false;
var pc=(navigator.platform.indexOf('Mac')<=-1)? true:false;
var isIE=(document.all)? true:false;
var ie4 = (navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 2) == "4.")? true:false;
var ie5 = (navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 2) == "5.")? true:false;
var ie40 =(navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 3) == "4.0")? true:false;
var ie45 = (navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 3) == "4.5")? true:false;
var ie50 =(navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 3) == "5.0")? true:false;
var ie55 =(navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 3) == "5.5")? true:false;
//Added the following Line to Fix IE 6 NC on 8th Aug 2002 Start  by  Vimalraj
ie60 =(navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5, 3) == "6.0")? true:false
//Added the above Line to Fix IE 6 NC on 8th Aug 2002 End by Vimalraj
var isNS=(document.layers)? true:false;
var ns40 = (navigator.userAgent.substr(navigator.userAgent.indexOf("Mozilla")+8, 3) == "4.0")? true:false;
var bHasHolding=false;
var sMyDocument = "document";
var sMyHoldingDoc = "document";
var cssLink;
var faviconlink;
var appVer=navigator.appVersion.toLowerCase();
var iePos =appVer.indexOf('msie');
if(mac){
if(isIE){
if(iePos !=-1){
check45=parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)));
if(check45<=5){
cssLink = '<link href="/Styles/macie.css" rel="styleSheet" type="text/css">';
} else {
cssLink = '<link href="/Styles/winie.css" rel="styleSheet" type="text/css">';
}
}
} else {
cssLink = '<link href="/Styles/macns.css" rel="styleSheet" type="text/css">';
}
} else {
if(isIE){
cssLink = '<link href="/Styles/winie.css" rel="styleSheet" type="text/css">';
} else {
cssLink = '<link href="/Styles/winns.css" rel="styleSheet" type="text/css">';
}
}
document.write(cssLink);
if(isNS){
var widthCheck=window.innerWidth;
var heightCheck=window.innerHeight;
window.onResize=resizeFix;
}
function resizeFix(){
if(widthCheck!=window.innerWidth||heightCheck!=window.innerHeight)
history.go(0);
}
function changeDiv(layerName, strNewText){
with (eval(layerRef+'["'+layerName+'"]')){
document.open();
alert(strNewText);
document.write(strNewText);
document.close();
}
resizeFix();
}
if(document.all||document.getElementById){
aMyPin=new Array(192,220,221,192);
}
else if(document.layers){
aMyPin=new Array(96,92,93,96);
}
var aLayersToNudge=new Array();
var bScriptInComponent=false;
var bHasLayering=false;
var sFVUserId=false;
var iFVnumSavedItemsSoFar=0;
var iFVnumSavedItems=0;
var iFVMaxItemsAllowed=0;
var sFVMaxItemsError="";
var bFVIsOneWay=false;
var bFVIsHotel=false;
var bFVParsingDate=false;
var a1aResErrors=new Array();
var isEmptyFields=new Array();
var isEmptyErrors=new Array();
var isSameFields=new Array();
var isSameErrors=new Array();
var isEmailFields=new Array();
var isEmailErrors=new Array();
var isSelectedCheckFields=new Array();
var isSelectedCheckErrors=new Array();
var isSelectedDropFields=new Array();
var isSelectedDropErrors=new Array();
var isSelectedRadioFields=new Array();
var isSelectedRadioErrors=new Array();
var crossValidateAges=new Array();
var crossValidateAgeErrors=new Array();
var isValidDateFields=new Array();
var isValidOutboundErrors=new Array();
var isValidReturnErrors=new Array();
var hasValidCharFields=new Array();
var hasValidCharErrors=new Array();
var fallsInRangeFields=new Array();
var fallsInRangeErrors=new Array();
var isValidLegFields=new Array();
var isValidLegErrors=new Array();
faviconlink = '<LINK REL="SHORTCUT ICON" HREF="/images/en/FE/Global/favicon.ico"> ';
document.write(faviconlink);

function getMaxAdvanceDays()
{
return 360;
}
