function checkEmail(inputvalue){	
    var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
    if(pattern.test(inputvalue)){         
		return true;   
    }else{   
		return false; 
    }
}

function checkformkviz ( form )
{
  var chyba = "";

  if (form.jmeno.value == "") {
	  chyba += "Vyplňte jméno. \n";
  }
  if ((form.email.value == "")||(!checkEmail(form.email.value))) {
	  chyba += "Vyplňte e-mail. \n";
  }  
  if (form.telefon.value == "") {
	  chyba += "Vyplňte telefon. \n";
  }
  if (form.adresa.value == "") {
	  chyba += "Vyplňte adresu. \n";
  }  
  if (form.mesto.value == "") {
	  chyba += "Vyplňte město. \n";
  }
  if (form.odpoved.value == "") {
	  chyba += "Vyplňte odpověď. \n";
  }  
  if(chyba != "") {
	alert(chyba);
	return false ;
  }
 
  return true ;
}



