var submitcount=0;

function reset() {
document.teamlogin.name.value="";
document.teamlogin.email.value="";
}

function checkloginteamFields() {                      
if ( (document.teamlogin.username.value=="")  ||
     (document.teamlogin.password.value=="") ||)
        
   {
   alert("Please enter your name, email, contact numbers and message, and then re-submit this form.");
   return false;
   }

else 
   {
   if (submitcount == 0)
      {
      submitcount++;
      return true;
      }
   else 
      {
      alert("This form has already been submitted to 2nd Cuddington. Thanks!");
      return false;
      }
   }
}
