i tried this and i get an error that it can't find length or something ...... the functions that change 'the colours in the first place are in the header of the main document.At runtime i pass a temporary value to it so that it displays the color i need .(these are the functions :
function ColorCode(tmpval){
var tmp;
var idx = parseInt(tmpval);
switch (idx) {
case 1 : tmp = "#cccc66"; break;
case 2 : tmp = "#cc66ff"; break;
case 3 : tmp = "#6666ff"; break;
case 4 : tmp = "#00ffff"; break;
case 5 : tmp = "#ff6633"; break;
default : tmp = "#coe1ff"; //"white";
}
return tmp;
}
function display(tmpval){
var str = tmpval.toString().substring(0,3);
var val = Score(eval("document.forms[0]." + tmpval));
eval(str +"2"

.innerText = val;
eval("document.all."+str+"6"

.bgColor = ColorCode(val); //paints the score cell with color corresponding to the selected value
}
else{
//displays the value in a cell e.g s312
eval("document.all."+str+"7"

.bgColor = ColorCode(val); //paints the score cell with color corresponding to the selected value
}
})
hope it makes a bit of sense...
at runtime i then call function directly on each field on the OnClick event .
e.g display(tmpval) = display (s311)
but when i refresh the form or call it up again , i see the checked radio button but i dont see the colours or values anymore....
any ideas's , please help....(femi mind ur own $£"
