<!--
  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.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);
  }
//-->