/**
 *
 * @access public
 * @return void
 **/

var string = location.href;
var first  = string.indexOf("?");
var linkje = string.substring(0,first);
var check_index = string.indexOf("index.php");
if(check_index == -1) {
	string += "index.php?id=1";
} else {
	string = linkje;
    string += "?id=1";
}







/**
 *
 * @access public
 * @return void
 **/
function show_appointments(day,month,year)
{
	window.location = string+"&modules_id=70&action=show_appointments&day="+day+"&month="+month+"&year="+year;
	//window.open(link, 'venster_naam', "width=250,height='100%'");
}

function ajaxRead(file, tag)
{
  var xmlObj = null;
  if(window.XMLHttpRequest)
  {
      xmlObj = new XMLHttpRequest();
  } else if(window.ActiveXObject)
  {
      xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
  } else {
      return;
  }
  xmlObj.onreadystatechange = function(){
    if(xmlObj.readyState == 4)
    {
        document.getElementById(tag).innerHTML = xmlObj.responseText;
    }
    }
    xmlObj.open ('GET', file, true);
    xmlObj.send ('');
}