/**
 * This file contains the text for displaying warning messages from
 * windowManagement_open, when an attempt is made to open a new form in 
 * an existing window which has an edit page.
 *
 * History:
 * 20-Dec-04 Roger Davies             Created
 * 06-Jan-05 Roger Davies             Added window name to title mapping
 */

// Window names, which should match with the values defined in
// com.oocl.frm.util.jsp.WindowNames
var WINDOW_SI = "SI";
var WINDOW_BKG = "BKG";
var WINDOW_USER_PROFILE = "UserProfile";
var WINDOW_INVOICE = "Invoice";
var WINDOW_PA_COMB_ERR = "pa_combination_error";
var WINDOW_INVOICE_PRINT_SW_CHECK = "PrintInvoicesSwCheck";
var WINDOW_INVOICE_PDF = "InvoicePDF"; 
var WINDOW_BLDOC_MANAGER = "bldocmgr";
var WINDOW_CARRIER_TEMPLATES = "carrtmpl";
var WINDOW_SERVICE_CONTRACT = "ServiceContract";
var WINDOW_SHPT_DETAILS = "ShipmentDetails";
var WINDOW_IU_TRADING_PARTNER = "IUTradingPartner";
var WINDOW_IU_FIND_PARKING_LOT = "IUFindParkingLot";
var WINDOW_IU_UPDATE_SHIPMENT = "IUUpdateShipment";
var WINDOW_RG_PR_TEMPLATE	=	"rg_pr_template";
var WINDOW_LOCATION_SEARCH	=	"loc_search";
var WINDOW_RG_AND_PR	=	"rg_and_pr";


// The array below should contain a window name/title mapping for
// each window named defined in com.oocl.frm.util.jsp.WindowNames. Each line
// contans one line for the window name, followed by the window title
var windowFormNames_windowTitleMapping = new Array(
  WINDOW_SI, "Shipping Instructions",
  WINDOW_BKG, "Booking",
  WINDOW_USER_PROFILE, "User & Company Profile",
  WINDOW_INVOICE, "Invoice & Payment",
  WINDOW_INVOICE_PRINT_SW_CHECK, "Invoice & Payment",
  WINDOW_PA_COMB_ERR, "Help",
  WINDOW_INVOICE_PDF, "Invoice & Payment",
  WINDOW_BLDOC_MANAGER, "B/L Document Manager",
  WINDOW_CARRIER_TEMPLATES, "Shared Templates",
  WINDOW_SERVICE_CONTRACT, "Service Contract",
  WINDOW_SHPT_DETAILS, "ShipmentDetails",
  WINDOW_IU_TRADING_PARTNER, "Integration Customer",
  WINDOW_IU_FIND_PARKING_LOT, "EDI Parking Lot",
  WINDOW_IU_UPDATE_SHIPMENT, "Update Shipment by Party Code",
  WINDOW_RG_PR_TEMPLATE, "Add Performance report template",
  WINDOW_RG_AND_PR, "Routing Guide & Performance Report"
);

