

function fetch_jackpot(base_url)
{
    var xmlHttp;
    try
    {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch (e)
    {
        // Internet Explorer
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            try
            {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {
                //
            }
        }
    }
    xmlHttp.onreadystatechange=function()
    {
        if(xmlHttp.readyState==4)
        {
           if (xmlHttp.responseText.length > 0 && xmlHttp.responseText.length < 15 && xmlHttp.responseText.indexOf("$") != -1)
           {
				document.getElementById('jpt').innerHTML = xmlHttp.responseText;
				setTimeout("fetch_jackpot('" + base_url + "');",4000);
           }
        }
    }
    xmlHttp.open("GET",base_url + "/get_jackpot.asp?rand=" + Math.round(Math.random()*10001113356+Math.random()*111),true);
    xmlHttp.send(null);
}