/*******************************************************************************
* Author: Justin Barlow - www.netlobo.com
*
*******************************************************************************/
function ajaxUpdate(url, options ){
  var params = options.params || "";
  var meth = options.meth || "post";
  var async = options.async || true;
  var req = false;
  if( window.XMLHttpRequest )
	req = new XMLHttpRequest();
  else if( window.ActiveXObject )
	req = new ActiveXObject( "Microsoft.XMLHTTP" );
  else
  {
	alert( "Your browser cannot perform the requested action. "+
		 "Either your security settings are too high or your "+
		 "browser is outdated. Try the newest version of "+
		 "Internet Explorer or Mozilla Firefox." );
	return false;
  }
  
  req.open( meth, url+( params != "" ? "?"+params : "" ), async );
  req.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
  
	req.send(null);
}

function count_it(news_id, path, word){
	
	ajaxUpdate(path, {params:"id=" + news_id + "&word=" + word});
	

}