function checnum(as)
{
	var a = as.value;
}

function cent()
{
	var x1 = document.first.x1.value;
	var y1 = document.first.y1.value;
	var x2 = document.first.x2.value;
	var y2 = document.first.y2.value;
	var x3 = document.first.x3.value;
	var y3 = document.first.y3.value;
	var aa = parseInt(x1) + parseInt(x2) + parseInt(x3);
	var bb = parseInt(y1) + parseInt(y2) + parseInt(y3);
	if(Math.round(aa/3) == (aa/3))
	{
		var xx = aa/3;
	}
	else{
		var xx = aa + "/" + 3;
	}
	if(Math.round(bb/3) == (bb/3))
	{
		var yy = bb/3;
	}
	else{
		var yy = bb + "/" + 3;
	}
		
	document.first.r1.value = xx + " , " + yy;
}
	
function color(test)
{

	for(var j=2; j<10; j++)
	{
		var myI=document.getElementsByTagName("input").item(j);
		//myI.setAttribute("style",ch);
		myI.style.backgroundColor=test;
	}
}

function color1(test)
{
var myI=document.getElementsByTagName("table").item(0);
//myI.setAttribute("style",ch);
myI.style.backgroundColor=test;
}

