Step "onLoad" event or wizard "onNavigate" event?

Hi,

I tried to navigate from one step to other by doing the following in javascript but it doesnt seem to be working. Any ideas?

 $(‘#MyWizard’).prototype.navigate( step2);

Thanks.

KR.