var xmlHttp
function deadsong(str,logged)
{
	/*if(logged == "true")
	{*/
		holderid = str;
		xmlHttp=GetXmlHttpObject1()
//		document.getElementById("deadlnk"+holderid).style.backgroundImage = "url(images/icons/preloader.gif)";
	document.getElementById("deadlnk"+holderid).src = "images/icons/preloader.gif";
		if (xmlHttp==null)
		 {
		 alert ("Browser does not support HTTP Request")
		 return
		 }
		var url="../audio/deadsong.php?song="+str;
		xmlHttp.onreadystatechange=stateChanged1 
		xmlHttp.open("GET",url,true)
		xmlHttp.send(null)
	/*}
	else
	{
		window.location.href = "../login.php";
	}*/
}

function stateChanged1()
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 {
		 if(xmlHttp.responseText == "succ") {
//		document.getElementById("deadlnk"+holderid).style.backgroundImage = "url(images/icons/unlink.gif)";
		document.getElementById("deadlnk"+holderid).src = "images/icons/unlink.gif";
		 alert("Dead Link Reported!!");
		 }
	 } 
}
function GetXmlHttpObject1()
{
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;
}