function getBkImage(obj) {
var img =(obj.currentStyle) ? obj.currentStyle.backgroundImage : getComputedStyle(obj,'').getPropertyValue('background-image');
return img;
}
function getVisibility(obj) {
var str =(obj.currentStyle) ? obj.currentStyle.visibility : getComputedStyle(obj,'').getPropertyValue('visibility');
return str;
}
function getbkColor(obj) {
var str =(obj.currentStyle) ? obj.currentStyle.backgroundColor : getComputedStyle(obj,'').getPropertyValue('background-color');
return str;
}
function getbkColor(obj) {
var str =(obj.currentStyle) ? obj.currentStyle.width : getComputedStyle(obj,'').getPropertyValue('width');
return str;
}
function getbkColor(obj) {
var str =(obj.currentStyle) ? obj.currentStyle.zIndex : getComputedStyle(obj,'').getPropertyValue('z-index');
return str;
}
function getstyle(elem, prop) {
if(document.defaultView) {
return document.defaultView.getComputedStyle(elem, null).getPropertyValue(prop);
}
else if(elem.currentStyle) {
var prop = prop.replace(/-(\w)/gi, function($0,$1) {
return $1.toUpperCase();
});
return elem.currentStyle[prop];
}
else return null;
}