function round(number,X) {
	X = (!X ? 2 : X);
	return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}
function conversion(input) {
	var degre=input.value*1;
	var type=input.name;	
	if (type == "ce") {
		C=degre;
		F=round(((9/5)*C)+32);
		K=round((degre+273.15));
	} else if (type == "fa") {
		F=degre;
		C=round((F-32)*(5/9));
		K=round(C+273.15);
	} else if (type == "ke") {
		K=degre;
		C=round(K-273.15);
		F=round(((9/5)*C)+32);
	} 
	if (type != "ce") { document.temp.ce.value=C; }
	if (type != "fa") { document.temp.fa.value=F; }
	if (type != "ke") { document.temp.ke.value=K; }
}