function fnValidateForm(frmname){
msg=""
count=1



var theForm=eval("document."+frmname)



if (IsEmpty(theForm.name.value)){
msg=msg+count+". Не указано Имя\n"
count++
}


if (IsEmpty(theForm.mail.value)){
msg=msg+count+". Не указан E-mail.\n"
count++ 
}else{ 
emailCheck (theForm.mail.value, 'Ваш')
}

if (IsEmpty(theForm.msg.value)){
msg=msg+count+". Введите текст запроса.\n"
count++
}
if (IsEmpty(theForm.keystring.value)){
msg=msg+count+". Введите цифры указанные на рисунке.\n"
count++
}



if (msg!=""){
msg="Пожалуйста, заполните все обязательные поля:            \n \n"+msg
alert(msg)
}else{
theForm.submit();
}

}

