function setColor(objtableline) {
	moutcolor=objtableline.style.backgroundColor;
	objtableline.style.backgroundColor=movercolor;
//	objtableline.style.color="#000000";
}

function resetColor(objtableline) {
	objtableline.style.backgroundColor=moutcolor;

//	if(objtableline.rowIndex%2==0) {
//		objtableline.style.backgroundColor=evencolor;
//	} else {
//		objtableline.style.backgroundColor=oddcolor;
//	}
////	objtableline.style.color="black";
}

function tablelinecolorinit() {
	document.writeln('<div id="onmouse" style="display:none" onmouseover="setColor(this)" onmouseout="resetColor(this)"></div>');
}

function settablelinecolor(objtablename,foddcolor,fevencolor) {
	if (objtablename)
		for (var i=0; i<objtablename.rows.length; i++) {
		  if(i%2==0){
		   objtablename.rows[i].style.backgroundColor=fevencolor;
		  }else{
		   objtablename.rows[i].style.backgroundColor=foddcolor;
		  }
  //调用层中的方法，改变鼠标所在行的颜色
		  objtablename.rows[i].onmouseover=document.all.onmouse.onmouseover;
		  objtablename.rows[i].onmouseout=document.all.onmouse.onmouseout;
		}
}

