/** * common.js.php * By 2G B.V. * * © copyright 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 checkForm() { if (document.emailformulier.naam.value == ""){ window.alert('Wilt u uw naam invullen?'); document.emailformulier.naam.focus(); }else if (document.emailformulier.adres.value == ""){ window.alert('Wilt u uw e-mailadres invullen?'); document.emailformulier.adres.focus(); }else { myvalue = document.emailformulier.adres.value; if ((myvalue.indexOf("@") >= 0) && (myvalue.indexOf(" ") < 0) && (myvalue.indexOf(".") >= 0)) { myvalue = document.emailformulier.adres.value; if ((myvalue.indexOf("@") >= 0) && (myvalue.indexOf(" ") < 0) && (myvalue.indexOf(".") >= 0)) { document.emailformulier.submit() }else { alert("Uw emailadres is niet juist!"); document.emailformulier.adres.focus(); return false; } } else { alert("Uw emailadres is niet juist!"); document.emailformulier.adres.focus(); return false; } } }