function validateForm()
{

	var rv=1;
	var fieldMsg = "";

	if(document.TRAVELAGENTS.checkImage.value == 1){	
		var checkImageValue = "sPrinG";
	} else if(document.TRAVELAGENTS.checkImage.value == 2){	
		var checkImageValue = "CANcun";
	} else if(document.TRAVELAGENTS.checkImage.value == 3){	
		var checkImageValue = "aCaPulco";
	} else if(document.TRAVELAGENTS.checkImage.value == 4){	
		var checkImageValue = "JamAica";
	} else if(document.TRAVELAGENTS.checkImage.value == 5){	
		var checkImageValue = "BAhamas";
	}
	
	if(document.TRAVELAGENTS.checkImageText.value != checkImageValue){	
		alert('Please Reenter Image Text:' + checkImageValue );
		return false;
	}
	
	if(!document.TRAVELAGENTS.Fname.value){
    	rv=0;
        fieldMsg += "First Name"
	}
					
	if(!document.TRAVELAGENTS.Lname.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "Last Name"
    }
	if(!document.TRAVELAGENTS.Company.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "Company"
    }
	if(!document.TRAVELAGENTS.IATAN.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "Iatan"
    }
	if(!document.TRAVELAGENTS.Add1.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "Address"
    }
	if(!document.TRAVELAGENTS.City.value){
		rv=0;
		if (fieldMsg.length > 0) fieldMsg += ", ";
		fieldMsg += "City"
	}
	if(!document.TRAVELAGENTS.State.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "State"
    }
	if(!document.TRAVELAGENTS.Zip.value){
    	rv=0;
        if (fieldMsg.length > 0) fieldMsg += ", ";
        fieldMsg += "Zip Code"
    }	
	 if(!document.TRAVELAGENTS.Phone.value){
		rv=0;
		if (fieldMsg.length > 0) fieldMsg += ", ";
		fieldMsg += "Phone Number"
	}
	 if(!document.TRAVELAGENTS.Email.value){
		rv=0;
		if (fieldMsg.length > 0) fieldMsg += ", ";
		fieldMsg += "Email"
	}
	 
    if(rv == 0) {
	alert('Please complete the form, the following fields are missing:\n' + fieldMsg);
	return false;
    } else {

	document.TRAVELAGENTS.submit();
	return true;
    }

}
