text: function ValidateEmail(inputText)
  {
      var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
      if(inputText.value.match(mailformat))
      {
          return true;
      }
      else
      {
          alert("\n\nYou have entered an invalid email address! \nPlease enter a valid address");
          return false;
      }
  }