/*
striply(class,colors,head,foot)
*/
function striply(tid,colors,head,foot){
	oTables = document.getElementsByTagName('table');
	ncolor = colors.length;
	headColor = head || '';
	for (o in oTables){
		if (oTables[o].className==tid){
			oTable = oTables[o]
			oTBody =	oTable.tBodies[0];
			oTHead =	oTable.tHead;
			oTHead.style.backgroundColor = headColor;
			oTRows = oTBody.rows;
			for (r=0;r<oTRows.length;r++){
				rc = r%ncolor;
				oTRows[r].style.backgroundColor = colors[rc];
			}
		}
	}
}
function rowstyle(tid,styles,head,foot){
	oTables = document.getElementsByTagName('table');
	nstyles = styles.length;
	headColor = head || '';
	toprow = ''
	for (o in oTables){
		if (oTables[o].className==tid){
			oTable = oTables[o]
			oTBody =	oTable.tBodies[0];
			oTHead =	oTable.tHead;
			oTHead.style.backgroundColor = headColor;
			oTRows = oTBody.rows;
			for (r=0;toprow=='';r++){
				oTCells = oTRows[r].cells;
				for (c=0;c<oTCells.length;c++){
					toprow = oTCells[c].innerHTML;
				}
			}
			for (r=0;r<oTRows.length;r++){
				existClassName = oTRows[r].className || '';
				oTRows[r].className = oTRows[r].className +' '+ styles[r%nstyles];
			}
		}
	}
	return toprow;
}
