var xmlHttp1

var loadstatustext="<img src='loading1.gif' /> Requesting Content..."

function showUser1(content_type,content_id,str,np)
{ 
document.getElementById('txtHint1').innerHTML=loadstatustext



str = str || "0"
np = np || "0"


xmlHttp1=GetXmlHttpObject1()
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url1="getcomments.php"
url1=url1+"?content_type="+content_type
url1=url1+"&content_id="+content_id
url1=url1+"&s="+str
if (np!=0)
{
url1=url1+"&np="+np
}
url1=url1+"&sid1="+Math.random()
xmlHttp1.onreadystatechange=stateChanged1 
xmlHttp1.open("GET",url1,true)
xmlHttp1.send(null)
}

function stateChanged1() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
 { 
 document.getElementById("txtHint1").innerHTML=xmlHttp1.responseText 
 } 
}

function GetXmlHttpObject1()
{
var xmlHttp1=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp1=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp1;
}
