function PropermSubmitForm(){
	is = document.getElementById('_properm_input_');
	if(!is){
		return false;
	}
	s = is.value;
	di = document.getElementById('_properm_div_');
	var propermRequest;
	try{
		propermRequest = new XMLHttpRequest();
	} catch (e){
		try{
			propermRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				propermRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				return false;
			}
		}
	}
	document.getElementById('_properm_input_').className = 'active';
	propermRequest.onreadystatechange = function(){
		if(propermRequest.readyState == 4){
			document.getElementById('_properm_input_').className = 'nactive';
			arrResult = eval('['+(propermRequest.responseText)+']');
			nCount = (arrResult[0].c);
			strSearch = arrResult[0].s;
			arrResult = arrResult[0].res;
			l = arrResult.length;
			if(l >0){
				oOL = document.createElement('OL');
				for(i=0; i<l; i++){
					oLI = document.createElement('LI');
					oA = document.createElement('A');
					oA.href = 'http://spravka.properm.ru/company.php?id='+arrResult[i].uid;
					oA.innerHTML = arrResult[i].name;
					oLI.appendChild(oA);
					oP = document.createElement('P');
					oP.innerHTML = arrResult[i].description;
					oLI.appendChild(oP);
					oP = document.createElement('P');
					oP.className = 'properm_address';
					oP.innerHTML = arrResult[i].address + ' ' + arrResult[i].phone;
					oLI.appendChild(oP);
					oOL.appendChild(oLI);
				}
				document.getElementById('_properm_results_').innerHTML = '';
				document.getElementById('_properm_results_').appendChild(oOL);
				oA = document.createElement('A');
				oA.className = 'all_pro_results';
				oA.href="http://spravka.properm.ru/index.php?search="+strSearch;
				oA.innerHTML = 'Все результаты поиска';
				oA.target = '_blank';
				document.getElementById('_properm_results_').appendChild(oA);
				document.getElementById('_properm_results_').innerHTML+=' ('+nCount+')';
			}else{
				document.getElementById('_properm_results_').innerHTML = 'По вашему запросу ничего не найдено';
			}
			nHeight = 100 + l*80;
			document.getElementById('_properm_search_').style.height = nHeight + 'px';
		}
	}
	try{
		propermRequest.open("GET", "/js_index.php?s="+s, true);
		propermRequest.send(null);
	}catch(e){return false;}
	return false;
}