var overcolor='#770000';//鼠标滑过的颜色
var outcolor='';//本来的颜色 不写就是透明色
var clkcolor='';//鼠标点击后的颜色
var pObj=null;
for (var i=0;i<phx.rows.length;i++){
	for(var j=0;j<phx.rows[i].cells.length;j++){
phx.rows[i].cells[j].onmouseover=function(){
if(pObj!=this){
this.bgColor=overcolor;}}
phx.rows[i].cells[j].onmouseout=function(){
if(pObj!=this){
this.bgColor=outcolor;}}
phx.rows[i].cells[j].onclick=function(){
pObj=this;
init();
pObj.bgColor=clkcolor;}
	}
}
function init(){
for (var i=0;i<phx.rows.length;i++){
	for(var j=0;j<phx.rows[i].cells.length;j++){	
phx.rows[i].cells[j].bgColor=outcolor;
	}
}
}
init();
