ok thanks
what about this ?
How can I use a variable here?
...........................
var anycolor;
anycolor="red";
document.getElementById("mydiv").style.color=anycolor;
...................................................