function checkreq() {
path = document.myform;
tmp = (path.mailfrom.value == "");
if (!tmp && (path.mailfrom.value.length < 1)) tmp = true;
path.Submit.disabled = tmp;
}

function check() {
p_mailfrom = document.myform.mailfrom.value.toString();
if (p_mailfrom != "") {
t = p_mailfrom.indexOf("@");
if((p_mailfrom.indexOf(".") == -1) || (t == -1) || (t < 1) || (t > p_mailfrom.length - 5) || (p_mailfrom.charAt(t - 1) == '.') || (p_mailfrom.charAt(t + 1) == '.')) {
alert("Введённый E-mail неправильный.");
document.myform.mailfrom.select();
return false;
}
}
}
