CSS stylesheet value is not modifying
<pre><code>function getStyle(Selector, Property, Value, StyleSheetIndex) {    
    var Selectors = document.styleSheets[StyleSheetIndex].rules;    
    for (var i = 0; i &lt; Selectors.length; i++) {
        if (Selectors[i].selectorText == Selector) {            
            alert(Value +  "     " + Property);
            Selectors[i].style[Property] = "url(" + Value + ")"; 
        }
    }
}
</code></pre>

<p>Where Selector = "body", Property="backgroundImage", value="/images/bg.jpg",StyleSheetIndex = 2,
but here the property value is not changing.Can anyone tell me why?</p>
