[doc/book] rework the templates chapter (wipe out horrible example, talk more about structure)
functionset_tab(tabname,cookiename){// set appropriate cookieasyncRemoteExec('set_cookie',cookiename,tabname);// trigger show + tabname eventtrigger_load(tabname);}