// check the entry of the request form of Limo Service 

function chkLimoServiceRequestForm(){
	//alert(document.getElementById("citySelect").selectedIndex);
	//var x=document.getElementById("citySelect")
    //alert(x.length)
		 
		if(document.frmLimoServices.citySelect.selectedIndex == 0)
		 {
			 alert("Please select a city");
			 document.frmLimoServices.citySelect.focus();		 
			 return false;
		 }
		 
		else if(document.getElementById("txtPickupSuburb").value=="")
		 {
			 alert("Please enter the Pickup Suburb");		 
			 document.getElementById("txtPickupSuburb").focus();	
			 			 return false;		 
		 }
		else if(document.getElementById("txtDestinationSuburb").value=="")
		 {
			 alert("Please enter the Destination Suburb");		 
			 document.getElementById("txtDestinationSuburb").focus();	
			 			 return false;		 
		 }				 
		else if(document.getElementById("date").value=="")
		 {
			 alert("Please enter date of service");		 
			 document.getElementById("date").focus();		
			 			 return false;	 
		 }
		else if(document.frmLimoServices.vehicleSelect.selectedIndex==0)
		 {
			 alert("Please select vehicle type");		 
			 document.frmLimoServices.vehicleSelect.focus();		
			 			 return false;	 
		 }
		else if(document.frmLimoServices.serviceSelect.selectedIndex==0)
		 {
			 alert("Please select Service type");		 
			 document.frmLimoServices.serviceSelect.focus();		
			 			 return false;	 
		 }
		else if(document.getElementById("txtFullName").value=="")
		 {
			 alert("Please enter your Full Name");		 
			 document.getElementById("txtFullName").focus();	
			 			 return false;		 
		 }

		else if(document.getElementById("txtPhone").value=="")
		 {
			 alert("Please enter your Phone Number:");		 
			 document.getElementById("txtPhone").focus();	
			 return false;		 
		 }


		else if(document.getElementById("txtEmail").value=="")
		 {
			 alert("Please enter your Email Address");		 
			 document.getElementById("txtEmail").focus();	
			 return false;		 
		 }
		else
		 {
			 			 	
			 return true;		 
		 }	
		  	
		 return false;	 		 
}


// contactus form checking

function chkContactUsForm(){
	
	 if(document.getElementById("name").value=="")
		 {
			 alert("Please enter your name");		 
			 document.getElementById("name").focus();	
			 			 return false;		 
		 }
		else if(document.getElementById("email").value=="")
		 {
			 alert("Please enter your email address");		 
			 document.getElementById("email").focus();	
			 			 return false;		 
		 }				 
		else if(document.getElementById("phone").value=="")
		 {
			 alert("Please enter your phone number");		 
			 document.getElementById("phone").focus();		
			 			 return false;	 
		 }
		else if(document.frmContactUs.info.value=="")
		 {
			 alert("Plz enter the info");		 
			 document.frmContactUs.info.focus();	
			 return false;		 
		 }
		else
		 {
			 			 	
			 return true;		 
		 }	
		  	
		 return false;	 		 
}


// booking form checking

function chkBookinForm(){
	
	 if(document.getElementById("txtfirstname").value=="")
		 {
			 alert("Please enter your first name");		 
			 document.getElementById("txtfirstname").focus();	
			 			 return false;		 
		 }
		else if(document.getElementById("txtlastname").value=="")
		 {
			 alert("Please enter your last name");		 
			 document.getElementById("txtlastname").focus();	
			 			 return false;		 
		 }				 
		else if(document.getElementById("txtdayPhone").value=="")
		 {
			 alert("Please enter your Day Phone number");		 
			 document.getElementById("txtdayPhone").focus();		
			 			 return false;	 
		 }
		else
		 {
			 			 	
			 return true;		 
		 }	
		  	
		 return false;	 		 
}
