function css(e,s){
if(!e.nodeType) for(var i = 0; i < e.length; i++) css(e[i],s);
else{
if(typeof(s) != 'object') return e.style[s];
for(var i in s) e.style[i] = s[i];
}
}
var el = document.getElementById('myElement');
css(el,{'width':'200px'});
alert(css(el,'width')); // 200px