<script type="text/javascript">
vB_AJAX_TagEditor.prototype.display = function(B) {
if (B.responseXML) {
var A = B.responseXML.getElementsByTagName("error");
if (A.length) {
alert(A[0].firstChild.nodeValue)
} else {
if (!this.divobj) {
this.divobj = document.createElement("div");
this.divobj.id = this.divname;
this.divobj.style.display = "none";
this.divobj.style.width = "300px";
this.divobj.style.background = "[COLOR=#ff0000]red[/COLOR]";
this.divobj.style.border = "1px solid #000000";
this.divobj.style.padding = "10px";
document.body.appendChild(this.divobj);
this.vbmenu = vbmenu_register(this.vbmenuname, true);
YAHOO.util.Dom.get(this.vbmenu.controlkey).onmouseover = "";
YAHOO.util.Dom.get(this.vbmenu.controlkey).onclick = ""
}
this.divobj.innerHTML = B.responseXML.getElementsByTagName("tagpopup")[0].firstChild.nodeValue;
YAHOO.util.Event.on(this.edit_submit, "click", this.submit_tag_edit, this, true);
YAHOO.util.Event.on(this.edit_cancel, "click", this.cancel_tag_edit, this, true);
YAHOO.util.Event.on(this.divobj, "keydown", this.tagmenu_keypress);
if (YAHOO.util.Dom.get("tag_add_wrapper_menu") && YAHOO.util.Dom.get(this.edit_input)) {
tag_add_comp = new vB_AJAX_TagSuggest("tag_add_comp", this.edit_input, "tag_add_wrapper");
tag_add_comp.allow_multiple = true;
var C = B.responseXML.getElementsByTagName("delimiters")[0];
if (C && C.firstChild) {
tag_add_comp.set_delimiters(C.firstChild.nodeValue)
}
}
this.vbmenu.show(YAHOO.util.Dom.get(this.vbmenuname));
YAHOO.util.Dom.get(this.edit_input).focus();
YAHOO.util.Dom.get(this.edit_input).focus()
}
}
};
</script>