fixing java script validation
by Kumar Vayyala