var IE =0;
var n=navigator,B=(n.userAgent+n.appName).toLowerCase(),V=parseInt(n.appVersion);
var N4=(B.indexOf("netscape")!=-1&&V==4)
IE=(B.indexOf("microsoft")!=-1);
d=document;

function hasSel()
{
 if(d.f.ap.selectedIndex>0)
 {
  return true;
 }
 else
 {
   alert('Please Select an Airport from the list.')
   d.f.ap.focus();
   return false;
 }
}
path = location.pathname;
if(path =="/")path="/index.html";
theform='<iframe src="http://www.parkandsave.co.uk/frm.php" marginheight="0" marginwidth="0"  frameborder="0" height="150" width="100%" scrolling="no" ></iframe>';

d.write(theform);

function set(o,v){
for(var i=0,n=o.options.length; i<n; i++ ){
if(o.options[i].value == v){o.options[rc=i].selected = true;}
}
}
_url=location.href.toLowerCase()

if((_url).indexOf('belfast')!=-1){set(f.ap,'BFS');}
else if((_url).indexOf('birmingham')!=-1){set(f.ap,'BHX');}
else if((_url).indexOf('bristol')!=-1){set(f.ap,'BRS');}
else if((_url).indexOf('cardiff')!=-1){set(f.ap,'CWL');}
else if((_url).indexOf('east-midlands')!=-1){set(f.ap,'EMA');}
else if((_url).indexOf('edinburgh')!=-1){set(f.ap,'EDI');}
else if((_url).indexOf('bristol')!=-1){set(f.ap,'BRS');}
else if((_url).indexOf('bristol')!=-1){set(f.ap,'BRS');}
else if((_url).indexOf('gatwick')!=-1){set(f.ap,'LGW');}
else if((_url).indexOf('heathrow')!=-1){set(f.ap,'LHR');}
else if((_url).indexOf('leeds')!=-1){set(f.ap,'LBA');}
else if((_url).indexOf('liverpool')!=-1){set(f.ap,'LPL');}
else if((_url).indexOf('luton')!=-1){set(f.ap,'LTN');}
else if((_url).indexOf('manchester')!=-1){set(f.ap,'MAN');}
else if((_url).indexOf('newcastle')!=-1){set(f.ap,'NCL');}
else if((_url).indexOf('prestwick')!=-1){set(f.ap,'PIK');}
else if((_url).indexOf('stansted')!=-1){set(f.ap,'STN');}

