Create getStyle

function getStyle(obj,value){
    
     //return obj.currentStyle[value]||getComputedStyle(obj,null)[value];
     //return getComputedStyle(obj,null)[value]||obj.currentStyle[value];

    var currentStyle = obj.currentStyle || getComputedStyle(obj,null);
    return currentStyle[value];
     }