st = o.className;
o.className = (st.indexOf("on")>0)?st.replace("on","off"):st.rep lace("off","on");