function loadDay(date)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {//alert(xmlhttp.status);
  
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	//alert(xmlhttp.responseText);
    document.getElementById("block-views-programma_overzicht-block_1").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",getBaseURL()+"getPrograms.php?t=" + Math.random() + "&date=" + date,true);
xmlhttp.send();

}
function changeColor(day) {
	//alert(document.getElementById(day).innerHTML);
	//document.getElementById(day).innerHTML = '<img src="/sites/all/themes/rtv/images/default/'+day+'-color.png">';
}

function getBaseURL() {
    return location.protocol + "//" + location.hostname + 
      (location.port && ":" + location.port) + "/";

}
