var xmlHttpObject = false;

if (typeof XMLHttpRequest != 'undefined') 
{
    xmlHttpObject = new XMLHttpRequest();
}
if (!xmlHttpObject) 
{
    try 
    {
        xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e) 
    {
        try 
        {
            xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) 
        {
            xmlHttpObject = null;
        }
    }
}



function showdetails(wert1)
{
    xmlHttpObject.open('get','user-helper.php?show=showdetails&art='+wert1+'',true);
    xmlHttpObject.onreadystatechange = function() { handleContent(wert1); };
    xmlHttpObject.send(null);
    return false;
}
function showdetailsUPD(wert1)
{
    xmlHttpObject.open('get','user-helper.php?show=showdetailsupd&art='+wert1+'',true);
    xmlHttpObject.onreadystatechange = function() { handleContent(wert1); };
    xmlHttpObject.send(null);
    return false;
}



function helpadd(wert1)
{
    xmlHttpObject.open('get','user-helper.php?show=helpadd&art='+wert1+'',true);
    xmlHttpObject.onreadystatechange = function() { handleContent(wert1); };
    xmlHttpObject.send(null);
    return false;
}

function handleContent(wert1)
{

	if (xmlHttpObject.readyState == 3)
	{
		document.getElementById('box'+wert1+'').innerHTML = '<img src="img/ajax-loader.gif" title="Daten werden geladen!" width="16" height="16" border="0"><br>';
	} 
	
    if (xmlHttpObject.readyState == 4)
    {
        document.getElementById('box'+wert1).innerHTML = xmlHttpObject.responseText;
    }
}


function del_bl(id,bla) {
	if(confirm('Moechten sie den ausgewaehlten Backlink entfernen?\nDer Backlink wird ohne weitere Nachfrage geloescht!')){
	location.href='user-bl.php?show=del&id='+id+'';
	}
}