add tab selector funtion for register.jsp