function checksubmit()

{

   // check to see if name field is empty

   // note that you use the name of the form and the field

   if (document.register.name.value == "")

   {

      // tell client that you need the name

      alert("Please enter your Name")

      // send the cursor to the fullname field

      document.register.name.focus()

      // field is empty, so return false to abort the form submission

      // the client is returned to the form

      return false   

   }

   if (document.register.email.value == "")

   {

      // tell client that you need the name

      alert("Please enter your Email address")

      // send the cursor to the fullname field

      document.register.email.focus()

      // field is empty, so return false to abort the form submission

      // the client is returned to the form

      return false   

   }   

   // if both fields are filled out, return true

   // this triggers the form submission

   return true

}