/*
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+='';
}
function cell (data, ucls, uid, ucolspan, uwidth, uother) {
var cls=(ucls==null)?'':' class="'+ucls+'"';
var id=(uid==null)?'':' id="'+uid+'"';
var colspan=(ucolspan==null)?'':' colspan='+ucolspan;
var width=(uwidth==null)?'':' width='+uwidth;
var other=(uother==null)?'':' '+uother+' ';
tablehtml+='| '+(data.length==0?' ':data)+' | ';
}
function row_end() {
tablehtml+='
';
}
function table_end() {
tablehtml+='
';
}
function sclass(obj,classname){
obj.className=classname;
}