function Form(idform, param) {
this.param = param;
this.idform = idform;
this.run = function () {
html = "<input onclick='form.send()' type='button' value='Отправить'/>";
$('#' + idform).html(html);
};
this.send = function () {
alert(212);
};
}
var form = new Form('form', list);
form.run();