Actually i get javascripts errors when i click on submit button,this come due to when i write something that in not a path in text box of browse button ,page is not going to submit in that case How i solve this without doing any validation in Javascripts