<!--
    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('Не заполнено поле \'Почта\''); 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';
}



function jumpMenu(el)
{
 var val=el.options[el.selectedIndex].value;
 document.location.href='/catalog/'+val+'.html';
}


//-->>

