function details(id) { document.getElementById("action").value="details"; document.getElementById("gid").value=id; var formToSend = document.getElementById("profileForm"); formToSend.submit(); } function selTab(which) { var tabs = dojo.query("div.headerTab li"); dojo.forEach(tabs, function (t, i) { t.className=''; }); dojo.byId('tab'+which).className="current"; var tabbers = dojo.query(".tabber"); dojo.forEach(tabbers, function (t, i) { t.style.display='none'; }); dojo.byId(which).style.display="block"; }