function showhide(){var parkingvalue=document.getElementById('parking').options[document.getElementById('parking').selectedIndex].value;var airportcodevalue=document.getElementById('airportcode').options[document.getElementById('airportcode').selectedIndex].value;if(parkingvalue=="1"){document.getElementById('show1').style.display='none';document.getElementById('honly').innerHTML='First Night of Stay';document.getElementById('hnight').innerHTML='Nights<br /><select name="nights" style="font-size:11px;"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option></select>';document.getElementById('hotelintgatwick').innerHTML='';document.getElementById('hotelint').innerHTML='';document.getElementById('hotelintgatwicktemp').style.display='none';}
else{document.getElementById('show1').style.display='block';document.getElementById('honly').innerHTML='Night of stay';document.getElementById('hnight').innerHTML='';if(airportcodevalue=="LGW"&&parkingvalue!="1"){document.getElementById('hotelintgatwick').innerHTML='<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">I&#8216;m&nbsp;interested&nbsp;in&nbsp;hotels&nbsp;(optional)<br /><select name="filter" style="font-size:11px;"><option value="" selected="selected">Select</option><option value="car_park_assoc">with secured parking</option><option value="hotel_connected_to_terminal">connected to terminal</option><option value="with_parking_at_hotel">with parking at hotel</option><option value="with_meet_and_greet_options">with meet and greet options</option></select></td></tr></table>';}
document.getElementById('hotelintgatwicktemp').style.display='none';}}
function showhideinterested(){var airportcodevalue=document.getElementById('airportcode').options[document.getElementById('airportcode').selectedIndex].value;var parkingvalue=document.getElementById('parking').options[document.getElementById('parking').selectedIndex].value;if(parkingvalue=="1"){if(airportcodevalue=="LGW"){document.getElementById('hotelint').innerHTML='';document.getElementById('hotelintgatwick').innerHTML='';document.getElementById('hotelintgatwicktemp').style.display='none';}else{document.getElementById('hotelint').innerHTML='';document.getElementById('hotelintgatwick').innerHTML='';document.getElementById('hotelintgatwicktemp').style.display='none';}}
else{if(airportcodevalue=="LGW"){document.getElementById('hotelint').innerHTML='';document.getElementById('hotelintgatwick').innerHTML='<table border="0" cellspacing="0" cellpadding="0" style="padding-left:1px;"><tr><td nowrap="nowrap">I&#8216; m&nbsp;interested&nbsp;in&nbsp;hotels&nbsp;(optional)<br /><select name="filter" style="font-size:11px;"><option value="" selected="selected">Select</option><option value="car_park_assoc">with secured parking</option><option value="hotel_connected_to_terminal">connected to terminal</option><option value="with_parking_at_hotel">with parking at hotel</option><option value="with_meet_and_greet_options">with meet and greet options</option></select></td></tr></table>';document.getElementById('hotelintgatwicktemp').style.display='none';}
else{document.getElementById('hotelintgatwick').innerHTML='';document.getElementById('hotelint').innerHTML='';document.getElementById('hotelintgatwicktemp').style.display='none';}}}
function showhideinvalid(){var parkingvalue=document.getElementById('parking1').options[document.getElementById('parking1').selectedIndex].value;var airportcodevalue=document.getElementById('airportcode1').options[document.getElementById('airportcode1').selectedIndex].value;if(parkingvalue=="1"){document.getElementById('show11').style.display='none';document.getElementById('honly1').innerHTML='First Night of Stay';document.getElementById('hnight1').innerHTML='Nights<br /><select name="nights" style="font-size:11px;"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option></select>';document.getElementById('hotelintgatwick1').innerHTML='';document.getElementById('hotelint1').innerHTML='';}
else{document.getElementById('show11').style.display='block';document.getElementById('honly1').innerHTML='Night of stay';document.getElementById('hnight1').innerHTML='';if(airportcodevalue=="LGW"&&parkingvalue!="1"){document.getElementById('hotelintgatwick1').innerHTML='<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">I&#8216;m&nbsp;interested&nbsp;in&nbsp;hotels&nbsp;(optional)<br /><select name="filter" style="font-size:11px;"><option value="" selected="selected">Select</option><option value="car_park_assoc">with secured parking</option><option value="hotel_connected_to_terminal">connected to terminal</option><option value="with_parking_at_hotel">with parking at hotel</option><option value="with_meet_and_greet_options">with meet and greet options</option></select></td></tr></table>';}}}
function showhideinterestedinvalid(){var airportcodevalue=document.getElementById('airportcode1').options[document.getElementById('airportcode1').selectedIndex].value;var parkingvalue=document.getElementById('parking1').options[document.getElementById('parking1').selectedIndex].value;if(parkingvalue=="1"){if(airportcodevalue=="LGW"){document.getElementById('hotelint1').innerHTML='';document.getElementById('hotelintgatwick1').innerHTML='';}else{document.getElementById('hotelint1').innerHTML='';document.getElementById('hotelintgatwick1').innerHTML='';}}
else{if(airportcodevalue=="LGW"){document.getElementById('hotelint1').innerHTML='';document.getElementById('hotelintgatwick1').innerHTML='<table border="0" cellspacing="0" cellpadding="0" style="padding-left:1px;"><tr><td nowrap="nowrap">I&#8216; m&nbsp;interested&nbsp;in&nbsp;hotels&nbsp;(optional)<br /><select name="filter" style="font-size:11px;"><option value="" selected="selected">Select</option><option value="car_park_assoc">with secured parking</option><option value="hotel_connected_to_terminal">connected to terminal</option><option value="with_parking_at_hotel">with parking at hotel</option><option value="with_meet_and_greet_options">with meet and greet options</option></select></td></tr></table>';}
else{document.getElementById('hotelintgatwick1').innerHTML='';document.getElementById('hotelint1').innerHTML='';}}}
function search_validation_hotel()
{DocF=document.search;if((DocF.ap.value)=="0")
{alert("Plese specify the airport name!");DocF.ap.focus();return false;}
var agreewin=dhtmlmodal.open("agreebox","iframe","hotelloading.php","","width=420px,height=210px,center=1,resize=0,scrolling=0","recal")
agreewin.onclose=function(){var theform=this.contentDoc.getElementById("eula")
var yesbox=theform.eulabox[0]
var nobox=theform.esulabox[1]
if(yesbox.checked==true)
alert("You agreed to the terms")
else if(nobox.checked==true)
alert("You didn't agree to the terms")
return true}
return true;}
function search_validation_hotel1()
{DocF=document.searchhotel;if((DocF.ap.value)=="0")
{alert("Plese specify the airport name!");DocF.ap.focus();return false;}
var agreewin=dhtmlmodal.open("agreebox","iframe","hotelloading.php","","width=420px,height=210px,center=1,resize=0,scrolling=0","recal")
agreewin.onclose=function(){var theform=this.contentDoc.getElementById("eula")
var yesbox=theform.eulabox[0]
var nobox=theform.esulabox[1]
if(yesbox.checked==true)
alert("You agreed to the terms")
else if(nobox.checked==true)
alert("You didn't agree to the terms")
return true}
return true;}
