/***************************************************/
/*  AJAX plug-in (c) Eduard Ghazanchyan 2011 June  */
/***************************************************/
	function ajaxRequest(param,des,tar){
		var xmlhttp;
		if (window.XMLHttpRequest){
			xmlhttp=new XMLHttpRequest();
		}
		else{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState==4 && xmlhttp.status==200){
				var JSONtext = xmlhttp.responseText;
				tar(JSONtext);
			}
		}
		xmlhttp.open("POST",des,true);
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp.setRequestHeader("Connection", "close");
		var sendInfo='';
		for(var i in param){
			sendInfo+="&"+i+"="+param[i];
		}
		xmlhttp.send(sendInfo);
		return xmlhttp;
	}
	
	
	
	function clearChildNodes(el){
		if (el.hasChildNodes()){
			while (el.childNodes.length >= 1)
				el.removeChild(el.firstChild);
		}
	}
