var LOG_CONN_BLOCK_SEPARATOR="&|&";
var LOG_CONN_SECTION_SEPARATOR="*|*";
var LOG_CONN_SEPARATOR="%|%";
var TABLE_ROW_SEPARATOR = "$|$";
var ITEM_DELIMITER=";";
var APPLET_SEP = String.fromCharCode(160);

var UI_ELEMENT_ARRAY_ID=0;
var UI_ELEMENT_ARRAY_NAME=1;
var UI_ELEMENT_ARRAY_CAPTION=2;
var UI_ELEMENT_ARRAY_SETTING_TYPE=3;
var UI_ELEMENT_ARRAY_ATTRIB_NAME=4;
var UI_ELEMENT_ARRAY_DIVNAME=5;
var UI_ELEMENT_ARRAY_PARAMETER=6;

var TAB_NAME=0;
var TAB_SOURCE=1;

var CHOICE_VALUE_ID=0;
var CHOICE_VALUE_NAME=1;

var CONDITION_TYPE="Condition";
var PARAM1_TYPE="Param1";
var PARAM2_TYPE="Param2";

var FIELD_COMBO="Field";
var TEST_COMBO="Test";
var VALUE_COMBO="Value";
var ANDOR_COMBO="AndOr";

var MNU_NEW_GROUP="New Template";
var MNU_RENAME_GROUP="Rename Template";
var MNU_COPY_GROUP="Copy Template";
var MNU_REMOVE_GROUP="Remove Template";
var MNU_GROUP_PROPERTIES="Template Properties";

var MNU_NEW_RULE="New Rule";
var MNU_RENAME_RULE="Rename Rule";
var MNU_COPY_RULE="Copy Rule";
var MNU_REMOVE_RULE="Remove Rule";

var MNU_NEW_GROUP_ID=0;
var MNU_RENAME_GROUP_ID=1;
var MNU_COPY_GROUP_ID=2;
var MNU_REMOVE_GROUP_ID=3;
var MNU_GROUP_PROPERTIES_ID=4;
var MNU_NEW_RULE_ID=6;
var MNU_RENAME_RULE_ID=7;
var MNU_COPY_RULE_ID=8;
var MNU_REMOVE_RULE_ID=9;

var MSG_GROUP_ADDED="Template added.";
var MSG_GROUP_RENAMED="Template renamed.";
var MSG_GROUP_COPIED="Template copied.";
var MSG_GROUP_REMOVED="Template removed.";

var MSG_RULE_ADDED="Rule added.";
var MSG_RULE_RENAMED="Rule renamed.";
var MSG_RULE_COPIED="Rule copied.";
var MSG_RULE_REMOVED="Rule removed.";

var TYPE_BEING_EDITED=0;
var TYPE_CHANGED=1;

var RULE_INFO_ID=0;
var RULE_INFO_CAPTION=1;
var RULE_INFO_LOCK=2;
var RULE_INFO_TYPE=3;
var RULE_INFO_TYPE_ID=4;
var RULE_INFO_STATE=5;
var RULE_INFO_TRIGGER=6;

var RULE_COL_CAPTION=0;

var COND_INFO_ID=0;
var COND_INFO_FIELD_ID=1;

var COND_COL_ID=0;
var COND_COL_FIELD=1;
var COND_COL_TEST=2;
var COND_COL_VALUE=3;
var COND_COL_ANDOR=4;

var COND_COL_FIELD_ID=0;

var POSS_VALS_INFO_ID=0;
var POSS_VALS_INFO_FIELD_ID=1;
var POSS_VALS_INFO_FIELD=2;
var POSS_VALS_INFO_VALUE=3;
var POSS_VALS_INFO_VALUE_ID=4;
var POSS_VALS_INFO_FIELD_DT=5;

var POSS_VALS_COL_FIELD_ID=0;
var POSS_VALS_COL_FIELD=1;
var POSS_VALS_COL_VALUE=2;

var CEN_SINGLE_CHOICE=103;
var CEN_MULTI_CHOICE=104;

var COND_PARAM2_ID=0;
var COND_PARAM2_FIELD=1;
var COND_PARAM2_VALUE=2;

var SAVED_MSG="Saved";

var BG_ENABLED = "#FFFFFF";
var BG_DISABLED = "#CCCCCC";

var ARRAY_ELEMENTS_PER_RULE=3;

var APPLET_ACTIONS = "appActions";
var APPLET_RULES = "Groups";
var APPLET_CONDITIONS = "Conditions";

var RESULT_TRUE = "-1";
var RESULT_FALSE = "0";

var ACTION_TYPE_POSS_VAL=0;
var ACTION_TYPE_SET_VAL=1;
var ACTION_TYPE_HIDDEN_FLDS=2;
var ACTION_TYPE_REQ_FLDS=3;
var ACTION_TYPE_HIDDEN_TABS=4;
var ACTION_TYPE_DISABLED_FLDS=5;
var ACTION_TYPE_DISABLED_TICKET=6;

