function checnum(as)
{
	var dd = as.value;
	
	if(isNaN(dd))
	{
		dd = dd.substring(0,(dd.length-1));
		as.value = dd;
	}		
}

function calc()
{
	var a = document.first.aa.value;
	var b = document.first.bb.value;
	if(b<1100 || b>1200){
		alert("Sound travel should be between 1100 to 1200");
	}
	else{
	document.first.r1.value = Math.round((a/(5280/b))*100)/100;
	}
}
	
		


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;
}



