<!-- Validate  Form -->
function validateform() {
var errorcount=0;

if (document.requestform.Name.value == "") {
document.getElementById("namealert").style.color="RED";
errorcount++;
}

if (document.requestform.Phone_Number.value == "") {
document.getElementById("phonealert").style.color="RED";
errorcount++;
}

/* if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.requestform.Email.value)){
}
else{
document.getElementById("emailalert").style.color="RED";
errorcount++;
} --> not required */

if (errorcount != 0){
alert("Please correct any fields in RED.");
return false;
}
else{
document.requestform.submit();
}
}
<!-- END Validate Form -->


<script language="JavaScript" type="text/JavaScript">

function CheckForm(){
  var fname = document.getElementById('first_name');
  var lname = document.getElementById('last_name');
  var address = document.getElementById('address_street');
  var email = document.getElementById('email');  
  var opt = document.getElementById('optone');
  var itemname = document.getElementById('item_name');
  var arrival = document.getElementById('arrival');
  var departure = document.getElementById('departure');
  var flight = document.getElementById('flight');
  var destination = document.getElementById('destination');
  var person = document.getElementById('persons');
  var message = document.getElementById('message');
  var ccnum = document.getElementById('Credit_Card_No');
  var cctype = document.getElementById('Credit_Card_Type');
  var mexp = document.getElementById('Month_Expiration');
  var yexp = document.getElementById('Year_Expiration');
 
 	if(CheckFname(fname,"Your First Name is required")){
		return false;
	}
	else if(CheckLname(lname,"Your Last Name is required")){
		return false;
	}
	else if(CheckAddress(address,"Your Address is required")){
		return false;
	}
	else if(CheckEmail(email,"Invalid e-mail format")){
		return false;
	}	
	else if(CheckOpt(opt,"Please choose one")){
		return false;
	}	
	else if(CheckItem(itemname,"Please choose one")){
		return false;
	}	
	else if(CheckArrival(arrival,"Date of Arrival is Required")){
		return false;
	}			
	else if(CheckDeparture(departure,"Date of Departure is Required")){
		return false;
	}			
	else if(CheckFlight(flight,"Airline and flight number is Required")){
		return false;
	}
	else if(CheckDestination(destination,"Destination on Island is Required")){
		return false;
	}	
	else if(CheckPerson(person,"Number of Person is Required")){
		return false;
	}				
	else if(CheckMessage(message,"Please leave a message")){
		return false;
	}
	else if(CheckCcnum(ccnum,"Credit Card Number is required")){
		return false;
	}
	else if(CheckCctype(cctype,"Credit Card Type is required")){
		return false;
	}
	else if(CheckMexp(mexp,"Month of expiration is required")){
		return false;
	}	
	else if(CheckYexp(yexp,"Year of expiration is required")){
		return false;
	}		
	
	return true;
}


function CheckFname(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckLname(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckAddress(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	return false;
}
function CheckEmail(elem,msg){
	if(elem.value.length != 0){
	   var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
		if(elem.value.match(emailExp)){
		return false;
	 }
		else{
			alert(msg);
			elem.focus();
			return true;
		}
	  }
	else{
		alert("Your e-mail address is required");
		elem.focus();
		return true;
	}
}	
function CheckOpt(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckItem(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckArrival(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckDeparture(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckFlight(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckDestination(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckPerson(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckMessage(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckCcnum(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckCctype(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckMexp(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	else
	return false;
}
function CheckYexp(elem,msg){
	if(elem.value.length == 0){
		alert(msg);
		elem.focus(); // set the focus to this input
		return true;
	}
	return false;
}

