<!-- 

function JumpBox(tempMaxLength,e,tempCurrBox,tempNextBox) {
    var tempCurrValueLength = tempCurrBox.value;
    tempCurrValueLength = tempCurrValueLength.length;
    var charCode = e.keyCode
    if ((eval(charCode) != 9) && (eval(charCode) != 16)) {
        if (tempCurrValueLength >= eval(tempMaxLength)) {
            if (isNaN(tempCurrBox.value)) {
                alert("Please enter a valid number.");
                tempCurrBox.value = "";
                tempCurrBox.focus();
                }
            else {
                tempNextBox.focus();
                }
            }
        }
    return true;
}

function checkData(form) {
	if (document.forms[0].First_Name.value == "") {
        alert("Please enter your first name!")
        document.forms[0].First_Name.focus()
        return false;
    }

    if (document.forms[0].Last_Name.value == "") {
        alert("Please enter your last name.")
        document.forms[0].Last_Name.focus()
        return false;
    }

	if (document.forms[0].email.value == "") {
        alert("Please enter your email address so that we can get your information to you.")
        document.forms[0].email.focus()
        return false;
    }
    else {
        /* ************** look for the @ **************************** */
    	if (document.forms[0].email.value.indexOf("@") == -1) {
        	alert("Your email address is not in the correct format. Please enter a correct email address so that we can get your information to you.")
        	document.forms[0].email.focus()
        	return false;
    	}
    	else {
        	/* ************* look for the dot *************************** */
	        if (document.forms[0].email.value.indexOf(".") == -1) {
    	        alert("Your email address is not in the correct format. Please enter a correct email address so that we can get your information to you.")
        	    document.forms[0].email.focus()
            	return false;
	        }
    	    else {
        	/* *************** look for @ before dot ********************* */
            	var AtSpot = document.forms[0].email.value.indexOf("@")
            	var DotSpot = document.forms[0].email.value.lastIndexOf(".")
            	if (DotSpot < AtSpot) {
                	alert("Your email address is not in the correct format. Please enter a correct email address so that we can get your information to you.")
	                document.forms[0].email.focus()
    	            return false;
        	    }
	        }
    	}
    }

	/********************** START CHECK PHONE NUMBER ******************************/
    var theErrorMessage = "Please enter a valid phone number.\r\n\r\n";
    var theErrorIndex = 0;
    var theAreaCode = document.forms[0].Main_Area_Code.value;
    var theExchange = document.forms[0].Main_Exchange.value;
    var thePhoneNumber = theAreaCode + theExchange + document.forms[0].Main_Suffix.value;

	/* Check Phone Number fields for Nulls */
    if ((theAreaCode == null) || (theAreaCode == "")) {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Please enter a valid area code.\r\n";
    }
    if ((theExchange == null) || (theExchange == "")) {
		theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Please enter a valid exchange number.\r\n";
    }
    if ((document.forms[0].Main_Suffix.value == null) || (document.forms[0].Main_Suffix.value == "")) {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Please enter a valid suffix number.\r\n";
    }
    /* Check 1st character in area code */
    if ((theAreaCode.slice(0,1) == "0") || (theAreaCode.slice(0,1) == "1")) {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". The first digit of your area code should not be 0 or 1.\r\n";
    }
    /* Check for repeating digits in area code */
    if ((theAreaCode == "222") || (theAreaCode == "333") || (theAreaCode == "444") || (theAreaCode == "555") || (theAreaCode == "666") || (theAreaCode == "777") || (theAreaCode == "999")) {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Area code " + theAreaCode + " is invalid.\r\n";
    }
    /* Check exchange for 555 */
    if (theExchange == "555") {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Exchange number 555 is invalid.\r\n";
    }
    /* Check for 10 digits in phone number */
    if (thePhoneNumber.length != 10) {
        theErrorIndex++;
        theErrorMessage = theErrorMessage + theErrorIndex + ". Your phone number must contain 10 digits.\r\n";
    }
    if (theErrorMessage != "Please enter a valid phone number.\r\n\r\n") {
        alert(theErrorMessage);
        document.forms[0].Main_Area_Code.value = "";
        document.forms[0].Main_Exchange.value = "";
        document.forms[0].Main_Suffix.value = "";
        document.forms[0].Main_Area_Code.focus();
        return false;
    }
    else {
        document.forms[0].Main_Phone.value = document.forms[0].Main_Area_Code.value + "." + document.forms[0].Main_Exchange.value + "." + document.forms[0].Main_Suffix.value;
		
	    var the2AreaCode = document.forms[0].Alt_Area_Code.value;
	    var the2Exchange = document.forms[0].Alt_Exchange.value;
    	var the2Suffix = document.forms[0].Alt_Suffix.value;

    	/* Check Phone Number fields for Nulls */
    	if ((the2AreaCode == null) || (the2AreaCode == "")) {
        	the2AreaCode = "000";
    	}
    	if ((the2Exchange == null) || (the2Exchange == "")) {
        	the2Exchange = "000"
    	}
    	if ((the2Suffix == null) || (the2Suffix == "")) {
        	the2Suffix = "0000";
    	}

    	document.forms[0].Alt_Phone.value = the2AreaCode + "." + the2Exchange + "." + the2Suffix;
    }
    
    if (document.forms[0].Main_Best_Time.value == "") {
        alert("Please select the best time to call.")
        document.forms[0].Main_Best_Time.focus()
        return false;
    }

    if (document.forms[0].Alt_Phone.value != "000.000.0000" && document.forms[0].Alt_Best_Time.value == "") {
        alert("Please select the best time to call for the alternate number.")
        document.forms[0].Alt_Best_Time.focus()
        return false;
    }
	
	if (document.forms[0].Comments.value == "") {
        document.forms[0].Comments.value = "Not Specified";
    }

    return true;
}


//-->

