var xmlHttp 
function sendAbuse(newsid,comId)
{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
 
var url="sendabuse.php"
url=url+"?newsId="+newsid
url=url+"&commentId="+comId
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedAbuse 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function sendAbuseEditor(newsid,comId)
{ 

xmlHttp=GetXmlHttpObject()

if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
 
var url="sendabuseEditor.php"
url=url+"?newsId="+newsid
url=url+"&commentId="+comId
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedAbuseEditor 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChangedAbuseEditor() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText
 alert("Abuse Report Sent Successfully");
 } 
}


function stateChangedAbuse() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText
 alert("Abuse Report Sent Successfully");
 } 
}

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;
}