function changeIt(ImageToChange, ImageToShow){ if (document.images){ document[ImageToChange].src = ImageToShow; }else{ if (document.getElementById){ getElementById(ImageToChange).src = ImageToShow; } } } function printThis(){if (window.print){window.print();}} function ShowPopup(InfoURL,Naam,B,H,SB) { // open the popup window window.name = 'PopupWindow'; var popupURL = InfoURL; var popup = window.open(popupURL,Naam,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+SB+',resizable=0,left=10,top=10,width='+B+',height='+H); // set the opener if it's not already set. it's set automatically // in netscape 3.0+ and ie 3.0+. if( navigator.appName.substring(0,8) == "Netscape" ) { popup.location = popupURL; } popup.focus(); } function EnableOnly () { // Disable all controls first, only to enable one of them later on document.getElementById("sTypeID").disabled=true; document.getElementById("sLiggingID").disabled=true; document.getElementById("dDatum").disabled=true; document.getElementById("sPeriodeID").disabled=true; } tt = null; document.onmousemove = updateTT; function updateTT(e) { //x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX; //y = (document.all) ? window.event.y + document.body.scrollTop : e.pageY; var posx = 0; var posy = 0; if (!e) var e = window.event; if (e.pageX || e.pageY) { posx = e.pageX; posy = e.pageY; } else if (e.clientX || e.clientY) { posx = e.clientX + document.body.scrollLeft; posy = e.clientY + document.body.scrollTop; } if (tt != null) { tt.style.left = (posx + 20) + 'px'; tt.style.top = (posy + 20) + 'px'; } }