Form onButtoncClick triggers twice

I’m from Cuba, so my english is not so good.

I’m trying call some function when I click the ‘save’ button of my form, but it does it twice. Here is my code. Please help me.

[code]myForm.attachEvent(“onButtonClick”, function (id)
if (id == ‘save’)

function savePageContent()

SORRY, my mistake, I was calling twice the attachEvent funtion :blush: