// JavaScript Document//tabs phone numbers
function autotab(original,destination){
	if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
	destination.focus()
}
function register(){
	var themessage = "You are required to complete the following fields: ";
	if (document.form.first.value=="") {
		themessage = themessage + " - First Name";
	}
	if (document.form.last.value=="") {
		themessage = themessage + " - Last Name";
	}
	if (document.form.email.value=="") {
		themessage = themessage + " - Email Address";
	}
	if(document.form.phone_a.value.length + document.form.phone_3.value.length + document.form.phone_4.value.length != 10){
		themessage = themessage + " - Phone";
	}
	if(document.getElementById("accept").checked== false){
		themessage = themessage + " - Cancellation Policy";
	}
	
	if(themessage == "You are required to complete the following fields: "){
		document.form.submit();
	}else{
  		alert(themessage);
		false;
	}
}
