// JavaScript Document
 
function celsiustemperature(){
	with (document.temp){
		fah.value = roundit(cel.value*1.8*1 + 32);
		kel.value = roundit(cel.value*1 + 273.16);
	}
}
function fahrenheittemperature(){
	with (document.temp){
		cel.value = roundit((fah.value*1 - 32)/1.8);
		kel.value = roundit(((fah.value*1 - 32)/1.8)*1 + 273.16);
	}
}
function kelvintemperature(){
	with (document.temp){
		cel.value = roundit(kel.value*1 - 273.16);
		fah.value = roundit((kel.value - 273.16)*1.8+ 32);
	}
}