/*
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,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].className = colors[rc];
			}
		}
	}
}
