input; $assoc = JLanguageAssociations::isEnabled(); JFactory::getDocument()->addScriptDeclaration(' Joomla.submitbutton = function(task) { if (task == "contact.cancel" || document.formvalidator.isValid(document.getElementById("contact-form"))) { ' . $this->form->getField('misc')->save() . ' if (window.opener && (task == "contact.save" || task == "contact.cancel")) { window.opener.document.closeEditWindow = self; window.opener.setTimeout("window.document.closeEditWindow.close()", 1000); } Joomla.submitform(task, document.getElementById("contact-form")); } }; '); ?>