use href="javascript:mkws.switchView('records')" instead onclick event, MKWS-39