// table width fix Netscape 4.x function checkResize() { if ((window.innerWidth!=iw) || (window.innerHeight!=ih)) history.go(0); } if (navigator.userAgent.substr(0,10) == "Mozilla/4.") { iw=window.innerWidth; ih=window.innerHeight; window.onresize = checkResize; } function popup() { return false; } function enquetepopup() { var url="http://enquete.widexs.nl/"; var target="enquete"; var options="width=550,height=500,scrollbars=YES"; handle=window.open(url,target,options); // return handle; } // todo: cookie check handle=null; // returns anchor name function findhash() { return document.location.hash.substr(1); } // window.status=findhash(); var hash=findhash(); // returns first anchor element in another element (id) DOM & MSIE only function findlink(id) { var link=null; if (document.getElementById) { // jeej DOM supported element=document.getElementById(id); link=element.getElementsByTagName("A")[0]; } else if (document.all) { // old MSIE element=document.all[id]; for (i in document.all[id].children) if (document.all[id].children[i].tagName) if (document.all[id].children[i].tagName=="A") link=document.all[id].children[i]; } return link; } // changes background-color in element (id) and textcolor of the first anchor element (textcolor) DOM & MSIE only function bgcolor(id, bgcolor, textcolor) { var element=null; if (document.getElementById) { // jeej DOM supported element=document.getElementById(id); } else if (document.all) { // old MSIE element=document.all[id]; } if ((bgcolor!=null) && (element!=null)) { element.style.backgroundColor=bgcolor; } var link=findlink(id); if (link!=null) window.status=unescape(link.href); // fix: reset status on mouseout if (textcolor!=null && link!=null) { link.style.color=textcolor; } } // function for opening windows, can be used with TD's (id is NOT the id of the link itself but from a parentelement) function windowopen(id) { var link=findlink(id); if (link!=null) { if (!link.target) link.target="_self"; window.open(link.href, link.target); // theory: should only open window if onlick did work ?! return true; } else return false; } // function for opening popups function popup(id) { var link=null; if (document.getElementById) { // jeej DOM supported link=document.getElementById(id); } else if (document.all) { // old MSIE link=document.links[id]; } if (link) { if (!link.target) link.target="_self"; window.open(link.href, link.target, "width=600, height=500, scrollbars=yes, directories=no, location=no, menubar=no, status=yes, toolbar=no, resizable=yes"); return false; } return true; } // v1.0 write content in layer (c) Gerben Versluis function settext(id, exporttext) { if (document.getElementById) // DOM1 document.getElementById(id).innerHTML=exporttext else if (document.all) // ie document.all[id].innerHTML=exporttext else if (document.layers) { // ns with(document.layers[id].document) { open(); write(exporttext); close(); } } } function getimgMSIE(checkdoc, name) { for (i in checkdoc) { if (checkdoc[i].tagName=="IMG") { if (checkdoc[i].id==name) return checkdoc[i]; } else if (checkdoc[i].children) { link=getimgMSIE(checkdoc[i].children); if (link) return link; } } return false; } // returns first anchor element in another element (id) DOM & MSIE only function findimg(id, name) { if (document.getElementById) { // jeej DOM supported element=document.getElementById(id); for (i=0; i