jS function to get the value from the style sheet. In IE, it is obtained by currentStyle and defaultView in firefox.
DOM.style can only read the style value written in html
Function to get the style value
function returnStyle(obj,styleName){var myObj = typeof obj =="string" ? document.getElementById(obj) : obj;if(document.all){return eval("myObj.currentStyle."+ styleName);} else {returneval("document.defaultView.getComputedStyle(myObj,null)." +styleName);}}