// Start the form with the cursor in the first field in demand_letter_wda.php -- or any other form
function pointToFirstField(theField) {
// Replace field1 in the script with the field name of which you want to place the focus.
	theField.focus(theField);
}

function validateform()
{

// Check for cust_name
	if(document.forms[0].cust_name.value=="") {
		document.forms[0].cust_name.focus();
		window.alert ("Please provide your Full Name");
		return false;
	}

// Check for valid email address
	if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.forms[0].cust_email.value)){
//		return (true)
	} else {
	document.forms[0].cust_email.focus();
	alert("Please provide a valid E-mail Address")
	return (false)
	}

// Check for note -- agree_to_terms
	if (document.forms[0].agree_to_terms.checked == false)
	{
		alert ('Please check the box indicating that you understand the terms and conditions.');
		return false;
	} else { 	
		return true;
	}

}

