<!--
  function validateForm(formElement) {

    if (formElement.Your_Name.value.length < 2)
      return focusElement(formElement.Your_Name,
       'Please enter your name.');

    if (validEmail(formElement.email.value) == false)
      return focusElement(formElement.email,
       'Please enter a valid E-mail address.');
	
    if (formElement.Your_Phone_Number.value.length < 10)
      return focusElement(formElement.Your_Phone_Number,
       'Please enter your phone number including your area code.');

	myOption = -1;
	for (i=formElement.contact.length-1; i > -1; i--) {
	if (formElement.contact[i].checked) {
	myOption = i; i = -1;
	}
	}
	if (myOption == -1) {
	alert("Please indicate if you would like us to contact you.");
	return false;
	}

   if (formElement.security_code.value.length < 6)
      return focusElement(formElement.security_code,
       'Please enter the 6 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 = 'checkbox';
    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);
  }
//-->
