Did you try onClick instead? (Notice the capital C).
If it still does not work it could be since your button has runat="server" it will do a postback when you click it. Either use
onClick="changeStyle();return false"
to prevent resubmit or do not use runat="server".