Ah già, explorer...
<div id="idElementoQui" style="margin:3px;"></div>
Nello script poi mettti:
var foo=document.getElementById('idElementoQui');
var x=(window['getComputedStyle'])? getComputedStyle(foo,null).getPropertyValue('margi n-top'): foo.currentStyle['margin-top'];
alert(x);