function getXmlHTTP(){
	if(typeof XMLHttpRequest!="undefined"){
		return new XMLHttpRequest();
	}
	else if(typeof ActiveXObject != "undefined")
	{
		try{
			var xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			return xmlhttp;
		}
		catch(e)
		{
			return null;
		}
	}
	return null;
}
function _ajax(url) {
	xmlReq=getXmlHTTP();
	xmlReq.open("GET", url, true)
	xmlReq.onreadystatechange=function(){
		if(xmlReq.readyState==4){
			var xmlDoc = xmlReq.responseText;
			eval(xmlDoc)
		}
	}
	xmlReq.send(null);
}
function _ajax_to_div(url, id_div_name, $wait_html) {
	if ($wait_html == null) {
		$wait_html = '&nbsp;<div class="ajax_waiting"></div>';
	}
	document.getElementById(id_div_name).innerHTML = $wait_html;
	xmlReq=getXmlHTTP();
	xmlReq.open("GET", url, true)
	xmlReq.onreadystatechange=function(){
		if(xmlReq.readyState==4){
			var xmlDoc = xmlReq.responseText;
			document.getElementById(id_div_name).innerHTML = xmlDoc;
			eval(xmlDoc)
		}
	}
	xmlReq.send(null);
}

function Asc(String)
{

	return String.charCodeAt(0);

}

function Chr(AsciiNum)
{

	return String.fromCharCode(AsciiNum)

}

