function popUp(URL,width,height) { day = new Date(); id = day.getTime(); var winLeft = (screen.width - width) / 2; var winUp = (screen.height - height) / 2; eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left='+winLeft+',top='+winUp);"); } function contact_by_mail(user, domain, suffix, content) { if (!content) { document.write('' + user + '@' + domain + '.' + suffix + ''); } else { document.write('' + content + ''); } return true; } // functies tbv het schalen van de site tov de browser var browserType; if (document.layers) {browserType = "nn4"} if (document.all) {browserType = "ie"} if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"} function find_div(div_name) { if (browserType == "gecko" ) { document.poppedLayer = eval('document.getElementById(\''+div_name+'\')'); } else if (browserType == "ie") { document.poppedLayer = eval('document.all[\''+div_name+'\']'); } else { document.poppedLayer = eval('document.layers[\''+div_name+'\']'); } return document.poppedLayer; } function getWindowWidth() { var windowWidth=0; if (typeof(window.innerWidth)=='number') { windowWidth=window.innerWidth; } else { if (document.documentElement&&document.documentElement.clientWidth) { windowWidth=document.documentElement.clientWidth; } else { if (document.body&&document.body.clientWidth) { windowWidth=document.body.clientWidth; } } } return windowWidth; } function getWindowHeight() { var windowHeight=0; if (typeof(window.innerHeight)=='number') { windowHeight=window.innerHeight; } else { if (document.documentElement&&document.documentElement.clientHeight) { windowHeight=document.documentElement.clientHeight; } else { if (document.body&&document.body.clientHeight) { windowHeight=document.body.clientHeight; } } } return windowHeight; } function check_browser_size() { content_object = find_div('content'); content_object.style.height = getWindowHeight()-150-30 + "px"; text_object = find_div('layout_2'); text_object.style.height = getWindowHeight()-150-30-15-15 + "px"; } function addEventHandler(element, type, handler) { try { element.addEventListener(type, handler, false); } catch(inferiorBrowserException) { if(element.attachEvent) element.attachEvent('on'+type, handler); else element['on'+type] = handler; } return [element, type, handler]; } addEventHandler(window, "resize", check_browser_size); addEventHandler(window, "load", check_browser_size);