QUOTE(pandy @ Jun 22 2009, 12:19 AM)

JS can't access the server's file system.
It should be possible with AJAX, but does the OP really want to rewrite his style sheets permanently, or just change colors temporarily in that browser window? The former sounds like a style switcher script. For the latter you might use the JS replace() method on the contents of an embedded (haven't tried external) style sheet, but browser support is shaky:
CODE
<script type="text/javascript">
function change_color(hex_value)
{
try // FF and Opera
{
x=document.getElementsByTagName('style')[0];
var css=x.innerHTML;
css=css.replace(/#ff3300/gi, hex_value);
x.innerHTML=css;
}
catch(err)
{
try // Safari (and Chrome?)
{
var x=document.getElementsByTagName('style')[0];
var css=x.firstChild.nodeValue;
css=css.replace(/#ff3300/gi, hex_value);
x.firstChild.nodeValue=css;
}
catch(err) // MSIE
{
var x=document.styleSheets[0];
var css=x.cssText;
css=css.replace(/#ff3300/gi, hex_value);
x.cssText=css;
}
}
}
</script>
<img src="dog.jpg" alt="Lime" onclick="change_color('#00ff00');">
<img src="dog.jpg" alt="Red" onclick="change_color('#3300ff');">
(the above affects only the first embedded stylesheet on the page).
Another simpler idea is to change the JS "style" property, but then the element's style must initially have been set set with javascript too. To find the element's style as set in a stylesheet is more tricky, see
http://www.quirksmode.org/dom/getstyles.html