function validateContact(form1){var valid=true;if(form1.email.value==""){alert('Please enter your email address');valid=false;form1.email.focus()}if(form1.message.value==""&&valid){alert('Please enter a message');valid=false;form1.message.focus()}if(valid){form1.submit()}}function validateBooking(form1){var valid=true;if(form1.title.value==""){alert('Please enter your title');form1.title.focus();valid=false}if(form1.firstname.value==""&&valid){alert('Please enter your firstname');form1.firstname.focus();valid=false}if(form1.surname.value==""&&valid){alert('Please enter your surname');form1.surname.focus();valid=false}if(form1.address_line1.value==""&&valid){alert('Please enter the 1st line of your address');form1.address_line1.focus();valid=false}if(form1.post_town.value==""&&valid){alert('Please enter the postal town/city');form1.post_town.focus();valid=false}if(form1.postcode.value==""&&valid){alert('Please enter your postcode');form1.postcode.focus();valid=false}if(form1.country.options[form1.country.selectedIndex].value==""&&valid){alert('Please choose your country');form1.country.focus();valid=false}if(form1.contact_num.value==""&&valid){alert('Please enter your main contact number');form1.contact_num.focus();valid=false}if(form1.alt_phone.value==""&&valid){alert('Please enter an alternative number');form1.alt_phone.focus();valid=false}if(form1.email.value==""&&valid){alert('Please enter a valid email address');form1.email.focus();valid=false}if(form1.confirm_email.value==""&&valid){alert('Please confirm your email address');form1.confirm_email.focus();valid=false}if((form1.email.value!=form1.confirm_email.value)&&valid){alert('Please ensure the email fields match');form1.email.focus();valid=false}if(form1.car_make.value==""&&valid){alert('Please enter the make of your car');form1.car_make.focus();valid=false}if(form1.car_model.value==""&&valid){alert('Please enter the model of your car');form1.car_model.focus();valid=false}if(form1.car_colour.value==""&&valid){alert('Please enter the colour of your car');form1.car_colour.focus();valid=false}if(form1.car_reg.value==""&&valid){alert('Please enter the registration number of the car');form1.car_reg.focus();valid=false}if(form1.out_flight.value==""&&valid){alert('Please enter the outgoing flight number');form1.out_flight.focus();valid=false}if(form1.out_terminal.value==""&&valid){alert('Please enter the terminal for the outgoing flight');form1.out_terminal.focus();valid=false}if(form1.in_flight.value==""&&valid){alert('Please enter the ingoing flight number');form1.in_flight.focus();valid=false}if(form1.in_terminal.value==""&&valid){alert('Please enter the terminal for the ingoing flight');form1.in_terminal.focus();valid=false}if(!form1.tc.checked&&valid){alert('Please tick that you have understood the terms + conditions');form1.tc.focus();valid=false}if(valid){form1.submit()}}function miniPane(url,width,height){var w=0;var h=0;if(document.all||document.layers){w=screen.availWidth;h=screen.availHeight}else{w=screen.width;h=screen.height}var popW=width,popH=height;var leftPos=(w-popW)/2,topPos=(h-popH)/2;var win=window.open(url,'smallwindow','width='+width+',height='+height+',toolbar=no,scrollbars=yes,resizable=yes,menubar=no,location=no');if(!win){alert('A popup blocker may have blocked this link, please allow popups on this site')}else{win.moveTo(leftPos,topPos)}}
