var sendTextXML;
function sendText(id, x, location){
	if(isArray(x))
	{
		var t = '';
		for (key in x)
		{
			if(key != null && x[key] != null)
			{
				t += key+'='+ x[key] +'&';
			}
		}
		x = t;
	}
	if(sendTextXML)
	{
		sendTextXML.abort(); 
	}
	if(id != null)
	{
		id = document.getElementById(id);
		var sendTextXML	= new XMLHttpRequest;
		sendTextXML.onreadystatechange	= function(){
			if(this.readyState == XMLHttpRequest.DONE)
			{
				id.innerHTML = sendTextXML.responseText;
			}
			
			else
			{
				id.innerHTML = '<div align="center"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100" height="100">  <param name="movie" value="system/swf/spinner.swf">  <param name="quality" value="high">  <param name="wmode" value="transparent">  <param name="swfversion" value="6.0.65.0">    <!--[if !IE]>-->  <object type="application/x-shockwave-flash" data="system/swf/spinner.swf" width="100" height="100">    <!--<![endif]-->    <param name="quality" value="high">    <param name="wmode" value="transparent">            <div><div><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></div>    </div>    <!--[if !IE]>-->  </object>  <!--<![endif]--></object><script type="text/javascript"><!--swfobject.registerObject("FlashID");//--></script></div>';
			}
		}

		  sendTextXML.open("POST", location, true);
		  sendTextXML.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		  sendTextXML.setRequestHeader("Content-length", x.length);
		  sendTextXML.setRequestHeader("Connection", "close");
		  sendTextXML.send(x);
	}
}