Add javascript function ShowSelector