<!--
	function validateForm(formElement) {

//  Validate the "Your_Name" input (Text BoX)
	if (formElement.Your_Name.value.length < 2)
	return focusElement(formElement.Your_Name,
	'Please enter your first and last name.');

//  Validate the "Your_Phone_Number" input (Text Box)
	if (formElement.Your_Phone_Number.value.length < 10)
	return focusElement(formElement.Your_Phone_Number,
	'Please enter your phone number, including your area code.');
	
//  Validatethe "email" address input (Text Box)
	if (validEmail(formElement.email.value) == false)
	return focusElement(formElement.email,
	'Please enter a valid Email address.');

//  Validate the "Purpose of Website" input (Menu / List)
	if (formElement.Purpose_Of_Website.selectedIndex == 0)
	return focusElement(formElement.Purpose_Of_Website,
	'Please select the service you are interested in.');

//  Validate the "Pages_Needed" input (Menu / List)
	if (formElement.Pages_Needed.selectedIndex == 0)
	return focusElement(formElement.Pages_Needed,
	'Please indicate how many webpages you may need if any.');

//  Validate the "Domain" input(Radio Button)
	myOption = -1;
	for (i=formElement.Domain.length-1; i > -1; i--) {
	if (formElement.Domain[i].checked) {
	myOption = i; i = -1;
	}
	}
	if (myOption == -1) {
	alert("Please indicate if you will need a Domain Name.");
	return false;
	}

//  Validate the "Hosting" input (Radio Button
	myOption = -1;
	for (i=formElement.Hosting.length-1; i > -1; i--) {
	if (formElement.Hosting[i].checked) {
	myOption = i; i = -1;
	}
	}
	if (myOption == -1) {
	alert("Please indicate if you will need Web Hosting.");
	return false;
	}	

	if (formElement.security_code.value.length < 4)
	return focusElement(formElement.security_code,
	'Please enter the 4 character Security Code exactly.');
	return true;
	}

	function focusElement(element, errorMessage) {
	alert((errorMessage.length > 0) ? errorMessage :
	'You did not enter valid data; Please try again');
	//Select the text in the input box, and focus it (if possible)
	if (element.select) element.select();
	if (element.focus) element.focus();
	return false;
	}

	function countSelected(formElement, inputType, inputName) {
	if (inputType == null) inputType = 'radio';
	var returnValue = 0;
	for (var loopCounter = 0; loopCounter < formElement.length; loopCounter++) {
	var element = formElement.elements[loopCounter];
	if (element.type == inputType && element.checked == true) {
	if (inputName.length > 0)
	if (element.name == inputName)
	returnValue++;
	else
	returnValue++
	}
	}
	return returnValue;
	}

	function countSelectedOptions(selectElement) {
	var returnValue = 0;
	for (var loopCounter = 0; loopCounter < selectElement.options.length; loopCounter++)
	if (selectElement.options[loopCounter].selected == true)
	returnValue++;
	return returnValue;
	}

	function validEmail(email) {
	var emailRE = new RegExp(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/);
	return emailRE.test(email);
	}
//-->
