javascript for result.jsp