function validate( frm ) {

	var returnValue = false;

	if ( BlankField( frm.prefix.value ) ) {
		alert ( "Please enter your prefix." );
		frm.prefix.focus();
	
	} else if ( BlankField( frm.first_name.value ) ) {
		alert ( "Please enter your first name." );
		frm.first_name.focus();
	
	} else if ( BlankField( frm.last_name.value ) ) {
		alert ( "Please enter your last name." );
		frm.last_name.focus();
	
	} else if ( BlankField( frm.phone.value ) ) {
		alert ( "Please enter your phone number." );
		frm.phone.focus();
	
	} else if ( !ValidEmail( frm.email.value ) ) {
		alert ( "Please enter a valid email address." );
		frm.email.focus();

	} else if ( BlankField( frm.arr_month.value ) ) {
		alert ( "Please enter your arrival month." );
		frm.arr_month.focus();
	
	} else if ( BlankField( frm.arr_day.value ) ) {
		alert ( "Please enter your arrival day." );
		frm.arr_day.focus();
	
	} else if ( BlankField( frm.arr_year.value ) ) {
		alert ( "Please enter your arrival year." );
		frm.arr_year.focus();
	
	} else {
		returnValue = true;
		document.getElementById( "submit" ).disabled = "true";
	}
	
	return returnValue;

}
