function CheckConsult()
{
var HTML
if(isemail(window.document.forms.mailform.mail.value)==false)
	{
	alert("Vyplňte správně Emailovou adresu !")
	return false
	}

	return true;
}

function isemail(t)
{
	if (t.indexOf("@") < 1 || t.indexOf("@") != t.lastIndexOf("@") || t.lastIndexOf(".") < t.lastIndexOf("@")+2  || t.lastIndexOf(".") > (t.length-3) || t.lastIndexOf(".") < (t.length-5)) return false
	else return true
}

