+function get_company_prefs()
+{
+ return get_company_pref(null);
+}
+
+function set_company_pref($pref, $category, $type, $length, $value)
+{
+ $sql = "REPLACE `".TB_PREF."sys_prefs` SET `name`=".db_escape($pref).", `category`=".db_escape($category)
+ .", `type`=".db_escape($type).", `length`=".db_escape($length).", `value`=".db_escape($value);
+ return db_query($sql, "cannot set company pref");
+}
+
+function refresh_sys_prefs()