function verify() {

var err;

function numeric (str) { return /^[0-9-\+\(\)\s]+z/.test(str + "z"); }

function emailCheck (emailStr) {
var emailPat=/^(.+)@(.+)$/;
var matchArray=emailStr.match(emailPat);

if (matchArray==null) {
return false;
}

return true;
}



var themessage = "Проверте правильность заполнения данных:\n";

if (document.contact.con_surname.value=="") {
themessage = themessage + "Вы незаполнили поле : Фамилия\n";
}
if (document.contact.con_name.value=="") {
themessage = themessage + "Вы незаполнили поле : Имя\n";
}
if (document.contact.con_fname.value=="") {
themessage = themessage + "Вы незаполнили поле : Отчество\n";
}
if (document.contact.con_post.value=="") {
themessage = themessage + "Вы незаполнили поле : Должность\n";
}
if (document.contact.con_orgname.value=="") {
themessage = themessage + "Вы незаполнили поле : Название организации\n";
}
if (document.contact.con_address.value=="") {
themessage = themessage + "Вы незаполнили поле : Адрес\n";
}
if (document.contact.con_activity.value=="0") {
themessage = themessage + "Вы незаполнили поле : Вид деятельности\n";
}
if (document.contact.con_catsell.value=="") {
themessage = themessage + "Вы незаполнили поле : Среднемесячные продажи картриджей\n";
}
if (document.contact.con_mail.value=="") {
themessage = themessage + "Вы незаполнили поле : Контактный телефон\n";
}
if (document.contact.con_phone.value=="") {
themessage = themessage + "Вы незаполнили поле : Email\n";
}
if (document.contact.con_mail.value !="" & !emailCheck(document.contact.con_mail.value)) {
themessage = themessage + "Неправильный e-mail адрес\n";
}
if (document.contact.con_phone.value !="" & !numeric(document.contact.con_phone.value)){
 themessage = themessage + "Неправильный телефон\n";
}
if (themessage == "Проверте правильность заполнения данных:\n") {
return true;
} else {
alert(themessage);
return false;
}
}
