this.form = document.createElement("form"); this.form.id = this.options.formId; Element.addClassName(this.form, this.options.formClassName) this.form.onsubmit = this.onSubmit.bind(this);  
var ipe = this; function addText(mode, condition) { var text = ipe.options['text' + mode + 'Controls']; if (!text || condition === false) return; ipe._form.appendChild(document.createTextNode(text)); }; this._form = $(document.createElement('form')); this._form.id = this.options.formId; this._form.addClassName(this.options.formClassName); this._form.onsubmit = this._boundSubmitHandler; 
  createForm: function() {    this.form = document.createElement("form");    this.form.id = this.options.formId;    Element.addClassName(this.form, this.options.formClassName)    this.form.onsubmit = this.onSubmit.bind(this);    this.createEditField();    if (this.options.textarea) {      var br = document.createElement("br");      this.form.appendChild(br);    }        if (this.options.textBeforeControls)      this.form.appendChild(document.createTextNode(this.options.textBeforeControls));    if (this.options.okButton) {      var okButton = document.createElement("input");      okButton.type = "submit";      okButton.value = this.options.okText;      okButton.className = 'editor_ok_button';      this.form.appendChild(okButton);    }        if (this.options.okLink) {      var okLink = document.createElement("a");      okLink.href = "#";      okLink.appendChild(document.createTextNode(this.options.okText));      okLink.onclick = this.onSubmit.bind(this);      okLink.className = 'editor_ok_link';      this.form.appendChild(okLink);    }        if (this.options.textBetweenControls &&       (this.options.okLink || this.options.okButton) &&       (this.options.cancelLink || this.options.cancelButton))      this.form.appendChild(document.createTextNode(this.options.textBetweenControls));          if (this.options.cancelButton) {      var cancelButton = document.createElement("input");      cancelButton.type = "submit";      cancelButton.value = this.options.cancelText;      cancelButton.onclick = this.onclickCancel.bind(this);      cancelButton.className = 'editor_cancel_button';      this.form.appendChild(cancelButton);    }    if (this.options.cancelLink) {      var cancelLink = document.createElement("a");      cancelLink.href = "#";      cancelLink.appendChild(document.createTextNode(this.options.cancelText));      cancelLink.onclick = this.onclickCancel.bind(this);      cancelLink.className = 'editor_cancel editor_cancel_link';            this.form.appendChild(cancelLink);    }        if (this.options.textAfterControls)      this.form.appendChild(document.createTextNode(this.options.textAfterControls));  },
6462	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6462/0097375444aef03d8cdcdbe6705c1ea088b9b188/controls.js/clean/wp-includes/js/scriptaculous/controls.js