// The array below should contain a window name/form name mapping to a warning
// message, to be used in the warning window. Each line contains
// one window/form mapping as follows:
// window name, form name, warning message
var windowFormNames_windowFormMapping = new Array(

  // SI window - Start
  WINDOW_SI , "add_to_favorite", "Add to Favorite",
  WINDOW_SI , "si_draft_open", "View Draft",
  WINDOW_SI , "si_draft_del", "Delete Draft",
  WINDOW_SI , "si_draft_del_confirm", "Delete Draft",
  WINDOW_SI , "si_draft_list", "Manage Drafts",
  WINDOW_SI , "si_draft_save", "Save Draft",
  WINDOW_SI , "si_capture", "Create SI",
  WINDOW_SI , "si_amend", "Amend SI",
  WINDOW_SI , "si_create_template", "Create Template",  
  WINDOW_SI , "si_edit_template", "Edit Template",    
  WINDOW_SI , "si_capture_smart_check", "Smart Check",
  WINDOW_SI , "si_find", "Previously Submitted",
  WINDOW_SI , "si_find_party_forwarder", "Find Forwarder",
  WINDOW_SI , "si_find_party_shipper", "Find Shipper",  
  WINDOW_SI , "si_find_party_consignee", "Find Consignee",  
  WINDOW_SI , "si_marks_no_add", "Create Marks and Numbers",
  WINDOW_SI , "si_marks_no_edit", "Edit Marks and Numbers",
  WINDOW_SI , "si_marks_no_list", "Manage Marks and Numbers",
  WINDOW_SI , "si_marks_no_save", "Save Marks and Numbers",    
  WINDOW_SI , "cgo_desc_add", "Create Cargo Descriptions",
  WINDOW_SI , "cgo_desc_edit", "Edit Cargo Descriptions",  
  WINDOW_SI , "cgo_desc_list", "Manage Cargo Descriptions",
  WINDOW_SI , "cgo_desc_save", "Save Cargo Descriptions",
  WINDOW_SI , "si_missing_draft", "Draft Deleted",
  WINDOW_SI , "si_preview", "Preview",
  WINDOW_SI , "si_request_receipt", "Receipt",
  WINDOW_SI , "si_review_summary", "Summary",
  WINDOW_SI , "si_email_confirm", "Receipt",
  WINDOW_SI , "si_select_from_bkg", "Shipping Instructions",
  WINDOW_SI , "si_show_status", "Status",
  WINDOW_SI , "si_step2", "Shipping Instructions",
  WINDOW_SI , "si_templ_del", "Delete Template",
  WINDOW_SI , "si_templ_del_confirm", "Delete Template",
  WINDOW_SI , "si_templ_list", "Manage Templates",
  WINDOW_SI , "si_templ_save", "Save Template",
  WINDOW_SI , "si_view_shmt_reefer", "Shipping Instructions",
  WINDOW_SI , "si_view_submitted", "Previously Submitted",
  WINDOW_SI , "si_view_si", "View - CargoSmart SI",
  WINDOW_SI , "si_view_template", "View Template", 
  WINDOW_SI , "si_pick_list_select_seal", "Select Seal Type",     
  // SI window - End  


  WINDOW_CARRIER_TEMPLATES, "si_capture", "Shipping Instructions Template",


  // Booking window - Start
  // Booking window - End

  // User profile window - Start
  WINDOW_USER_PROFILE, "userProfile", "My Profile",
  // User profile window - End

  // Invoice window - Start
  WINDOW_INVOICE, "Search Invoices", "Search Invoices",
  WINDOW_INVOICE, "Invoice Details", "Invoice Details",
  WINDOW_INVOICE, "Request Change", "Request Change",
  WINDOW_INVOICE, "Request Change Finish", "Request Change Finish",
  WINDOW_INVOICE, "Request Reprint", "Request Reprint",
  WINDOW_INVOICE, "Request Reprint Finish", "Request Reprint Finish",
  WINDOW_INVOICE, "Payment Instructions", "Payment Instructions",
  WINDOW_INVOICE, "Invoice Batch Print", "Invoice Printing Batch Print Summary",
  WINDOW_INVOICE, "Print Signup", "Print Signup",  
  WINDOW_INVOICE, "frm_pa_batch_print_validation", "Invoice Print",
  WINDOW_INVOICE, "frm_fi_cust_find_inv", "Invoice Print",
  WINDOW_INVOICE, "frm_fi_cust_inv_details", "Invoice Print",  
  WINDOW_INVOICE, "Online Payment", "Online Payment",
  WINDOW_INVOICE_PRINT_SW_CHECK, "Invoice SW Check", "Invoice SW Check", 
  WINDOW_INVOICE_PDF, "Invoice Print Error", "Invoice Print Error",
  
  WINDOW_PA_COMB_ERR, "Help", "Help",
  
  // Invoice window - End

  // BL document manager window - Start
  WINDOW_BLDOC_MANAGER, "frm_bl_proc", "B/L Processing",  
  WINDOW_BLDOC_MANAGER, "frm_bl_orderform", "Create Carrier Stationery Order",
  WINDOW_BLDOC_MANAGER, "frm_bl_orderform_warning", "Create Carrier Stationery Order",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegate_setting", "Delegation Settings For Associates",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegate_setting_audit", "Delegation Settings For Associates",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegate_setting_view", "Delegation Settings By Associates",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegation_exception", "Delegation Settings Exception",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegation_exception_manage", "Delegation Settings For Associates",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegation_exception_audit", "Delegation Settings For Associates",
  WINDOW_BLDOC_MANAGER, "frm_bl_delegation_exception_view", "Delegation Settings By Associates",  
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_req_chge", "Request Change",
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_req_reprnt", "Request Reprint",
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_req_addprnt", "Request Additional Prints",
  WINDOW_BLDOC_MANAGER, "frm_bl_printlog", "History Log",
  WINDOW_BLDOC_MANAGER, "frm_bl_request_signup", "Request B/L Printing",
  WINDOW_BLDOC_MANAGER, "frm_bl_request_chgprt", "Request Print Type Change",  
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_batchprint_summary", "Print Summary",
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_delegate", "Delegate B/L",
  WINDOW_BLDOC_MANAGER, "frm_bl_proc_revoke", "Revoke B/L",
  WINDOW_BLDOC_MANAGER, "frm_disclaimer", "Disclaimer",
  WINDOW_BLDOC_MANAGER, "frm_terms", "Internet Bill Of Lading Agreement",
  WINDOW_BLDOC_MANAGER, "frm_bl_print", "Print",
  WINDOW_BLDOC_MANAGER, "frm_bl_view", "View",
  // BL document manager window - End
  WINDOW_LOCATION_SEARCH,"frm_perf_templ_loc_search","OK",



  // Service Contract window - Start
  WINDOW_SERVICE_CONTRACT, "pl_find_ess_term_tariff_rule", "Service Contract (5ET and Rules)",  
  // Service Contract window - End

  // Shipment Detail window - Start
  WINDOW_SHPT_DETAILS, "frm_shpt_dtls", "ShipmentDetails",
  // Shipment Detail window - End
  // Internal User Trading Partner window - Start
  WINDOW_IU_TRADING_PARTNER, "frm_iu_manage_trdng_ptnr", "View",
  WINDOW_IU_TRADING_PARTNER, "frm_iu_manage_trdng_ptnr_add", "Add",
  WINDOW_IU_TRADING_PARTNER, "frm_iu_manage_trdng_ptnr_edit", "Edit",  
  WINDOW_IU_TRADING_PARTNER, "frm_iu_find_trdng_ptnr", "Search Customer",
  // Internal User Trading Partner window - End
  
  // This must be the last item in this array - it is the message to display
  // if the window/form is not found
  "", "", "[Unknown window/form mapping in WindowFormNames.js]"

  // Do not add anything below this line
  
);