var MACRO_NULL="<Empty>";
var MACRO_NOT_NULL="<Not Empty>";
var MACRO_ANY="<Any>";
var TAG_VAL_OF_FLD="ValOfField";
var MACRO_VAL_OF_FLD="<" + TAG_VAL_OF_FLD + ">";
var FIXED_COND_VALUES=MACRO_NULL + LOG_CONN_SEPARATOR + MACRO_NULL + LOG_CONN_SECTION_SEPARATOR +
					MACRO_NOT_NULL + LOG_CONN_SEPARATOR + MACRO_NOT_NULL + LOG_CONN_SECTION_SEPARATOR +
					MACRO_ANY + LOG_CONN_SEPARATOR + MACRO_ANY;
var MACRO_VAL_OF_FLD_DISPLAY_TEMPLATE="<Value of Field %1>";
var MACRO_FLD_NONE_SELECTED="???";

var STATE_DISABLED = 0;
var STATE_ENABLED = 1;
var STATE_NOT_INITIALIZED = -1;

var TRIGGER_ON_RECORD_LOAD = 0;
var TRIGGER_ON_FIELD_CHANGE = 1;

var HTTP_REQ_CANCEL_PROCESS="-99999999";
					
//Window Names
var WIN_ADD_GROUP="addGroup";
var WIN_RENAME_GROUP="renameGroup";
var WIN_COPY_GROUP="copyGroup";
var WIN_REMOVE_GROUP="removeGroup";
var WIN_GROUP_PROP="GroupProperties";
var WIN_RENAME_RULE="renameRule";
var WIN_COPY_RULE="copyRule";
var WIN_REMOVE_RULE="removeRule";

var ADD_GROUP_INVALID_OPEN_WIN=Array(WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_RENAME_RULE,WIN_COPY_RULE,WIN_REMOVE_RULE);
var RENAME_GROUP_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_RENAME_RULE,WIN_COPY_RULE,WIN_REMOVE_RULE);
var COPY_GROUP_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_RENAME_RULE,WIN_COPY_RULE,WIN_REMOVE_RULE);
var REMOVE_GROUP_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_GROUP_PROP,WIN_RENAME_RULE,WIN_COPY_RULE,WIN_REMOVE_RULE);
var GROUP_PROP_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_RENAME_RULE,WIN_COPY_RULE,WIN_REMOVE_RULE);
var RENAME_RULE_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_COPY_RULE,WIN_REMOVE_RULE);
var COPY_RULE_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_RENAME_RULE,WIN_REMOVE_RULE);
var REMOVE_RULE_INVALID_OPEN_WIN=Array(WIN_ADD_GROUP,WIN_RENAME_GROUP,WIN_COPY_GROUP,WIN_REMOVE_GROUP,WIN_GROUP_PROP,WIN_COPY_RULE,WIN_RENAME_RULE);

//Messages
var MSG_WORKFLOW_APPLIED = "Changes to workflow were successfully applied.";
var MSG_WORKFLOW_NOT_APPLIED = "There were some errors in the process. Please contact the system administrator.";
var MSG_NO_SELECTED_PROJECT = "Please select a project to add a template to.";
var MSG_NO_SELECTED_GROUP = "Please select a template from the list.";
var MSG_CLOSE_OPEN_WINDOWS="Cannot open two dialog boxes at the same time.\nClose the open dialog box first.";
var MSG_ENABLE_GROUP = "Enable this template for all Web views of project %1?";
var MSG_DISABLE_GROUP = "Disable this template for all Web views of project %1?";
var NO_RULES_ROW = "--no rules--";
var MSG_CANT_CHANGE_RULE_FIELD_VALUE="You cannot change the field value for a rule.";
var MSG_SELECT_ROW_TO_REMOVE="Select a row to remove.";
var MSG_NO_ROWS_TO_REMOVE="There are no rows to remove.";
var MSG_ENTER_GROUP_NAME="Enter a template name.";
var MSG_SELECT_PARAMETER="Select at least one available parameter.";
var MSG_ENTER_RULE_NAME="Enter a rule name.";
var MSG_SELECT_COPY_TYPE="Select a type of copy.";
var MSG_SELECT_GROUP_TO_RENAME="You must select a template to rename.";
var MSG_SELECT_GROUP_TO_COPY="You must select a template to copy.";
var MSG_SELECT_GROUP_TO_REMOVE="You must select a template to remove.";
var MSG_SELECT_GROUP_SEE_PROPERTIES="You must select a template to see its properties.";
var MSG_SELECT_GROUP_ADD_RULE="You must select a template to add a rule to.";
var MSG_SELECT_RULE_TO_RENAME="You must select a rule to rename.";
var MSG_SELECT_RULE_TO_COPY="You must select a rule to copy.";
var MSG_SELECT_RULE_TO_REMOVE="You must select a rule to remove.";
var MSG_APPLY_RULES_TO_ALL_VIEWS="Do you want to apply all the enabled templates to all Web views based on project %1?";