btn = new Element("input", { type: "image", src: imgsrc, alt: "X"}).setStyle(style);
elt.insert({top: btn});
btn.observe("click", function(evt) {
+ evt.stop();
+ if (typeof options.callback === "function") {
+ options.callback.call(elt);
+ }
elt.hide();
});
}
});
},
- focus: function(form) {
+ setfocus: function(form) {
var tofocus, error;
tofocus = null;