var xmlHttp
var RESPONSEID
	function countClick(id)
	{   
		//alert(id);
	   	xmlHttp=GetXmlHttpObject()
		
		if (xmlHttp==null)
		{
			alert ("Browser does not support HTTP Request")
			return
		}
		var URL='updateCount.php?id='+id; //alert(URL);
		//xmlHttp.onreadystatechange=STATE_GetResponse;
		xmlHttp.open("GET",URL,true)
		xmlHttp.send(null)
		//}
	}
	
	/*function STATE_GetResponse() 
	{    
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{// alert(xmlHttp.responseText);
		  if(RESPONSEID)
		  document.getElementById(RESPONSEID).innerHTML = xmlHttp.responseText;
		}
	}
*/
//######################################################################################



// post contents
function postcontent(url,responseid)
	{   
	    RESPONSEID = responseid;
		xmlHttp=GetXmlHttpObject()
		
		if (xmlHttp==null)
		{
			alert ("Browser does not support HTTP Request")
			return
		}
		var URL=url; //alert(URL);
		xmlHttp.onreadystatechange=STATE_POSTCONTENT;
		xmlHttp.open("GET",URL,true)
		xmlHttp.send(null)
		//}
	}
	
	function STATE_POSTCONTENT() 
	{    
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		{ 
		  if(RESPONSEID)
		  document.getElementById(RESPONSEID).innerHTML = xmlHttp.responseText;
		}
	}

	
	
	
	
	function GetXmlHttpObject()
		{
		var xmlHttp=null;
		try
		  {
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
		  }
		catch (e)
		  {
		  // Internet Explorer
		  try
			{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		  catch (e)
			{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		  }
		return xmlHttp;
   }
