//Constants for messages - if the confirmation messages are changed, must also be changed in the string table

var CHOICE_LIST_ADDED_MSG="Choice list added.";
var CHOICE_LIST_RENAMED_MSG="Choice list renamed.";
var CHOICE_LIST_COPIED_MSG="Choice list copied.";
var CHOICE_LIST_DELETED_MSG="Choice list deleted.";

var VALUE_ADDED_MSG="Choice added.";
var VALUE_RENAMED_MSG="Choice renamed.";
var VALUE_DELETED_MSG="Choice deleted.";
var VALUE_MOVED_MSG="Choice moved.";

//Constants for the field captions

var FIELD_ID="ID";
var FIELD_CHOICE_ID="Choice ID";
var FIELD_NAME="Choice"; 
var FIELD_COLOR="Color";
var FIELD_TYPE="Type";

//Constants for the sections of the array
var HEADER_SECTION=0;
var FIELDS_SECTION=1;
var PROPERTIES_SECTION=2;

//Constants for columns in the table
var NID_COL=0;
var COID_COL=1;
var NAME_NOCO_COL=1;
var NAME_WCO_COL=2;
var COLOR_WCO_COL=3;
var TYPE_WCO_COL=4;

var BLN_TRUE = "-1";
var BLN_FALSE = "0";

var HTTP_REQ_CANCEL_PROCESS="-99999999";

//Window Names
var WIN_ADD_TABLE="addTable";
var WIN_RENAME_TABLE="renameTable";
var WIN_COPY_TABLE="copyTable";
var WIN_DELETE_TABLE="deleteTable";
var WIN_ADD_ROW="addRow";
var WIN_RENAME_ROW="renameRow";
var WIN_DELETE_ROW="deleteRow";
var WIN_IMPORT="importDlg";

var ADD_TABLE_INVALID_OPEN_WIN=Array(WIN_RENAME_TABLE,WIN_COPY_TABLE,WIN_DELETE_TABLE,WIN_ADD_ROW,WIN_RENAME_ROW,WIN_DELETE_ROW);
var RENAME_TABLE_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_COPY_TABLE,WIN_DELETE_TABLE,WIN_ADD_ROW,WIN_RENAME_ROW,WIN_DELETE_ROW);
var COPY_TABLE_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_RENAME_TABLE,WIN_DELETE_TABLE,WIN_ADD_ROW,WIN_RENAME_ROW,WIN_DELETE_ROW);
var DELETE_TABLE_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_RENAME_TABLE,WIN_COPY_TABLE,WIN_ADD_ROW,WIN_RENAME_ROW,WIN_DELETE_ROW);
var ADD_ROW_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_RENAME_TABLE,WIN_COPY_TABLE,WIN_DELETE_TABLE,WIN_RENAME_ROW,WIN_DELETE_ROW);
var RENAME_ROW_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_RENAME_TABLE,WIN_COPY_TABLE,WIN_DELETE_TABLE,WIN_ADD_ROW,WIN_DELETE_ROW);
var DELETE_ROW_INVALID_OPEN_WIN=Array(WIN_ADD_TABLE,WIN_RENAME_TABLE,WIN_COPY_TABLE,WIN_ADD_ROW,WIN_DELETE_TABLE,WIN_RENAME_ROW);

//Messages
var MSG_SELECT_PROJ="You must select a project.";
var MSG_SELECT_PROJ_CL="You must select a project and a choice list.";
var MSG_SELECT_PROJ_CL_CHOICE="You must select a project, a choice list and a choice.";
var MSG_CLOSE_OPEN_WINDOWS="Cannot open two dialog boxes at the same time.\nClose the open dialog box first.";
var MSG_CANT_DELETE_CL="You are unable to delete this choice list.";
var MSG_CANT_ADD_CHOICES="You are unable to add choices to this choice list.";
var MSG_CANT_RENAME_CHOICES="You are unable to rename choices in this choice list.";
var MSG_CANT_DELETE_CHOICES="You are unable to delete choices from this choice list.";
var MSG_CHOICE_FIRST_IN_LIST="This choice is already first in the list (choice ID = %1).";
var MSG_CHOICE_LAST_IN_LIST="This choice is already last in the list (choice ID = %1).";
var MSG_ENTER_CL_NAME="You must enter a choice list name.";
var MSG_CL_CONTAINS_INVALID_CHARS="The choice list name cannot contain these characters: . ! \" ' [ ] / \\ : * ? < > | ;";
var MSG_ENTER_CL_CAPTION="You must enter a choice list caption.";
var MSG_ENTER_CAPTION_FOR_CL="You must enter a caption for the choice list.";
var MSG_ENTER_CHOICE="You must enter a choice.";
var MSG_INVALID_COLOR="The color you entered is invalid.";

//tooltips
var TT_INCREASE_COID="Increase choice ID by one";
var TT_DECREASE_COID="Decrease choice ID by one";

