function loadit(){
wors="0"
bes="9999999"
x=document.getElementsByTagName('input');
for(i=2; i<x.length; i++){
x[i].onclick=change}
for(i=1; i<(x.length-1)/2; i++){
aa=document.getElementById('t'+i).value
wors=Math.max(wors,aa)
bes=Math.min(bes,aa)
}
donebest="0"
for(i=1; i<(x.length-1)/2; i++){  //IF MORE "INPUTS" ARE ADDED THIS WILL HAVE TO BE CHANGED (AND ONE BELOW)
if(donebest=="0"){
c=document.getElementById('t'+i)
if(c.value==bes){donebest="1"; c.className="best";}
}}
doneworst="0"
for(i=1; i<x.length/2; i++){
if(doneworst=="0"){
c=document.getElementById('t'+i)
if(c.value==wors){doneworst="1"; c.className="worst";}
}}
}
function change(){
x=document.getElementsByTagName('input');
leng=eval((x.length-1)/2) //     THIS ALSO NEEDS TO BE CHANGED IF MORE "INPUT" ARE ADDED
if(document.times.t1.value!=document.times.h1.value){
for(i=1; i<leng; i++){

document.getElementById('t'+i).value=document.getElementById('h'+i).value
}}else{
for(i=1; i<leng; i++){
f=document.getElementById('t'+i).value
wpm=60/f*120/5
document.getElementById('t'+i).value=wpm
}}}
