/* Written by Burt Petrescue 2007 */ var tablehtml=''; var lastbgid=0; function getbgclass(notoggle) { if (notoggle==null) { lastbgid=(lastbgid==1)?0:1; } if (lastbgid==0) return 'rowid1'; return 'rowid2'; } function table_begin() { lastbgid=0; tablehtml+=''; } function row_begin(clsname,onclicktxt,activerow) {//any clsname given here must also have a _hover class if (clsname==null) clsname=getbgclass(); if (activerow==null) activerow=true; var cls=' class='+clsname; tablehtml+=''+(data.length==0?' ':data)+''; } function row_end() { tablehtml+=''; } function table_end() { tablehtml+='
'; } function sclass(obj,classname){ obj.className=classname; }