  function validate_donate(f)
  {
    if (isNaN(f.amount.value))
    {
      alert("Donation amount must be a number")
      f.amount.focus()
      return false
    }

    if (Number(f.amount.value) < 0.0)
    {
      alert("Donation amount cannot be negative")
      f.amount.focus()
      return false
    }

    return true
  }

  function validate_join(f)
  {
    update_total()

    if (isNaN(f.additional.value))
    {
      alert("Additional Donation must be a number")
      f.additional.focus()
      return false
    }

    if (Number(f.additional.value) < 0.0)
    {
      alert("Additional Donation cannot be negative")
      f.additional.focus()
      return false
    }

    if (f.last_name.value == "")
    {
      alert("Last name is required")
      f.last_name.focus()
      return false
    }

    if (f.first_name.value == "")
    {
      alert("First name is required")
      f.first_name.focus()
      return false
    }

    if (f.address1.value == "")
    {
      alert("Address is required")
      f.address1.focus()
      return false
    }

    if (f.city.value == "")
    {
      alert("City is required")
      f.city.focus()
      return false
    }

    if (f.state.value == "")
    {
      alert("State is required")
      f.state.focus()
      return false
    }

    if (f.zip.value == "")
    {
      alert("Zip code is required")
      f.zip.focus()
      return false
    }

    /*for(i=0;i<f.options.length;i++)
    {
      if (f.options[i].value == "addtodirectory" && !f.options[i].checked) 
      {
        for(j=0;j<f.diroptions.length;j++)
        {
          f.diroptions[j].checked = 0
        }
      }
    }*/

    for(i=0;i<f.skills.length;i++)
    {
      if (f.skills[i].value == "other") 
      {
        if (f.skills[i].checked && f.otherskills.value == "")
        {
          alert("Description is required if Other is checked")
          f.otherskills.focus()
          return false
        }
        break;
      }
    }
    
    if (!f.agree.checked)
    {
      alert("You must agree to the group principles before you can join")
      f.agree.focus()
      return false
    }
    
    f.item_number.value = "777"

    return true
  }  
