fix bug: the 'table' argument is overwritten by the loop variable, causing latter crash due to this missing information
functionset_tab(tabname,cookiename){// set appropriate cookieasyncRemoteExec('set_cookie',cookiename,tabname);// trigger show + tabname eventtrigger_load(tabname);}