function fquest_click_(){
	var name = $('fquest_name').value;
	var email_tel = $('fquest_contacts').value;
	var text = $('fquest_text').value;
	if ((name=='') || (email_tel=='') || (text=='')) {
		alert ('Все поля обязательны к заполненению');
		return false;
	}
	fquest_send_();
}

function fquest_clearForm_(){
	$('fquest_name').value = '';
	$('fquest_contacts').value = '';
	$('fquest_text').value = '';
}

function fquest_send_(){
	var name = escape2($('fquest_name').value);
	var email_tel = escape2($('fquest_contacts').value);
	var text = escape2($('fquest_text').value);
	var url = escape2 (window.location.href);
	if (!jxs.x2) jxs.x2 = new jx();
	jxs.x2.jx.bind ({
		"url":	"/ajax/respondents/sendQuestion.php?name="+name+"&email_tel="+email_tel+"&text="+text+"&url="+url,
		"onSuccess":	function(a){
			$('process_loadind').style.display='none';
			fquest_clearForm_ ();
			overlayer.hide();
			if (a=='OK') alert ('Ваш вопрос успешно отправлен. Спасибо!');
		},
		"fomat":	"text",
		"method":	"post",
		"onError":	function (status) {
			$('process_loadind').style.display='none';
			//alert ("\"Ашипка\": "+status);
			overlayer.hide();
		}
	});
	overlayer.show();
	$('process_loadind').style.display='';
}