-if (isset($_GET['selected_customer']))
-{
- $selected_customer = $_GET['selected_customer'];
-}
-elseif (isset($_POST['selected_customer']))
-{
- $selected_customer = $_POST['selected_customer'];
-}
-else
- $selected_customer = -1;
-
-//---------------------------------------------------------------------------------------------
-
-if (isset($_POST['SelectStockFromList']) && ($_POST['SelectStockFromList'] != "") &&
- ($_POST['SelectStockFromList'] != ALL_TEXT))
-{
- $selected_stock_item = $_POST['SelectStockFromList'];
-}
-else
-{
- unset($selected_stock_item);
-}
+$js = "";
+if ($SysPrefs->use_popup_windows)
+ $js .= get_js_open_window(900, 600);
+if (user_use_date_picker())
+ $js .= get_js_date_picker();
+page($_SESSION['page_title'], false, false, "", $js);