function checkEmail(theForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theForm.email.value)){
return (true)
}
alert("Du har angivit en ogiltig epostadress. Kontrollera den angivna adressen!")
return (false)
}

function checkform(theForm){

  if(theForm.elements['realname'].value==""){
    alert("Du har inte fyllt i Namn:");
    return false;
  }

  if(theForm.elements['telefon'].value==""){
    alert("Du har inte fylt i Telefon:");
    return false;
  }
  
  if(theForm.elements['email'].value==""){
      alert("Du har inte fylt i Epost:");
      return false;
  }
  
  
  return true;
}