Write a style to be modified and set the ID:
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head id = "head1" runat = "server">
<Title> ......... Revenue and Expenditure details </title>
<! --...... -->
<Style id = "D5" type = "text/CSS">
</Style>
<Head>
<Body>
<! --
......
-->
<Script language = "JavaScript" type = "text/JavaScript">
//......
If (document. getelementbyid ("keytype1"). Checked)
{
Vkeytype = 1;
Try
{
Document. getelementbyid ("D5" ).stylesheet.css text = ". D5 {color: Blue;}"; // supported by IE, not supported by FF
}
Catch (Ex)
{
Document. getelementbyid ("D5"). innerhtml = ". D5 {color: Blue;}"; // not supported by IE, and supported by FF
}
}
Else if (document. getelementbyid ("keytype2"). Checked)
{
Vkeytype = 2;
Try
{
Document. getelementbyid ("D5" ).stylesheet.css text = ". D5 {color: red ;}";
}
Catch (Ex)
{
Document. getelementbyid ("D5"). innerhtml = ". D5 {color: red ;}";
}
}
//......
</SCRIPT>
</Body>