//<!--

var xmlHttp

var mycontainer

//-------------------------------------------------------------------------
function showAnswer(str,container)
{
	xmlHttp = GetXmlHttpObject()
	if (xmlHttp == null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}//if /end if

    mycontainer = container

	var url="getcommentno.php"
	url=url+"?id="+str
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange = stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}//function showAnswer
//-------------------------------------------------------------------------
function stateChanged()
{
	if (xmlHttp.readyState == 0 || xmlHttp.readyState=="uninitialized" )
	{
    	mycontainer.innerHTML= "Loading ..."//document.getElementById("txtHint").innerHTML= "Loading ..."
	}//if ->else
	else if (xmlHttp.readyState == 1 || xmlHttp.readyState=="loading" )
	{
    	mycontainer.innerHTML= "Loading ..."//document.getElementById("txtHint").innerHTML= "Loading ..."
	}//if ->else
	else if (xmlHttp.readyState == 2 || xmlHttp.readyState=="loaded" )
	{
        mycontainer.innerHTML= "Loading ..."//document.getElementById("txtHint").innerHTML= "Loading ..."
	}//if ->else
	else if (xmlHttp.readyState == 3 || xmlHttp.readyState=="interactive" )
	{
        mycontainer.innerHTML= "Loading ..."//document.getElementById("txtHint").innerHTML= "Loading ..."
	}//if ->else
	else if (xmlHttp.readyState == 4 || xmlHttp.readyState=="complete" )
	{
        mycontainer.innerHTML= xmlHttp.responseText//document.getElementById("txtHint").innerHTML=xmlHttp.responseText
	}//if /end if
}//function stateChanged
//-------------------------------------------------------------------------
function GetXmlHttpObject()
{
	var objXMLHttp = null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}//if ->else if
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}//else if /end if
	return objXMLHttp
}//function GetXmlHttpObject
//-------------------------------------------------------------------------


// -->

