Need to know! OnClick Wove Up Function

Hi! im using a text widget in my tmeplate. But I want to add a Vote for this post button, but I want ot use a custum button my template has, so I nee to know the OnClick Java functionnality, (onclick function) that callas and generates a vote up! :slight_smile: Thanks so much!
(as well as Vote down) Thanks!