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



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



if (IsEmpty(theForm.name.value) || theForm.name.value=="Контактное лицо"){
msg=msg+count+". Укажите Контактное лицо\n"
count++
}

if (IsEmpty(theForm.tel.value) || theForm.tel.value=="Контактный телефон"){
msg=msg+count+". Не указан Контактный Телефон\n"
count++
}

if (msg!=""){
msg="Пожалуйста исправте следующие ошибки:         \n \n"+msg
alert(msg)
}else{
theForm.submit();
}

}

