var focusOnPassword; function focusUsername() { d=document.getElementById("usernamefield"); if (d) { d.focus(); } } function checksubmit(validEmailRequired) { if (typeof(validEmailRequired)!='boolean') { validEmailRequired=false; } if (typeof(eMailAllowed)=='undefined') { eMailAllowed=false; } if (typeof(registrationAllowed)=='undefined') { registrationAllowed=false; } u=document.getElementById("usernamefield"); if (u.value=="") { if (eMailAllowed) { window.alert("Vul alstublieft uw gebruikersnaam of e-mail adres in"); } else { window.alert("Vul alstublieft uw gebruikersnaam in"); } u.focus(); return false; } p=document.getElementById("passwd"); if (p.value=="") { if (registrationAllowed) { window.alert("Vul alstublieft uw/een wachtwoord in"); } else { window.alert("Vul alstublieft uw wachtwoord in"); } p.focus(); return false; } else { if (validEmailRequired&&!isValidEmail(p.value)) { window.alert('Vul alstublieft een geldig e-mail adres in'); } return true; } } if (!focusOnPassword) { addOnLoadFunction(focusUsername); }