/*  function load()
  {
	  var divh = document.getElementById('content').offsetHeight;
    document.getElementById('leftSpacer').style.height = divh -117 + 'px';
		document.getElementById('rightSpacer').style.height = divh -117 + 'px';
  }	
  var alreadyrunflag=0 //flag to indicate whether target function has already been run

if (document.addEventListener)
  document.addEventListener("DOMContentLoaded", function(){alreadyrunflag=1; walkmydog(); feedcat('grapes')}, false)
else if (document.all && !window.opera){
  document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>')
  var contentloadtag=document.getElementById("contentloadtag")
  contentloadtag.onreadystatechange=function(){
    if (this.readyState=="complete"){
      alreadyrunflag=1
      load();
    }
  }
}

window.onload=function(){
  //setTimeout("if (!alreadyrunflag){load();}", 0)
}

  
*/
  function printWindow()
  {
    widthContentDiv = document.getElementById('content').offsetWidth;
    myWindow = window.open('printVriendelijk.html','','resizable=no,scrollbars=no,width=' + widthContentDiv + ',height=500,left=25,top=20;');
    setTimeout(function(){setContent(myWindow);}, 750);
  }

  function setContent(myWindow)
  {
	var tekst;
		
	if(document.getElementById('tekst') != null)
	{
		tekst = document.getElementById('tekst').innerHTML;
	}
	else
	{
		tekst = document.getElementById('tekst_nosubmenu').innerHTML;
	}
	
    myWindow.document.body.innerHTML = tekst; // boolean return if successfull or not? I dunno just trying
    myWindow.document.title = "";
  }

