function ajaxRequest(method, url, toSend, content_id)
{
    if (window.XMLHttpRequest)
    {
        // browser has native support for XMLHttpRequest object
        req = new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
        // try XMLHTTP ActiveX (Internet Explorer) version
        req = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    if(req)
    {
        req.onreadystatechange = ajaxResponse;
        req.open(method, url, true);
        req.send(toSend);
    }
    else
    {

    }
    setTimeout("ajaxRequest('GET','"+url+"&rand="+Math.random()+"','',"+content_id+");",5000);
} 

function ajaxResponse()
{
    if (req.readyState == 4)
    {
        if (req.status == 200)
        {
        	if (document.getElementById != undefined)
        	    document.getElementById("side_img").innerHTML = req.responseText;
        	//else if (document.all)
        	  //  alert("ie probably");
        }
    }
}
