amrut sabade wrote:i am calling the function as onblur="return validateEmail()" and this line is giving error...
is it correct tocall function as this
No, it is not correct, as in the first line you are doing inputField.value.length, if you call the function without the inputField argument this is undefined and it will throw an error in the very first line, try onblur="return validateEmail(this)" (in case you want to check the field where you are setting the onblur)
Also install the firebug plugin to help you create and debug javascript part of your application
http://getfirebug.com/ and check the very useful screencasts here
http://getfirebug.com/screencasts