function setOpacity(obj, opacity) {
try { obj.style.filters.alpha.opacity = opacity; } catch (ex) { }
try { obj.style.filter = "alpha(opacity=" + opacity + ")"; } catch (ex) { }
try { obj.style.opacity = (opacity / 100); } catch (ex) { }
try { obj.style.MozOpacity = (opacity / 100); } catch (ex) { }
try { bj.style.KhtmlOpacity = (opacity / 100); } catch (ex) { }
}