// temperature.js Define the Temperature cell on the form
//<!-- ++++++++++++++++++++++++++++++++++++++++++++ -->
			document.write(//bgcolor=paleTurquoise
"<td align=center colspan=99 class=screen  ><small>"+
"conditions updated at  " +onat+ "</small> 					");
			document.write(
"<tr><td valign=top align=center><span style=color:blue;>temperature</span><br>  "+
"<INPUT type=text size=2 id=temper name=temper"+
"        onChange=' if( !chkTemperature(this.value) ){ this.focus();this.select(); return false;}; ' >  " );
document.loger.temper.value=temperature;  // i.e. doesn't like using an ID, perfers a name

function chkTemperature(v){ 
var temperature;
temperature = parseInt(v);    
// still need to check to embedded non numeric since ParseInt terminates successfully on stuff like  1,4  or 1m4
if ( isNaN(temperature )  ) {alert("That   is Not a Number");return false; }
if (temperature > 100 ) {alert("> 100, I don't think so");return false; }
if (temperature <-20  ) {alert("< -20, I don't think so");return false; }
return ( v); //    Math.round(v/5)*5  ); }
}
