// ajax reload
function ajax_read() {
 if(window.XMLHttpRequest){
  xmlhttp=new XMLHttpRequest();
  if(xmlhttp.overrideMimeType){
   xmlhttp.overrideMimeType('text/xml');
  }
 } else if(window.ActiveXObject){
  try{
   xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  } catch(e) {
   try{
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

   } catch(e){
   }
  }
 }

 if(!xmlhttp) {
  alert('Giving up :( Cannot create an XMLHTTP instance');
  return false;
 }
 
 //document.getElementById("hasil").innerHTML ='reload..</h1>'
 
 xmlhttp.onreadystatechange = function() {
 if (xmlhttp.readyState==4) {
  document.getElementById("shoutcaststatus").innerHTML = xmlhttp.responseText;
  }
 }

 xmlhttp.open('GET','shoutcast_status.php');
 xmlhttp.send(null);
 
}
function refresh()
{
 ajax_read()
 var t;
 t=setTimeout("refresh()",10000);
}
window.onload = refresh;
