Собственно вот два отрывка, что связанны с этим всем процессом.
<a class="new_links" ondblclick="dblClick(0)" onclick="checkClick(404244,30,0,1,30,1);" href="javascript:void(0)">Добавить <i>'название поля'</i></a>
вторая кнопка
<input type="submit" onclick="return clickCreateButton();" value="Создать">
var timerID;
function checkClick(id_parent, id_link, id_target, direction, id_link_refresh, direction_refresh, loc) {
timerID = setTimeout("oneClick(" + id_parent + "," + id_link + "," + id_target + "," + direction + "," + id_link_refresh + "," + direction_refresh + ", " + loc + ")", 800);
}
function clickCreateButton()
{
var form = $('#object_html_form');
form.append($('<INPUT type=hidden name=create_button value=\"Создать\">'));
document.forms['object_form'].submit();
return false;
location.reload();
}