function check() { if(document.getElementById("email").value.length!=0) { if (document.getElementById("email").value.charAt(0)=='.' || document.getElementById("email").value.charAt(0)=='@'|| ...