function showDownloadLinks(link,redirect)
{
    //alert(link);
    document.getElementById("DownloadLinks").innerHTML="<img src='images/4.gif' /> <br>Please Wait.."
    xmlHttp=GetXmlHttpObject()
    var url="getdownloadlinks.php?path="+link+"&redirect="+redirect;
    //alert (url);
    xmlHttp.onreadystatechange=show_links;
    xmlHttp.open("GET",url,true)
    xmlHttp.send(null)
}
function show_links() 
{ 
    //alert(global_id);
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
        if(xmlHttp.responseText!="")
            document.getElementById("DownloadLinks").innerHTML=xmlHttp.responseText 
        else
            document.getElementById("DownloadLinks").innerHTML="<img src='images/notfound.gif' /> <br>Sorry Link is not Available..Please Try Again" 
    }
        
}
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;
}
