function checkform(){ if (document.loginbox.userid.value.length ==0){ alert("Error: No match for E-Mail Address and/or Password."); document.loginbox.userid.focus(); return false; } if (document.loginbox.password.value.length==0){ alert("Error: No match for E-Mail Address and/or Password."); document.loginbox.password.focus(); return false; } } document.write ("              Sign into website") document.write ("   Create a new account")