refactoring

1) refactoring code;
2) add comments to code;
3) fix bug on when call showForm() function in onclose event;
4) added warning alert() when function .customSubmit() wad already
installed for the same form.