function fnValidateForm(frmname){
msg=""
count=1

var theForm=eval("document."+frmname)
if (IsEmpty(theForm.q1.value)  || theForm.q1.value=="Ф.И.О."){
msg=msg+count+". Не указано Ф.И.О.\n"
count++
}




if (IsEmpty(theForm.q2.value)){
msg=msg+count+". Не указан E-mail.\n"
count++ 
}else{ 
emailCheck (theForm.q2.value, 'Ваш')
}


if (msg!=""){
msg="Пожалуйста исправте следующие ошибки:            \n \n"+msg
alert(msg)
}else{
theForm.submit();
}	
}

