Email Validation check in javascript

## Used To Validate Email In Javascript <script >   function validateEmail(email) {     var emailReg = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?$/;     return emailReg.test( email );   } </script>