function chanageButtonStyle(obj, className) { obj.className = className; } onMouseOut="chanageButtonStyle(this, 'btn1');" onMouseOver="chanageButtonStyle(this, 'btn1_over');"