if(document.register.email.value.length==0){ alert(<?php echo $REG_FORM_EMAIL_CHECK; ?>); return false; }