<!--
  var idxLoopPick = 0;
  var idxForm = 0;
  var intMonthMin = 0;
  var intDayMin = 0;

  var frmSelectIdx = 0;
  var frmSelectLength = 0;
  var frmSelectVal = "";
  var frmSelectText = "";

  var strTemp = "";
  var strTempCardType = "";
  var strReturnVal = true;
  var strErrMessage = "";
  var strReturnMonthEdit = "";
  var strMonthMessage = "";
  var strReturnDayEdit = "";
  var strDayMessage = "";
  var strReturnYearEdit = "";
  var strYearMessage = "";
  var wRequest = ""

  function resetFields(parmFormNum)
   {
    wRequest = "Reset";
    idxForm = parmFormNum;
    initFields();
   }

  function MemberApplicationEdits()
   {
    strErrMessage = "";
    strReturnVal = true;

    if (wRequest == "Reset")
     {
      wRequest = "";
      document.forms[idxForm].request.value = "";
      return false;
     }

    editFields();

    if (strReturnVal == true)
     {
      strTemp = document.forms[idxForm].mooneynsuffix.value;
      document.forms[idxForm].mooneyn.value = document.forms[idxForm].mooneynprefix.value + strTemp;
      if (strTemp.substring(0,1) == "N" ||
          strTemp.substring(0,1) == "n")
       {
        if (confirm("Are you sure your Mooney Number begins with two N's?"))
         {

         }
        else
         {
          document.forms[idxForm].mooneyn.value = ""
          strErrMessage = "The Submit request has been cancelled.";
          strReturnVal = false;
         }
       }
     }
    else
     {
      alert (strErrMessage);
     }

    return strReturnVal;
   }

  function initFields()
   {
    document.forms[idxForm].subcode.selectedIndex = 0;
    document.forms[idxForm].credcard.selectedIndex = 0;
    document.forms[idxForm].cardnum.value = "";
    document.forms[idxForm].expdate.value = "";
    document.forms[idxForm].lastnam.value = "";
    document.forms[idxForm].firstnam.value = "";
    document.forms[idxForm].middinit.value = "";
    document.forms[idxForm].company.value = "";
    document.forms[idxForm].streeta.value = "";
    document.forms[idxForm].streetb.value = "";
    document.forms[idxForm].city.value = "";
    document.forms[idxForm].state.value = "";
    document.forms[idxForm].zip.value = "";
    document.forms[idxForm].clemail.value = "";
    document.forms[idxForm].clvemail.value = "";
    document.forms[idxForm].wphone.value = "";
    document.forms[idxForm].hphone.value = "";
    document.forms[idxForm].passwrd1.value = "";
    document.forms[idxForm].passwrd2.value = "";
    document.forms[idxForm].secques.value = "";
    document.forms[idxForm].secansw.value = "";
    document.forms[idxForm].airbase.value = "";
    document.forms[idxForm].mooneyn.value = "";
    document.forms[idxForm].mooneynprefix.value = "N";
    document.forms[idxForm].mooneynsuffix.value = "";
    document.forms[idxForm].model.selectedIndex = 0;
    document.forms[idxForm].moonsern.value = "";
    document.forms[idxForm].othernum.value = "";
    document.forms[idxForm].othermod.value = "";
    document.forms[idxForm].annumo.selectedIndex = 0;
    document.forms[idxForm].annuyr.value = "";
    document.forms[idxForm].insrmo.selectedIndex = 0;
    document.forms[idxForm].insryr.value = "";
   }

  function editFields()
   {
    if (document.forms[idxForm].subcode.selectedIndex < 1)
     {
      strReturnVal = false;
      strErrMessage += "Please select one of the Subscription Codes.\n";
     }

    if (document.forms[idxForm].credcard.selectedIndex > 0)
     {
      editCardFields();
     }

    if (document.forms[idxForm].firstnam.value == null ||
        document.forms[idxForm].firstnam.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a First Name.\n";
     }

    if (document.forms[idxForm].lastnam.value == null ||
        document.forms[idxForm].lastnam.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Last Name.\n";
     }

    if (document.forms[idxForm].passwrd1.value == null ||
        document.forms[idxForm].passwrd1.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Password.\n";
     }
    else
     {
      strTemp = document.forms[idxForm].passwrd1.value;
      if (strTemp.length < 5)
       {
        strReturnVal = false;
        strErrMessage += "The Password entered is less the 5 characters.\n";
       }
     }

    if (document.forms[0].passwrd1.value != null &&
         document.forms[0].passwrd1.value != "")
     {
      if (document.forms[0].passwrd1.value != document.forms[0].passwrd2.value)
       {
        strReturnVal = false;
        strErrMessage += "The Password entered is not the same as the Verify Password.\n";
       }
     }

    if (document.forms[idxForm].secques.value == null ||
        document.forms[idxForm].secques.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Secret Question.\n";
     }

    if (document.forms[idxForm].secansw.value == null ||
        document.forms[idxForm].secansw.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Secret Answer.\n";
     }

    if (document.forms[idxForm].mooneynsuffix.value == null ||
        document.forms[idxForm].mooneynsuffix.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Mooney N#.\n";
     }

    if (document.forms[idxForm].clemail.value == null ||
        document.forms[idxForm].clemail.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide an Email Address.\n";
     }

    if (document.forms[idxForm].clemail.value != null &&
        document.forms[idxForm].clemail.value != "")
     {
      if (document.forms[idxForm].clemail.value != document.forms[idxForm].clvemail.value)
       {
        strReturnVal = false;
        strErrMessage += "The Email Address entered is not the same as the Verify Email Address.\n";
       }
     }

    strReturnMonthEdit = true;
    strMonthMessage = "";
    intMonthMin = 0;
 //   editMonth(document.forms[idxForm].annumo.value);
    if (document.forms[idxForm].annumo.selectedIndex < 1)
     {
      strReturnVal = false;
      strErrMessage += "Please select the Month of your Annual Renewal.\n";
     }


    strReturnYearEdit = true;
    strYearMessage = "";
    editYear(document.forms[idxForm].annuyr.value);
    if (strReturnYearEdit == false)
     {
      strReturnVal = false;
      strErrMessage += "The Annual Date Year" + strYearMessage;
     }

    strReturnMonthEdit = true;
    strMonthMessage = "";
    intMonthMin = 0;
 //   editMonth(document.forms[idxForm].insrmo.value);
    if (document.forms[idxForm].insrmo.selectedIndex < 1)
     {
      strReturnVal = false;
      strErrMessage += "Please select the Month of your Insurance Renewal.\n";
     }


    strReturnYearEdit = true;
    strYearMessage = "";
    editYear(document.forms[idxForm].insryr.value);
    if (strReturnYearEdit == false)
     {
      strReturnVal = false;
      strErrMessage += "The Insurance Date Year" + strYearMessage;
     }
   }

  function editCardFields()
   {
    strTemp = document.forms[idxForm].cardnum.value;
    frmSelectIdx = document.forms[idxForm].credcard.selectedIndex;
    strTempCardType = document.forms[idxForm].credcard.options[frmSelectIdx].text;
    if ((strTempCardType == "MasterCard" ||
        strTempCardType == "Visa") && (strTemp.length != 16))
     {
      strReturnVal = false;
      strErrMessage += "The Credit Card Number you entered is invalid.\n";
     }
    if ((strTempCardType == "American Express") && (strTemp.length != 15))
     {
      strReturnVal = false;
      strErrMessage += "The Credit Card Number you entered is invalid.\n";
     }

    if (document.forms[idxForm].expdate.value == null ||
        document.forms[idxForm].expdate.value == "")
     {
      strReturnVal = false;
      strErrMessage += "Please provide a Card Expiration Date.\n";
     }
   }

  function editMonth(parmMonth)
   {
    var inputMonth;
    
    inputMonth = parseInt(parmMonth);

    if (isNaN(inputMonth))
     {
      strReturnMonthEdit = false;
      strMonthMessage += " is a non-numeric value.\n";
     }
    else
     {
      if (inputMonth < intMonthMin || inputMonth > 12)
       {
        strReturnMonthEdit = false;
        strMonthMessage += " is a not between " + intMonthMin + " and 12.\n";
       }
     }
   }

  function editDay(parmDay)
   {
    var inputDay;
    
    inputDay = parseInt(parmDay);

    if (isNaN(inputDay))
     {
      strReturnDayEdit = false;
      strDayMessage += " is a non-numeric value.\n";
     }
    else
     {
      if (inputDay < intDayMin || inputDay > 31)
       {
        strReturnDayEdit = false;
        strDayMessage += " is a not between " + intDayMin + " and 31.\n";
       }
     }
   }

  function editYear(parmYear)
   {
    var inputYear;
    strTemp = parmYear;

    inputYear = parseInt(parmYear);

    if (isNaN(inputYear))
     {
      strReturnYearEdit = false;
      strYearMessage += " is a non-numeric value.\n";
     }
   }

//-->