function fav_story(story_id, newtext) {
		//Check FF / IE
			var xmlHttp;
	try  	{  
	  // Firefox, Opera 8.0+, Safari  
	  xmlHttp=new XMLHttpRequest();  
  	}
catch (e)  {  
  // Internet Explorer  
  try    {    
	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
	}
  catch (e)    {    
	try      {      
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
	  }
    catch (e)      	{
	    alert("Your browser does not support AJAX!");    
	    return false;      
		}		 }  		 }
		
		//Load the comments
		xmlHttp.onreadystatechange = function() {
		if(xmlHttp.readyState==4)
		  {
		  	document.getElementById('fav_text').innerHTML = '<span style="color:#e9b138"><img alt="" src="/images/3floppy-unmount-16x16.png" /> ' + newtext + '</span>'
			document.getElementById('count_favorites').innerHTML = xmlHttp.responseText;
		  }
		  }
	var myurl='/includes/functions/fav.asp?STORY_ID=' + story_id;
	myRand=parseInt(Math.random()*99999999);  // cache buster

  xmlHttp.open("GET",myurl + "&rand=" + myRand,true);
  xmlHttp.send(null);  
  }

function report(comment_id, story_id, newtext) {
		//Check FF / IE
			var xmlHttp;
	try  	{  
	  // Firefox, Opera 8.0+, Safari  
	  xmlHttp=new XMLHttpRequest();  
  	}
catch (e)  {  
  // Internet Explorer  
  try    {    
	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
	}
  catch (e)    {    
	try      {      
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
	  }
    catch (e)      	{
	    alert("Your browser does not support AJAX!");    
	    return false;      
		}		 }  		 }
		
		//Load the comments
		xmlHttp.onreadystatechange = function() {
		if(xmlHttp.readyState==4)
		  {
		  	document.getElementById('report_comment_' + comment_id).innerHTML = '<span style="color:#cccccc; font-weight:bolder">' + newtext + '</span>'
		  }
		  }
	var myurl='/includes/functions/reportcomment.asp?COMMENT_ID=' + comment_id + '&story_id=' + story_id;
	myRand=parseInt(Math.random()*99999999);  // cache buster

  xmlHttp.open("GET",myurl + "&rand=" + myRand,true);
  xmlHttp.send(null);  
  }
 function removeFav(story_id) {
		//Check FF / IE
			var xmlHttp;
	try  	{  
	  // Firefox, Opera 8.0+, Safari  
	  xmlHttp=new XMLHttpRequest();  
  	}
catch (e)  {  
  // Internet Explorer  
  try    {    
	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
	}
  catch (e)    {    
	try      {      
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
	  }
    catch (e)      	{
	    alert("Your browser does not support AJAX!");    
	    return false;      
		}		 }  		 }
		
		//Load the comments
		xmlHttp.onreadystatechange = function() {
		if(xmlHttp.readyState==4)
		  {
		  	document.getElementById('fav' + story_id).style.display = 'none';
		 	document.getElementById('count_favorites').innerHTML = xmlHttp.responseText;
		  }
		  }
	var myurl='/includes/functions/removefav.asp?story_id=' + story_id;
	myRand=parseInt(Math.random()*99999999);  // cache buster

  xmlHttp.open("GET",myurl + "&rand=" + myRand,true);
  xmlHttp.send(null);  
  } 
  

