var fieldstocheck = new Array();    fieldnames = new Array();function checkform() {  for (i=0;i<fieldstocheck.length;i++) {    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {      alert("Please enter your "+fieldnames[i]);      eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");      return false;    }  }  return true;}function addFieldToCheck(value,name) {  fieldstocheck[fieldstocheck.length] = value;  fieldnames[fieldnames.length] = name;}function compareEmail(){  return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value);}function airport(){	var a1 = document.form1.ap.value;	if (a1 == "Request")		{ 		alert ("Please select an airport.");		return false;		}	else	{		return true;	}}function DateAdd(startDate, numDays, numMonths, numYears){	var returnDate = new Date(startDate.getTime());	var yearsToAdd = numYears;		var month = returnDate.getMonth()	+ numMonths;	if (month > 11)	{		yearsToAdd = Math.floor((month+1)/12);		month -= 12*yearsToAdd;		yearsToAdd += numYears;	}	returnDate.setMonth(month);	returnDate.setFullYear(returnDate.getFullYear()	+ yearsToAdd);		returnDate.setTime(returnDate.getTime()+60000*60*24*numDays);		return returnDate;}var menu1=new Array()menu1[0]='<a href="indexAirportParking.php?Location=ABZ">Aberdeen</a>'menu1[1]='<a href="indexAirportParking.php?Location=BFS">Belfast</a>'menu1[2]='<a href="indexAirportParking.php?Location=BHX">Birmingham</a>'menu1[3]='<a href="indexAirportParking.php?Location=BLK">Blackpool</a>'menu1[4]='<a href="indexAirportParking.php?Location=BRS">Bristol</a>'menu1[5]='<a href="indexAirportParking.php?Location=CWL">Cardiff</a>'menu1[6]='<a href="indexAirportParking.php?Location=MME">Durham Tees Valley</a>'menu1[7]='<a href="indexAirportParking.php?Location=EMA">East Midlands</a>'menu1[8]='<a href="indexAirportParking.php?Location=DSA">Doncaster/Sheffield</a>'menu1[9]='<a href="indexAirportParking.php?Location=EXT">Exeter</a>'menu1[10]='<a href="indexAirportParking.php?Location=EDI">Edinburgh</a>'menu1[11]='<a href="indexAirportParking.php?Location=LGW">Gatwick</a>'menu1[12]='<a href="indexAirportParking.php?Location=GLA">Glasgow</a>'menu1[13]='<a href="indexAirportParking.php?Location=LHR">Heathrow</a>'menu1[14]='<a href="indexAirportParking.php?Location=LH5">Heathrow T5</a>' menu1[15]='<a href="indexAirportParking.php?Location=HUY">Humberside</a>'menu1[16]='<a href="indexAirportParking.php?Location=INV">Inverness</a>'menu1[17]='<a href="indexAirportParking.php?Location=LBA">Leeds/Bradford </a>'menu1[18]='<a href="indexAirportParking.php?Location=LPL">Liverpool</a>'menu1[19]='<a href="indexAirportParking.php?Location=LCY">London City</a>'menu1[20]='<a href="indexAirportParking.php?Location=LTN">Luton</a>'menu1[21]='<a href="indexAirportParking.php?Location=NCL">Newcastle</a>'menu1[22]='<a href="indexAirportParking.php?Location=EMA">Nottingham</a>'menu1[23]='<a href="indexAirportParking.php?Location=NWI">Norwich</a>'menu1[24]='<a href="indexAirportParking.php?Location=MAN">Manchester</a>'menu1[25]='<a href="indexAirportParking.php?Location=PIK">Prestwick</a>'menu1[26]='<a href="indexAirportParking.php?Location=SOU">Southampton</a>'menu1[27]='<a href="indexAirportParking.php?Location=STN">Stansted</a>'//Contents for menu 2, and so onvar menu2=new Array()menu2[0]='<a href="indexAirportHotels.php?Location=ABZ">Aberdeen</a>'menu2[1]='<a href="indexAirportHotels.php?Location=BFS">Belfast</a>'menu2[2]='<a href="indexAirportHotels.php?Location=BHX">Birmingham</a>'menu2[3]='<a href="indexAirportHotels.php?Location=BLK">Blackpool</a>'menu2[4]='<a href="indexAirportHotels.php?Location=BRS">Bristol</a>'menu2[5]='<a href="indexAirportHotels.php?Location=CWL">Cardiff</a>'menu2[6]='<a href="indexAirportHotels.php?Location=CVT">Coventry</a>'menu2[7]='<a href="indexAirportHotels.php?Location=DUB">Dublin</a>'menu2[8]='<a href="indexAirportHotels.php?Location=MME">Durham Tees Valley</a>'menu2[9]='<a href="indexAirportHotels.php?Location=EMA">East Midlands</a>'menu2[10]='<a href="indexAirportHotels.php?Location=DSA">Doncaster/Sheffield</a>'menu2[11]='<a href="indexAirportHotels.php?Location=DOV">Dover</a>'menu2[12]='<a href="indexAirportHotels.php?Location=EXT">Exeter</a>'menu2[13]='<a href="indexAirportHotels.php?Location=EDI">Edinburgh</a>'menu2[14]='<a href="indexAirportHotels.php?Location=LGW">Gatwick</a>'menu2[15]='<a href="indexAirportHotels.php?Location=GLA">Glasgow</a>'menu2[16]='<a href="indexAirportHotels.php?Location=LHR">Heathrow</a>'menu2[17]='<a href="indexAirportHotels.php?Location=LBA">Leeds/Bradford</a>'menu2[18]='<a href="indexAirportHotels.php?Location=LPL">Liverpool</a>'menu2[19]='<a href="indexAirportHotels.php?Location=LCY">London City</a>'menu2[20]='<a href="indexAirportHotels.php?Location=LTN">Luton</a>'menu2[21]='<a href="indexAirportHotels.php?Location=MAN">Manchester</a>'menu2[22]='<a href="indexAirportHotels.php?Location=EMA">Nottingham</a>'menu2[23]='<a href="indexAirportHotels.php?Location=NCL">Newcastle</a>'menu2[24]='<a href="indexAirportHotels.php?Location=NWI">Norwich</a>'menu2[25]='<a href="indexAirportHotels.php?Location=DSA">Robin Hood Doncaster</a>'menu2[26]='<a href="indexAirportHotels.php?Location=PIK">Prestwick</a>'menu2[27]='<a href="indexAirportHotels.php?Location=SOU">Southampton</a>'menu2[28]='<a href="indexAirportHotels.php?Location=STN">Stansted</a>'var menu3=new Array()menu3[0]='<a href="indexAirportLounges.php?Location=ABZ">Aberdeen</a>'menu3[1]='<a href="indexAirportLounges.php?Location=BFS">Belfast</a>'menu3[2]='<a href="indexAirportLounges.php?Location=BHX">Birmingham</a>'menu3[3]='<a href="indexAirportLounges.php?Location=BLK">Blackpool</a>'menu3[4]='<a href="indexAirportLounges.php?Location=BRS">Bristol</a>'menu3[5]='<a href="indexAirportLounges.php?Location=CWL">Cardiff</a>'menu3[6]='<a href="indexAirportLounges.php?Location=EMA">Nottingham</a>'menu3[7]='<a href="indexAirportLounges.php?Location=EDI">Edinburgh</a>'menu3[8]='<a href="indexAirportLounges.php?Location=GLA">Glasgow</a>'menu3[9]='<a href="indexAirportLounges.php?Location=HUY">Humberside</a>'menu3[10]='<a href="indexAirportLounges.php?Location=LGW">London - Gatwick</a>'menu3[11]='<a href="indexAirportLounges.php?Location=LHR">London - Heathrow</a>'menu3[12]='<a href="indexAirportLounges.php?Location=LTN">London - Luton</a>'menu3[13]='<a href="indexAirportLounges.php?Location=STN">London - Stansted</a>'menu3[14]='<a href="indexAirportLounges.php?Location=LBA">Leeds/Bradford</a>'menu3[15]='<a href="indexAirportLounges.php?Location=LPL">Liverpool</a>'menu3[16]='<a href="indexAirportLounges.php?Location=MAN">Manchester</a>'menu3[17]='<a href="indexAirportLounges.php?Location=NCL">Newcastle</a>'var menu4=new Array()menu4[0]='<a href="indexPortParking.php?Location=DOV">Dover</a>'menu4[1]='<a href="indexPortParking.php?Location=FOL">Folkestone</a>'menu4[2]='<a href="indexPortParking.php?Location=SOP">Southampton</a>'	var menu5=new Array()menu5[0]='<a href="indexAirportRail.php?Location=BIRMINGHAM INTL">Birmingham Intl</a>'menu5[1]='<a href="indexAirportRail.php?Location=GATWICK AIRPORT">Gatwick Airport</a>'menu5[2]='<a href="indexAirportRail.php?Location=GLASGOW AIRPORT">Glasgow Airport</a>'menu5[3]='<a href="indexAirportRail.php?Location=HEATHROW AIRPORT">Heathrow Airport</a>'menu5[4]='<a href="indexAirportRail.php?Location=LUTON">Luton</a>'menu5[5]='<a href="indexAirportRail.php?Location=MANCHESTER AIRPORT">Manchester Airport</a>'menu5[6]='<a href="indexAirportRail.php?Location=NEWCASTLE">Newcastle</a>'menu5[7]='<a href="indexAirportRail.php?Location=STANSTED AIRPORT">Stansted Airport</a>'var menuwidth='' //default menu widthvar menubgcolor=''  //menu bgcolorvar disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)var hidemenu_onclick="yes" //hide menu when user clicks within menu?/////No further editting neededvar ie4=document.allvar ns6=document.getElementById&&!document.allif (ie4||ns6)document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}function showhide(obj, e, visible, hidden, menuwidth){if (ie4||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500if (menuwidth!=""){dropmenuobj.widthobj=dropmenuobj.styledropmenuobj.widthobj.width=menuwidth}if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")obj.visibility=visibleelse if (e.type=="click")obj.visibility=hidden}function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function clearbrowseredge(obj, whichedge){var edgeoffset=0if (whichedge=="rightedge"){var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15dropmenuobj.contentmeasure=dropmenuobj.offsetWidthif (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}else{var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffsetvar windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18dropmenuobj.contentmeasure=dropmenuobj.offsetHeightif (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeightif ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge}}return edgeoffset}function populatemenu(what){if (ie4||ns6)dropmenuobj.innerHTML=what.join("")}function dropdownmenu(obj, e, menucontents, menuwidth){if (window.event) event.cancelBubble=trueelse if (e.stopPropagation) e.stopPropagation()clearhidemenu()dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudivpopulatemenu(menucontents)if (ie4||ns6){showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)dropmenuobj.x=getposOffset(obj, "left")dropmenuobj.y=getposOffset(obj, "top")dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){if (ie4||ns6) return falseelse return true}function contains_ns6(a, b) {while (b.parentNode)if ((b = b.parentNode) == a)return true;return false;}function dynamichide(e){if (ie4&&!dropmenuobj.contains(e.toElement))delayhidemenu()else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))delayhidemenu()}function hidemenu(e){if (typeof dropmenuobj!="undefined"){if (ie4||ns6)dropmenuobj.style.visibility="hidden"}}function delayhidemenu(){if (ie4||ns6)delayhide=setTimeout("hidemenu()",disappeardelay)}function clearhidemenu(){if (typeof delayhide!="undefined")clearTimeout(delayhide)}if (hidemenu_onclick=="yes")document.onclick=hidemenufunction MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
