	function validateForm() 
	{
		if (loginform.ctyDropdown.options[loginform.ctyDropdown.selectedIndex].value == "0")
		{
			alert('Please select a country.');
			loginform.ctyDropdown.focus();
			return false;
		};
		
		if (loginform.memberID.value == "")
		{
			alert('Please enter your Member ID.');
			loginform.memberID.focus();
			return false;
		}
		 
		if (loginform.pinCode.value == "")
		{
			alert('Please enter your PIN Code.');
			loginform.pinCode.focus();
			return false;
		};

		loginform.submit();
	}
	
	function validateRohForm() 
	{
		if (rohloginform.memberID.value == "")
		{
			alert('Please enter your Member ID.');
			rohloginform.memberID.focus();
			return false;
		}
		 
		if (rohloginform.pinCode.value == "")
		{
			alert('Please enter your PIN Code.');
			rohloginform.pinCode.focus();
			return false;
		};

		rohloginform.submit();
	}
	
	function validateBooking() 
	{
		if (bookingform.D_City.options[bookingform.D_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Origin.');
			bookingform.D_City.focus();
			return false;
		};

		if (bookingform.A_City.options[bookingform.A_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Destination.');
			bookingform.A_City.focus();
			return false;
		};
		var validAdult = bookingform.pasAdult.value;
		var validChild = bookingform.pasChild.value;

		if (isNaN(validAdult) || (validAdult=""))
		{
			alert('Please enter the valid number of Adult tickets.');
			bookingform.pasAdult.focus();
			return false;
		}
		
		if (isNaN(validChild) || (validChild=""))
		{
			alert('Please enter the valid number of Children tickets.');
			bookingform.pasChild.focus();
			return false;
	
		}	

		bookingform.submit();
		
	}

	function validateSchedule() 
	{
		if (shceduleform.D_City.options[bookingform.D_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Origin.');
			shceduleform.D_City.focus();
			return false;
		};

		if (shceduleform.A_City.options[bookingform.A_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Destination.');
			shceduleform.A_City.focus();
			return false;
		};

		scheduleform.submit();
		
	}
	
	function validateFlightStatus() 
	{
		if (flightstatusform.D_City.options[bookingform.D_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Origin.');
			bookingform.D_City.focus();
			return false;
		};

		if (flightstatusform.A_City.options[bookingform.A_City.selectedIndex].value == "xxx")
		{
			alert('Please select a Flight Destination.');
			bookingform.A_City.focus();
			return false;
		};

		if (flightstatusform.airline.value = "")
		{
			alert('Please enter the airline which you would like to check.');
			flightstatusform.airline.focus();
			return false;
		}
		
		if (flightstatusform.flightno.value = "")
		{
			alert('Please enter the flight number which you would like to check.');
			flightstatusform.flightno.focus();
			return false;
	
		}	
		
		flightstatusform.submit();
		
	}