function tableStyler(id,classNameOdd,classNameEven,classTd,startRowIndex)
{
	if(!startRowIndex)
	startRowIndex=0;
	if(!document.getElementById(id))
		return false;
	elem=document.getElementById(id).getElementsByTagName('tr');
	for(i=startRowIndex;i<elem.length;i++)
	{
		if(i%2==0)
			elem[i].className=classNameEven
		else
			elem[i].className=classNameOdd
		tds=elem[i].getElementsByTagName('td');
		for(j=0;j<tds.length;j++)
		{
			tds[j].className=classTd[j]
		}
		
	}
}
 
function tableStylerOnTd(id,classNameOdd,classNameEven,classTd,totalTdInRow)
{
	if(!totalTdInRow)
		totalTdInRow=6
	if(!document.getElementById(id))
		return false;
	elem=document.getElementById(id).getElementsByTagName('td');
	 
	for(i=0;i<elem.length;i++)
	{
		if(i%3==2 )
			continue;
		if(i%(totalTdInRow*2)<totalTdInRow)
			elem[i].className=elem[i].className+" "+classNameEven
		else
			elem[i].className+=elem[i].className+" "+classNameOdd
		 
		 if(i%3==0)
			elem[i].className=elem[i].className+" "+classTd[0]
		 
		
	}
}