function ajaxDenyComment(comment_id, comment_number){
	//alert("Started...");
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
		  alert ("Your browser does not support AJAX!");
		  return;
	}
	
	new Effect.Fade('pending_comments_'+comment_number, { duration:1});
	var dummy = new Date();
	var url= "/includes/ajax/deny_comment.php?comment_id=" + comment_id + "&dummy=" + dummy.getTime();
	alert("url: " + url);
	xmlHttp.onreadystatechange=function()
	{ 
		if (xmlHttp.readyState==4){ 
			//alert("Made it into ready state. The response is: " + xmlHttp.responseText);
			var responseText = xmlHttp.responseText;
			if( responseText.length == 0){
				responseText = "An error occured.";
			}
			document.getElementById("pending_comments_popup").innerHTML = "" + responseText;
			new Effect.Appear('pending_comments_popup', { duration:1, delay: 1});
			new Effect.Fade('pending_comments_popup', { duration:1, delay:4});		
		}
	};
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}







//////////////////////////////
//  Supporting Functions    //
//////////////////////////////

function stateChanged(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("txtHint").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;
}