function validateFormAirport() { var fname=document.forms["formAirport"]["fname"].value var lname=document.forms["formAirport"]["lname"].value var phone=document.forms["formAirport"]["phone"].value var email=document.forms["formAirport"]["email"].value var numpersons=document.forms["formAirport"]["numpersons"].value var arrivalairport=document.forms["formAirport"]["arrivalairport"].value var arrivaldate=document.forms["formAirport"]["arrivaldate"].value var timeofarrival=document.forms["formAirport"]["timeofarrival"].value var airlinename=document.forms["formAirport"]["airlinename"].value var flightnumber=document.forms["formAirport"]["flightnumber"].value var destination=document.forms["formAirport"]["destination"].value if (fname==null || fname=="") { alert("First name must be filled out"); return false; } if (lname==null || lname=="") { alert("Last name must be filled out"); return false; } if (phone==null || phone=="") { alert("Phone number must be filled out"); return false; } if (email==null || email=="") { alert("E-Mail address must be filled out"); return false; } var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var address = document.forms["formAirport"]["email"].value if(reg.test(address) == false) { alert('Invalid Email Address'); return false; } if (numpersons==null || numpersons=="") { alert("Please select number of people"); return false; } if (arrivalairport==null || arrivalairport=="") { alert("Please select Arrival Airport"); return false; } if (arrivaldate==null || arrivaldate=="") { alert("Date of arrival must be filled out"); return false; } if (timeofarrival==null || timeofarrival=="") { alert("Time of arrival must be filled out"); return false; } if (airlinename==null || airlinename=="") { alert("Airline name must be filled out"); return false; } if (flightnumber==null || flightnumber=="") { alert("Flight number must be filled out"); return false; } if (destination==null || destination=="") { alert("Destination must be filled out"); return false; } } function validateFormAirportShuttle() { var fname=document.forms["formAirport"]["fname"].value var lname=document.forms["formAirport"]["lname"].value var phone=document.forms["formAirport"]["phone"].value var email=document.forms["formAirport"]["email"].value var numpersons=document.forms["formAirport"]["numpersons"].value var pickup_point=document.forms["formAirport"]["pickup_point"].value var departure_airport=document.forms["formAirport"]["departure_airport"].value var departure_date=document.forms["formAirport"]["departure_date"].value var departure_time=document.forms["formAirport"]["departure_time"].value var another=document.forms["formAirport"]["another"].value if (fname==null || fname=="") { alert("First name must be filled out"); return false; } if (lname==null || lname=="") { alert("Last name must be filled out"); return false; } if (phone==null || phone=="") { alert("Phone number must be filled out"); return false; } if (email==null || email=="") { alert("E-Mail address must be filled out"); return false; } var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var address = document.forms["formAirport"]["email"].value if(reg.test(address) == false) { alert('Invalid Email Address'); return false; } if (numpersons==null || numpersons=="") { alert("Please select number of people"); return false; } if (pickup_point==null || pickup_point=="") { alert("Please select Pick-Up Point"); return false; } if (departure_airport==null || departure_airport=="") { alert("Please select Departure Airport"); return false; } if (departure_date==null || departure_date=="") { alert("Please enter departure date"); return false; } if (departure_time==null || departure_time=="") { alert("Please enter departure time"); return false; } } function validateFormAddHouse() { var title=document.forms["formAddHouse"]["title"].value var album=document.forms["formAddHouse"]["album"].value var details=document.forms["formAddHouse"]["details"].value if (title==null || title=="") { alert("Enter House Name"); return false; } if (details==null || details=="") { alert("Enter Some Details For This House"); return false; } if (album==null || album=="") { alert("Select Album With Pictures For This House"); return false; } } /*********************************************** Fool-Proof Date Input Script with DHTML Calendar by Jason Moon - http://calendar.moonscript.com/dateinput.cfm ************************************************/ // Customizable variables var DefaultDateFormat = 'MM/DD/YYYY'; // If no date format is supplied, this will be used instead var HideWait = 3; // Number of seconds before the calendar will disappear var Y2kPivotPoint = 76; // 2-digit years before this point will be created in the 21st century var UnselectedMonthText = ''; // Text to display in the 1st month list item when the date isn't required var FontSize = 13; // In pixels var FontFamily = 'Tahoma'; var CellWidth = 30; var CellHeight = 25; var ImageURL = 'css_js/calendar.jpg'; var NextURL = 'css_js/next.gif'; var PrevURL = 'css_js/prev.gif'; var CalBGColor = 'white'; var TopRowBGColor = 'buttonface'; var DayBGColor = 'lightgrey'; // Global variables var ZCounter = 100; var Today = new Date(); var WeekDays = new Array('SUN','MON','TUE','WED','THU','FRI','SAT'); var MonthDays = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); var MonthNames = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); // Write out the stylesheet definition for the calendar with (document) { writeln(''); } // Only allows certain keys to be used in the date field function YearDigitsOnly(e) { var KeyCode = (e.keyCode) ? e.keyCode : e.which; return ((KeyCode == 8) // backspace || (KeyCode == 9) // tab || (KeyCode == 37) // left arrow || (KeyCode == 39) // right arrow || (KeyCode == 46) // delete || ((KeyCode > 47) && (KeyCode < 58)) // 0 - 9 ); } // Gets the absolute pixel position of the supplied element function GetTagPixels(StartTag, Direction) { var PixelAmt = (Direction == 'LEFT') ? StartTag.offsetLeft : StartTag.offsetTop; while ((StartTag.tagName != 'BODY') && (StartTag.tagName != 'HTML')) { StartTag = StartTag.offsetParent; PixelAmt += (Direction == 'LEFT') ? StartTag.offsetLeft : StartTag.offsetTop; } return PixelAmt; } // Is the specified select-list behind the calendar? function BehindCal(SelectList, CalLeftX, CalRightX, CalTopY, CalBottomY, ListTopY) { var ListLeftX = GetTagPixels(SelectList, 'LEFT'); var ListRightX = ListLeftX + SelectList.offsetWidth; var ListBottomY = ListTopY + SelectList.offsetHeight; return (((ListTopY < CalBottomY) && (ListBottomY > CalTopY)) && ((ListLeftX < CalRightX) && (ListRightX > CalLeftX))); } // For IE, hides any select-lists that are behind the calendar function FixSelectLists(Over) { if (navigator.appName == 'Microsoft Internet Explorer') { var CalDiv = this.getCalendar(); var CalLeftX = CalDiv.offsetLeft; var CalRightX = CalLeftX + CalDiv.offsetWidth; var CalTopY = CalDiv.offsetTop; var CalBottomY = CalTopY + (CellHeight * 9); var FoundCalInput = false; formLoop : for (var j=this.formNumber;j