include_once($path_to_root . "/inventory/includes/inventory_db.inc");
$js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
$js .= get_js_open_window(900, 500);
page(_($help_context = "Inventory Item Cost Update"), false, false, "", $js);