function check(){
  jechyba= true;
  chyba = '';
  if (document.forms[0].jmeno.value == "")  {
    chyba+=" - Jméno\n";
    jechyba=false;
  }
  if (document.forms[0].email.value == "")  {
  	if (document.forms[0].telefon.value == "")  {
  		chyba+=" - Jeden z kontaktů\n";
    	jechyba=false;
		}
  }
  if (document.forms[0].dotaz.value == "")  {
    chyba+=" - Dotaz\n";
    jechyba=false;
  }

  if (!jechyba){
    eror(chyba)
  }

  return jechyba;
}
function eror(chyby){
  alert("Vyplňte prosím:\n"+chyby+"Děkujeme!"); 
}

