var footerH = 190; var headerH = 225; var argL = 0; // default // ====================================================== function doresize() { setH('content','right'); // give the id's of all concerning columns inside 'container' // Each column stretches its height due to its content : // the footer top position is computed after the page is loaded : under the heighest column } // ====================================================== function setH() { argL = setH.arguments.length; var i; var allColH = colH(setH.arguments); var windowH = document.body.clientHeight - headerH; var fillH = windowH - footerH; var TFfill = (footerH + allColH < windowH); var daH = TFfill ? fillH : allColH; for (i=0;i < argL;i++) { document.getElementById(setH.arguments[i]).style.height = daH + "px"; document.getElementById(setH.arguments[i]).style.marginBottom = (TFfill ? 0 : footerH) + "px"; } document.getElementById('footer').style.top = (daH + headerH) + "px"; document.getElementById('footer').style.visibility = "visible"; } // ====================================================== function colH(aColID) { // Array containing all IDs of the concerning COLumns var i; var oH = 0; var cOH = new Array(); for (i=0;i < argL;i++) { document.getElementById(aColID[i]).style.height = 'auto'; cOH[i] = document.getElementById(aColID[i]).offsetHeight; } for (i=0;i < argL;i++) { if (cOH[i] > oH) oH = cOH[i]; } return oH; } // ====================================================== function miMV(ID) { document.getElementById("L"+ID).style.backgroundPosition = "0px -28px"; } // ====================================================== function miMT(ID) { document.getElementById("L"+ID).style.backgroundPosition = "0px 0px"; } // ====================================================== function subMV(ID) { miMV(ID); document.getElementById("U"+ID).style.display = 'block'; } // ====================================================== function subMT(ID) { miMT(ID); document.getElementById("U"+ID).style.display = 'none'; } /*----- CHECKFORM CONTACT -----*/ function checkform_contact(f) { if (f.elements['naam'].value == "") { alert("Vul uw naam in."); window.setTimeout("f.elements['naam'].focus()",500); return (false); } if (f.elements['bedrijfsnaam'].value == "") { alert("Vul uw adres in."); window.setTimeout("f.elements['bedrijfsnaam'].focus()",500); return (false); } if (f.elements['adres'].value == "") { alert("Vul uw adres in."); window.setTimeout("f.elements['adres'].focus()",500); return (false); } if (f.elements['postcode'].value == "") { alert("Vul uw postcode in."); window.setTimeout("f.elements['postcode'].focus()",500); return (false); } if (f.elements['woonplaats'].value == "") { alert("Vul uw woonplaats in."); window.setTimeout("f.elements['woonplaats'].focus()",500); return (false); } if (f.elements['telefoon'].value == "") { alert("Vul uw telefoonnummer in."); window.setTimeout("f.elements['telefoon'].focus()",500); return (false); } if (f.elements['fax'].value == "") { alert("Vul uw faxnummer in."); window.setTimeout("f.elements['fax'].focus()",500); return (false); } if (f.elements['email'].value == "") { alert("Geen e-mail ingevoerd."); window.setTimeout("f.elements['email'].focus()",500); return (false); } if (f.elements['vragen'].value == "") { alert("Geen vragen / opmerkingen ingevoerd."); window.setTimeout("f.elements['vragen'].focus()",500); return (false); } else f.submit(); }