we should access to __regid__ instead of id since in that case bw compat fail: access to id throuhg a class returns the property object instead of calling the property's method
function set_tab(tabname, cookiename) {
// set appropriate cookie
asyncRemoteExec('set_cookie', cookiename, tabname);
// trigger show + tabname event
trigger_load(tabname);
}