The GoRecent function is held in Sage CRM in an external file which is included in every page.
function doCode() { SageCRM.webMenu.GoRecent('C'); }