diff --git a/inc/inc.ClassUI.php b/inc/inc.ClassUI.php
index fe9d76283..890f39d5f 100644
--- a/inc/inc.ClassUI.php
+++ b/inc/inc.ClassUI.php
@@ -579,6 +579,10 @@ class UI {
var current = document.= $formName ?>.categoryid= $formName ?>;
openDlg = open("out.CategoryChooser.php?form=&cats="+current.value, "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
}
+ function clearCategory() {
+ document.= $formName ?>.categoryid= $formName ?>.value = '';
+ document.= $formName ?>.categoryname= $formName ?>.value = '';
+ }
";
print "";
+ print "
";
print " ";
} /* }}} */