//gotta have it
var xmlHttp;
//variable
var offense_id_local;
//if droppedequal one then drop it down
var dropped =1;

function drop_friend(id)
{
	//window.alert("tella friend");
	xmlHttp=GetXmlHttpObject();
	
	
	    if (xmlHttp==null)
          {
          alert ("Your browser does not support AJAX!");
          return;
        } //end object
          
	//definte url
	var url="tell.php";
	//drop it
	dropped = dropped+1;
	
	
    if (dropped%2==0)
        {
		//bring div down
		
        document.getElementById("tell").innerHTML="";
        url=url+"?dropped=yes&id="+id+"&name=";
        url=url+"&sid="+Math.random();
        xmlHttp.onreadystatechange=stateChanged;
        xmlHttp.open("GET",url,true);
        xmlHttp.send(null);
        }//end if
       
    else
    {
	//set div to nothing
	document.getElementById("tell").innerHTML="";
    url=url+"?dropped=no";
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
    }
}//end fncn checkbox
function stateChanged()
{
if (xmlHttp.readyState==4)
{
document.getElementById("tell").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;
}

