function checkForm(){
  var err=0;
  var txt=document.go.text.value
  if(document.go.name.value==''){
    err=1;
    alert('Введите свое имя');
  }
  else if(document.go.mail.value==''){
    err=1;
    alert('Введите контактный e-mail');
  }
  else if(txt<=0){
    err=1;
    alert('Поле с текстом не заполнено'); 
  }
  
  if(err==1)
    return false;
  else{
    document.go.submit();
  }
}
