added javascript scriptlet to set focus on correct box