<!--
    function trim(str) {return str.replace(/(^\s*)|(\s*$)/g,'')}
    function vmail(str) {return (str.search(/[^A-Za-z0-9_@.-]/)==-1&&str.search(/@(.*)@/)==-1&&str.search(/@(.*)\./)!=-1&&str.indexOf('@')!=0&&str.lastIndexOf('.')!=str.length-1)}
	function validclient(frm) {
	if(trim(frm.autor.value)==''){showObject('disable');hideObject('invisible'); alert('Не заполнено поле \'Контактное лицо\''); frm.autor.focus();}
	else if(trim(frm.ask.value)==''){showObject('disable');hideObject('invisible'); alert('Не заполнено поле \'Сообщение\''); frm.ask.focus();}
	else if(trim(frm.email.value)==''){showObject('disable');hideObject('invisible'); alert('Не заполнено поле \'E-mail\''); frm.email.focus();}
	else if(trim(frm.email.value)!=''&&!vmail(trim(frm.email.value))){showObject('disable');hideObject('invisible'); alert('Неверно задано поле \'Почта\''); frm.email.focus();}

	else return true;
	return false;
    }

function showObject(num) {
  var div_num = 'div'+num;
  document.getElementById(div_num).className = 'go';
}
function hideObject(num) {
  var div_num = 'div'+num;
  document.getElementById(div_num).className = 'pop';
}




//-->>

