function loadXMLDoc(url) {
    // для "родного" XMLHttpRequest
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
        
    // для версии с ActiveX
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        } else
        {
	    alert("Нет объекта\n");
        }
    }
}

function processReqChange() {
    // только при состоянии "complete"
    if (req.readyState == 4) {
        // для статуса "OK"
        if (req.status == 200) {
            // здесь идут всякие штуки с полученным ответом
	    if (document.all)
		document.all.song.innerHTML=req.responseText;
	    else if (document.getElementById)
		document.getElementById("song").innerHTML=req.responseText;
	    else
		document.write(req.responseText);
        } else {
            alert("Не удалось получить данные:\n" +
                req.statusText);
        }
    }
}

function getthesong(time)
{
  loadXMLDoc("http://www.synth-radio.ru/ice2.php");
  setTimeout('getthesong('+time+')',time);
}

window.onload=getthesong(10000)

