-start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=" . $_POST['OutstandingOnly'] .SID);
+if ($_POST['order_view_mode']=='OutstandingOnly')
+{
+ $action .= "?OutstandingOnly=" . $_POST['order_view_mode']$_PO;
+}
+elseif ($_POST['order_view_mode']=='InvoiceTemplates')
+{
+ $action .= "?InvoiceTemplates=" . $_POST['InvoiceTemplates'];
+}
+elseif ($_POST['order_view_mode']=='DeliveryTemplates')
+{
+ $action .= "?DeliveryTemplates=" . $_POST['InvoiceTemplates'];
+}
+*/
+start_form(false, false, $_SERVER['PHP_SELF'] .SID);