/** * common.js.php * Elegance Framework - Buijt.Web * * (c) 2005 - 2008 2G B.V. All rights reserved. * The computer program(s) is the proprietary information of the original authors. * and provided under the relevant License Agreement containing restrictions * on use and disclosure. Use is subject to the License Agreement. * * No part of this package may be reproduced and/or published by print, * photoprint, microfilm, audiotape, electronically, mechanically or any other means, * or stored in an information retrieval system, without prior permission from 2G B.V. www.2g-it.nl. * * @original authors: jwvdiermen */ function ShowImage(sValue) { document.getElementById('contentimage').src="http://www.buijtenhuisbouw.nl/files/"+sValue; } function sendForm () { if (__ID("txtContactPerson").value == "") { alert("Een naam is verplicht."); __ID("txtContactPerson").focus(); } else if ((__ID("txtEmail").value == "") && (__ID("txtPhone").value == "")) { alert("E-mailadres en/of telefoon is verplicht."); if (__ID("txtEmail").value == "") { __ID("txtEmail").focus(); } else { __ID("txtPhone").focus(); } } else if (__ID("txtQuestion").value == "") { alert("Vraag en/of opmerking is verplicht."); __ID("txtQuestion").focus(); } else { //Enough form data, submit it. document.CONTACT_FORM.submit(); } }//sendForm function __ID (sID) { return document.getElementById(sID); }//__ID