Formula to Javascript

Hello all,

I currently have this formula, which runs in a button on the Web:

@SetField(“helpSave”;“Yes”);

@Command([FileSave]);

@SetField(“helpSave”;“”);

@Command( [RefreshWindow] );

@Command([FileSave]);

@Command([EditDocument]);

@Command([ToolsRunMacro]; “(SendDocument)”)

On button (which is picture) in form for Web, I can’t use formula.

I need to do exactly the same thing, but using JS.

Thanks in advance