function findObject(objectId) { if(window.document.getElementById && window.document.getElementById(objectId)) return window.document.getElementById(objectId); else if (window.document.all && window.document.all(objectId)) return window.document.all(objectId); else if (window.document.layers && window.document.layers[objectId]) return window.document.layers[objectId]; else return null; } function submitForm(formname) { try { var obj = findObject(formname); if (obj != null) obj.submit(); } catch(e) {} return false; } function selectInput(item) { try { if (item != null && item.value != '') { item.select(); item.focus(); } } catch(e) {} } function checkCookies() { try { var today = new Date(); var expire = new Date(); expire.setTime(today.getTime() + 3600000*24); document.cookie = 'acceptcookie=true;expires='+expire.toGMTString(); var theCookie=''+document.cookie; var ind=theCookie.indexOf('acceptcookie'); return ind != -1; } catch(e) { return false; } } init = function() { setFooter() } window.onload=init; function setFooter() { try { if (document.getElementById) { var ss1Height = document.getElementById('ss1').offsetHeight; var ss2Height = document.getElementById('ss2').offsetHeight; if (ss1Height>ss2Height) { document.getElementById('ss2').style.paddingBottom = ss1Height - ss2Height + 'px'; } else { document.getElementById('ss1').style.paddingBottom = ss2Height - ss1Height + 'px'; } var as1Height = document.getElementById('as1').offsetHeight; var as2Height = document.getElementById('as2').offsetHeight; if (as1Height>as2Height) { document.getElementById('as2').style.marginBottom = as1Height - as2Height + 'px'; } else { document.getElementById('as1').style.marginBottom = as2Height - as1Height + 'px'; } } } catch(e) { } } function submitMerk() { var obj = findObject('merk'); if (obj != null && obj.value != '') submitForm('merkForm'); return false; } function allowShop() { if (checkCookies()) return true; else { alert('Om gebruik te kunnen maken van deze webwinkel is het vereist dat uw browser cookies accepteert.'); return false; } }