Type.registerNamespace("Mscrm");Mscrm.DynamicMenuReturnValue=function(){};Mscrm.$create_DynamicMenuReturnValue=function(){return new Mscrm.DynamicMenuReturnValue};Mscrm.EntityReference=function(){};Mscrm.$create_EntityReference=function(){return new Mscrm.EntityReference};Mscrm.Message=function(){};Mscrm.$create_Message=function(){return new Mscrm.Message};Mscrm.ReportMenuReturnInformation=function(){};Mscrm.$create_ReportMenuReturnInformation=function(){return new Mscrm.ReportMenuReturnInformation};Mscrm.ReportInformation=function(){};Mscrm.$create_ReportInformation=function(){return new Mscrm.ReportInformation};Mscrm.ClientTabInfo=function(){};Mscrm.$create_ClientTabInfo=function(){return new Mscrm.ClientTabInfo};Mscrm.RibbonDataInformation=function(){};Mscrm.$create_RibbonDataInformation=function(){return new Mscrm.RibbonDataInformation};Mscrm.RibbonDataTabInformation=function(){};Mscrm.$create_RibbonDataTabInformation=function(){return new Mscrm.RibbonDataTabInformation};Mscrm.RuleDefinition=function(){};Mscrm.$create_RuleDefinition=function(){return new Mscrm.RuleDefinition};Mscrm.RulePart=function(){};Mscrm.$create_RulePart=function(){return new Mscrm.RulePart};Mscrm.OrBlockRulePart=function(){};Mscrm.$create_OrBlockRulePart=function(){return new Mscrm.OrBlockRulePart};Mscrm.OrGroup=function(){};Mscrm.$create_OrGroup=function(){return new Mscrm.OrGroup};Mscrm.EntityRulePart=function(){};Mscrm.$create_EntityRulePart=function(){return new Mscrm.EntityRulePart};Mscrm.EntityPropertyRulePart=function(){};Mscrm.$create_EntityPropertyRulePart=function(){return new Mscrm.EntityPropertyRulePart};Mscrm.FormEntityContextRulePart=function(){};Mscrm.$create_FormEntityContextRulePart=function(){return new Mscrm.FormEntityContextRulePart};Mscrm.PrivilegeRulePart=function(){};Mscrm.$create_PrivilegeRulePart=function(){return new Mscrm.PrivilegeRulePart};Mscrm.MiscellaneousPrivilegeRulePart=function(){};Mscrm.$create_MiscellaneousPrivilegeRulePart=function(){return new Mscrm.MiscellaneousPrivilegeRulePart};Mscrm.FormStateRulePart=function(){};Mscrm.$create_FormStateRulePart=function(){return new Mscrm.FormStateRulePart};Mscrm.OrganizationSettingRulePart=function(){};Mscrm.$create_OrganizationSettingRulePart=function(){return new Mscrm.OrganizationSettingRulePart};Mscrm.ReferencingAttributeRequiredRulePart=function(){};Mscrm.$create_ReferencingAttributeRequiredRulePart=function(){return new Mscrm.ReferencingAttributeRequiredRulePart};Mscrm.ValueRulePart=function(){};Mscrm.$create_ValueRulePart=function(){return new Mscrm.ValueRulePart};Mscrm.ClientRulePart=function(){};Mscrm.$create_ClientRulePart=function(){return new Mscrm.ClientRulePart};Mscrm.OutlookClientRulePart=function(){};Mscrm.$create_OutlookClientRulePart=function(){return new Mscrm.OutlookClientRulePart};Mscrm.OutlookVersionRulePart=function(){};Mscrm.$create_OutlookVersionRulePart=function(){return new Mscrm.OutlookVersionRulePart};Mscrm.CrmOutlookClientVersionRulePart=function(){};Mscrm.$create_CrmOutlookClientVersionRulePart=function(){return new Mscrm.CrmOutlookClientVersionRulePart};Mscrm.OfflineAccessStateRulePart=function(){};Mscrm.$create_OfflineAccessStateRulePart=function(){return new Mscrm.OfflineAccessStateRulePart};Mscrm.OutlookRenderTypeRulePart=function(){};Mscrm.$create_OutlookRenderTypeRulePart=function(){return new Mscrm.OutlookRenderTypeRulePart};Mscrm.OutlookItemTrackingRulePart=function(){};Mscrm.$create_OutlookItemTrackingRulePart=function(){return new Mscrm.OutlookItemTrackingRulePart};Mscrm.RelationshipTypeRulePart=function(){};Mscrm.$create_RelationshipTypeRulePart=function(){return new Mscrm.RelationshipTypeRulePart};Mscrm.SkuRulePart=function(){};Mscrm.$create_SkuRulePart=function(){return new Mscrm.SkuRulePart};Mscrm.SelectionCountRulePart=function(){};Mscrm.$create_SelectionCountRulePart=function(){return new Mscrm.SelectionCountRulePart};Mscrm.JavaScriptRulePart=function(){};Mscrm.$create_JavaScriptRulePart=function(){return new Mscrm.JavaScriptRulePart};Mscrm.PageRulePart=function(){};Mscrm.$create_PageRulePart=function(){return new Mscrm.PageRulePart};Mscrm.RibbonActionHandler=function(){};Mscrm.$create_RibbonActionHandler=function(){return new Mscrm.RibbonActionHandler};Mscrm.UrlActionAttributes=function(){};Mscrm.$create_UrlActionAttributes=function(){return new Mscrm.UrlActionAttributes};Mscrm.JavaScriptActionAttributes=function(){};Mscrm.$create_JavaScriptActionAttributes=function(){return new Mscrm.JavaScriptActionAttributes};Mscrm.JavaScriptFunctionAttributes=function(){};Mscrm.$create_JavaScriptFunctionAttributes=function(){return new Mscrm.JavaScriptFunctionAttributes};Mscrm.OutlookActionAttributes=function(){};Mscrm.$create_OutlookActionAttributes=function(){return new Mscrm.OutlookActionAttributes};Mscrm.RibbonParameter=function(){};Mscrm.$create_RibbonParameter=function(){return new Mscrm.RibbonParameter};Mscrm.IManagedBrowserShell=function(){};Mscrm.IManagedBrowserShell.registerInterface("Mscrm.IManagedBrowserShell");Mscrm.IconType=function(){};Mscrm.IconType.prototype={gridIcon:0,dbGridIcon:1,navigationIcon:2,outlookShortcutIcon:3,largeEntityIcon:4,ribbon16:5,ribbon32:6,formHeaderEntityIcon:7};Mscrm.IconType.registerEnum("Mscrm.IconType",false);Mscrm.IUIControl=function(){};Mscrm.IUIControl.registerInterface("Mscrm.IUIControl");Mscrm.FormFieldType=function(){};Mscrm.FormFieldType.prototype={FIELD_NOT_REQUIRED:0,FIELD_RECOMMENDED:1,FIELD_REQUIRED:2};Mscrm.FormFieldType.registerEnum("Mscrm.FormFieldType",false);Mscrm.KeyCode=function(){};Mscrm.KeyCode.prototype={KEY_6:54,KEY_COMMA:188,KEY_PERIOD:190,KEY_BACKSPACE:8,KEY_TAB:9,KEY_VERTICAL_TAB:11,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_ESC:27,KEY_SPACE:32,KEY_END:35,KEY_HOME:36,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_D:68,KEY_F:70,KEY_K:75,KEY_P:80,KEY_S:83,KEY_U:85,KEY_PLUS:107,KEY_MINUS:109,KEY_F2:113,KEY_F4:115,KEY_F9:120,KEY_F10:121,KEY_F12:123};Mscrm.KeyCode.registerEnum("Mscrm.KeyCode",false);Mscrm.SdkFormType=function(){};Mscrm.SdkFormType.prototype={undefinedFormType:0,createForm:1,updateForm:2,readOnlyForm:3,disabledForm:4,bulkEditForm:6};Mscrm.SdkFormType.registerEnum("Mscrm.SdkFormType",false);Mscrm.XmlError=function(){};Mscrm.XmlError.prototype={ERROR_STOP:0,ERROR_NONE:1,ERROR_CONTINUE:2};Mscrm.XmlError.registerEnum("Mscrm.XmlError",false);Mscrm.IMenuItem=function(){};Mscrm.IMenuItem.registerInterface("Mscrm.IMenuItem");Mscrm.ICrmEventableComponent=function(){};Mscrm.ICrmEventableComponent.registerInterface("Mscrm.ICrmEventableComponent");Mscrm.ICrmDeferredActionHandler=function(){};Mscrm.ICrmDeferredActionHandler.registerInterface("Mscrm.ICrmDeferredActionHandler");Mscrm.ICrmResizeableControl=function(){};Mscrm.ICrmResizeableControl.registerInterface("Mscrm.ICrmResizeableControl");Mscrm.IRibbonSelectionControl=function(){};Mscrm.IRibbonSelectionControl.registerInterface("Mscrm.IRibbonSelectionControl");Mscrm.IRibbonSelectionControlProxy=function(){};Mscrm.IRibbonSelectionControlProxy.registerInterface("Mscrm.IRibbonSelectionControlProxy");Mscrm.IDataControl=function(){};Mscrm.IDataControl.registerInterface("Mscrm.IDataControl");Mscrm.IGridControl=function(){};Mscrm.IGridControl.registerInterface("Mscrm.IGridControl");Mscrm.EvalOperator=function(){};Mscrm.EvalOperator.prototype={none:0,equals:1,greater:2,greaterEquals:3,lower:4,lowerEquals:5};Mscrm.EvalOperator.registerEnum("Mscrm.EvalOperator",false);Mscrm.ImageInfo=function(){};Mscrm.$create_ImageInfo=function(){return new Mscrm.ImageInfo};Mscrm.IDebugTracer=function(){};Mscrm.IDebugTracer.registerInterface("Mscrm.IDebugTracer");Mscrm.TraceEntry=function(id,message,timestamp,url){this.id=id;this.message=message;this.timestamp=timestamp;this.url=url};Mscrm.$create_TraceEntry=function(id,message,timestamp,url){return new Mscrm.TraceEntry(id,message,timestamp,url)};Mscrm.RibbonKeyPressParameters=function(){};Mscrm.$create_RibbonKeyPressParameters=function(){return new Mscrm.RibbonKeyPressParameters};Mscrm.ReportingPreference=function(){};Mscrm.ReportingPreference.prototype={None:0,PromptBeforeReport:1,AutoReport:2,NeverReport:3};Mscrm.ReportingPreference.registerEnum("Mscrm.ReportingPreference",false);Mscrm.CrashData=function(){};Mscrm.$create_CrashData=function(){return new Mscrm.CrashData};Mscrm.ImageStripData=function(){};Mscrm.ImageStripData.$59=function(){var $v_0={};$v_0["/_IMGS/AREA/18_HOME.GIF"]="ms-crm-ImageStrip-18_home";$v_0["/_IMGS/ICO_18_4200.GIF"]="ms-crm-ImageStrip-ico_18_4200";$v_0["/_IMGS/AREA/18_CALENDAR.GIF"]="ms-crm-ImageStrip-18_calendar";$v_0["/_IMGS/AREA/18_IMPORT.GIF"]="ms-crm-ImageStrip-18_import";$v_0["/_IMGS/DATA_MANAGEMENT.GIF"]="ms-crm-ImageStrip-data_management";$v_0["/_IMGS/ICO_18_2020.GIF"]="ms-crm-ImageStrip-ico_18_2020";$v_0["/_IMGS/ICO_18_127.GIF"]="ms-crm-ImageStrip-ico_18_127";$v_0["/_IMGS/ICO_18_9100.GIF"]="ms-crm-ImageStrip-ico_18_9100";$v_0["/_IMGS/ICO_18_132.GIF"]="ms-crm-ImageStrip-ico_18_132";$v_0["/_IMGS/ICO_16_1082.GIF"]="ms-crm-ImageStrip-ico_16_1082";$v_0["/_IMGS/ICO_16_4003.GIF"]="ms-crm-ImageStrip-ico_16_4003";$v_0["/_IMGS/ICO_18_4.GIF"]="ms-crm-ImageStrip-ico_18_4";$v_0["/_IMGS/ICO_18_3.GIF"]="ms-crm-ImageStrip-ico_18_3";$v_0["/_IMGS/ICO_18_1.GIF"]="ms-crm-ImageStrip-ico_18_1";$v_0["/_IMGS/ICO_18_2.GIF"]="ms-crm-ImageStrip-ico_18_2";$v_0["/_IMGS/ICO_18_123.GIF"]="ms-crm-ImageStrip-ico_18_123";$v_0["/_IMGS/ICO_18_1038.GIF"]="ms-crm-ImageStrip-ico_18_1038";$v_0["/_IMGS/ICO_18_1084.GIF"]="ms-crm-ImageStrip-ico_18_1084";$v_0["/_IMGS/ICO_18_1088.GIF"]="ms-crm-ImageStrip-ico_18_1088";$v_0["/_IMGS/ICO_18_1090.GIF"]="ms-crm-ImageStrip-ico_18_1090";$v_0["/_IMGS/ICO_18_4300.GIF"]="ms-crm-ImageStrip-ico_18_4300";$v_0["/_IMGS/ICO_18_4400.GIF"]="ms-crm-ImageStrip-ico_18_4400";$v_0["/_IMGS/ICO_18_1024.GIF"]="ms-crm-ImageStrip-ico_18_1024";$v_0["/_IMGS/ICO_16_4406.PNG"]="ms-crm-ImageStrip-ico_16_4406";$v_0["/_IMGS/ICO_18_MINICAMPS.GIF"]="ms-crm-ImageStrip-ico_18_minicamps";$v_0["/_IMGS/ICO_18_SERVICECAL.GIF"]="ms-crm-ImageStrip-ico_18_servicecal";$v_0["/_IMGS/ICO_18_112.GIF"]="ms-crm-ImageStrip-ico_18_112";$v_0["/_IMGS/ICO_18_126.GIF"]="ms-crm-ImageStrip-ico_18_126";$v_0["/_IMGS/ICO_18_1010.GIF"]="ms-crm-ImageStrip-ico_18_1010";$v_0["/_IMGS/ICO_18_4001.GIF"]="ms-crm-ImageStrip-ico_18_4001";$v_0["/_IMGS/ICO_24_CAL_EXPAND.GIF"]="ms-crm-ImageStrip-ico_24_cal_expand";$v_0["/_IMGS/ICO_24_CAL_COLLAPSE.GIF"]="ms-crm-ImageStrip-ico_24_cal_collapse";$v_0["/_IMGS/ICO_16_CALDAY.GIF"]="ms-crm-ImageStrip-ico_16_calday";$v_0["/_IMGS/ICO_16_CALWEEK.GIF"]="ms-crm-ImageStrip-ico_16_calweek";$v_0["/_IMGS/ICO_16_CALMONTH.GIF"]="ms-crm-ImageStrip-ico_16_calmonth";$v_0["/_IMGS/ICO_24_CALTODAY_MENU.GIF"]="ms-crm-ImageStrip-ico_24_caltoday_menu";$v_0["/_IMGS/ICO_16_CALTODAY.GIF"]="ms-crm-ImageStrip-ico_16_caltoday";$v_0["/_IMGS/APPTBOOK/UP.GIF"]="ms-crm-ImageStrip-apptBookUp";$v_0["/_IMGS/APPTBOOK/DOWN.GIF"]="ms-crm-ImageStrip-apptBookDown";$v_0["/_IMGS/APPTBOOK/PLUS.GIF"]="ms-crm-ImageStrip-apptBookPlus";$v_0["/_IMGS/APPTBOOK/MINUS.GIF"]="ms-crm-ImageStrip-apptBookMinus";$v_0["/_IMGS/ICO_16_4000.GIF"]="ms-crm-ImageStrip-ico_16_4000";$v_0["/_IMGS/ZOOM/ZOOMPLUSOVER.GIF"]="ms-crm-ImageStrip-zoomPlusOver";$v_0["/_IMGS/ZOOM/ZOOMPLUS.GIF"]="ms-crm-ImageStrip-zoomPlus";$v_0["/_IMGS/ZOOM/ZOOMMINUSOVER.GIF"]="ms-crm-ImageStrip-zoomMinusOver";$v_0["/_IMGS/ZOOM/ZOOMMINUS.GIF"]="ms-crm-ImageStrip-zoomMinus";$v_0["/_IMGS/ZOOM/DOTSELECTED.GIF"]="ms-crm-ImageStrip-dotSelected";$v_0["/_IMGS/ZOOM/DOTUNSELECTED.GIF"]="ms-crm-ImageStrip-dotUnselected";$v_0["/_IMGS/ICO_16_4212.GIF"]="ms-crm-ImageStrip-ico_16_4212";$v_0["/_IMGS/ICO_16_4204.GIF"]="ms-crm-ImageStrip-ico_16_4204";$v_0["/_IMGS/ICO_16_4210.GIF"]="ms-crm-ImageStrip-ico_16_4210";$v_0["/_IMGS/ICO_16_4202.GIF"]="ms-crm-ImageStrip-ico_16_4202";$v_0["/_IMGS/ICO_16_4207.GIF"]="ms-crm-ImageStrip-ico_16_4207";$v_0["/_IMGS/ICO_16_4201.GIF"]="ms-crm-ImageStrip-ico_16_4201";$v_0["/_IMGS/ICO_16_4214.GIF"]="ms-crm-ImageStrip-ico_16_4214";$v_0["/_IMGS/ICO_16_4401.GIF"]="ms-crm-ImageStrip-ico_16_4401";$v_0["/_IMGS/ICO_16_1120.GIF"]="ms-crm-ImageStrip-ico_16_1120";$v_0["/_IMGS/ICO_16_1130.GIF"]="ms-crm-ImageStrip-ico_16_1130";$v_0["/_IMGS/ICO_18_129.GIF"]="ms-crm-ImageStrip-ico_18_129";$v_0["/_IMGS/ICO_16_SALES.GIF"]="ms-crm-ImageStrip-ico_16_sales";$v_0["/_IMGS/ICO_16_MARKETING.GIF"]="ms-crm-ImageStrip-ico_16_marketing";$v_0["/_IMGS/AREA/18_SERVICE.GIF"]="ms-crm-ImageStrip-18_service";$v_0["/_IMGS/AREA/18_SETTINGS.GIF"]="ms-crm-ImageStrip-18_settings";$v_0["/_IMGS/ICO_18_ADMINISTRATION.GIF"]="ms-crm-ImageStrip-ico_18_administration";$v_0["/_IMGS/ICO_18_BUSMANAGEMENT.GIF"]="ms-crm-ImageStrip-ico_18_busmanagement";$v_0["/_IMGS/AREA/18_SYSCUST.GIF"]="ms-crm-ImageStrip-18_syscust";$v_0["/_IMGS/SYSTEMCUSTOMIZATION/ICO_18_MARKETPLACE.PNG"]="ms-crm-ImageStrip-ico_18_marketplace";$v_0["/_IMGS/ICO_INTERNET_LEADS.GIF"]="ms-crm-ImageStrip-ico_internet_leads";$v_0["/_IMGS/ICO_LANDING_PAGES.GIF"]="ms-crm-ImageStrip-ico_landing_pages";$v_0["/_IMGS/ICO_18_TEMPLATES.GIF"]="ms-crm-ImageStrip-ico_18_templates";$v_0["/_IMGS/ICO_18_PRODUCTCATALOG.GIF"]="ms-crm-ImageStrip-ico_18_productcatalog";$v_0["/_IMGS/ICO_18_4703.PNG"]="ms-crm-ImageStrip-ico_18_4703";$v_0["/_IMGS/ICO_18_4703.GIF"]="ms-crm-ImageStrip-ico_18_4703_g";$v_0["/_IMGS/ICO_18_DATAMANAGEMENT.GIF"]="ms-crm-ImageStrip-ico_18_datamanagement";$v_0["/_IMGS/ICO_18_4700.GIF"]="ms-crm-ImageStrip-ico_18_4700";$v_0["/_IMGS/ICO_16_1200.PNG"]="ms-crm-ImageStrip-ico_16_1200";$v_0["/_IMGS/ICO_16_1201.PNG"]="ms-crm-ImageStrip-ico_16_1201";$v_0["/_IMGS/ICO_18_1200.PNG"]="ms-crm-ImageStrip-ico_18_1200";$v_0["/_IMGS/ICO_18_1201.PNG"]="ms-crm-ImageStrip-ico_18_1201";$v_0["/_IMGS/ICO_18_1200.GIF"]="ms-crm-ImageStrip-ico_18_1200_g";$v_0["/_IMGS/ICO_18_1201.GIF"]="ms-crm-ImageStrip-ico_18_1201_g";$v_0["/_IMGS/ICO_16_ADVANCEDFIND.GIF"]="ms-crm-ImageStrip-ico_16_AdvancedFind";$v_0["/_IMGS/ICO/16_HELP.GIF"]="ms-crm-ImageStrip-16_help";$v_0["/_IMGS/ICO/17_HELP.PNG"]="ms-crm-ImageStrip-17_help";$v_0["/_IMGS/PLACEHOLDERS/PLACEHOLDER_24.GIF"]="ms-crm-ImageStrip-placeholder_24";$v_0["/_IMGS/PLACEHOLDERS/FORMHEADER_PLACEHOLDER_35X26.PNG"]="ms-crm-ImageStrip-formheader_placeholder_35x26";$v_0["/_IMGS/ICO_16_1111.PNG"]="ms-crm-ImageStrip-ico_16_1111";$v_0["/_IMGS/ICO_16_1112.PNG"]="ms-crm-ImageStrip-ico_16_1112";$v_0["/_IMGS/ICO_18_1071.GIF"]="ms-crm-ImageStrip-ico_18_1071";$v_0["/_IMGS/ICO_18_3234.GIF"]="ms-crm-ImageStrip-ico_18_3234";$v_0["/_IMGS/ICO_18_9005.GIF"]="ms-crm-ImageStrip-ico_18_9005";$v_0["/_IMGS/ICO_18_4567.GIF"]="ms-crm-ImageStrip-ico_18_4567";$v_0["/_IMGS/ICO_18_4710.PNG"]="ms-crm-ImageStrip-ico_18_4710";$v_0["/_IMGS/ICO_18_4710.GIF"]="ms-crm-ImageStrip-ico_18_4710_g";$v_0["/_IMGS/ICO_16_9105.GIF"]="ms-crm-ImageStrip-ico_16_9105";$v_0["/_IMGS/ICO_18_4502.GIF"]="ms-crm-ImageStrip-ico_18_4502";$v_0["/_IMGS/ICO_16_1.GIF"]="ms-crm-ImageStrip-ico_16_1";$v_0["/_IMGS/ICO_16_2.GIF"]="ms-crm-ImageStrip-ico_16_2";$v_0["/_IMGS/ICO_16_3.GIF"]="ms-crm-ImageStrip-ico_16_3";$v_0["/_IMGS/ICO_16_8.GIF"]="ms-crm-ImageStrip-ico_16_8";$v_0["/_IMGS/ICO_18_ACT.GIF"]="ms-crm-ImageStrip-ico_18_act";$v_0["/_IMGS/ICO_18_HISTORY.GIF"]="ms-crm-ImageStrip-ico_18_history";$v_0["/_IMGS/AREA/18_SUBACCOUNTS.GIF"]="ms-crm-ImageStrip-18_subAccounts";$v_0["/_IMGS/ICO_LRG_1.GIF"]="ms-crm-ImageStrip-ico_lrg_1";$v_0["/_IMGS/ICO_16_4230.GIF"]="ms-crm-ImageStrip-ico_16_4230";$v_0["/_IMGS/VERTICALGRIPPER.GIF"]="ms-crm-ImageStrip-verticalGripper";$v_0["/_IMGS/HORIZONTALGRIPPER.GIF"]="ms-crm-ImageStrip-horizontalGripper";$v_0["/_IMGS/NAVUP.PNG"]="ms-crm-ImageStrip-navup";$v_0["/_IMGS/NAVDOWN.PNG"]="ms-crm-ImageStrip-navdown";$v_0["/_IMGS/NAVLEFT.PNG"]="ms-crm-ImageStrip-navLeft";$v_0["/_IMGS/NAVRIGHT.PNG"]="ms-crm-ImageStrip-navRight";$v_0["/_IMGS/MESSAGEBAR/MSGBAR_BORDER.PNG"]="ms-crm-ImageStrip-msgbar_border";$v_0["/_IMGS/MESSAGEBAR/MSGBAR_ICN_INFO.PNG"]="ms-crm-ImageStrip-msgbar_icn_info";$v_0["/_IMGS/MESSAGEBAR/MSGBAR_CLOSE_BUTTON_CLICK.PNG"]="ms-crm-ImageStrip-msgbar_close_button_click";$v_0["/_IMGS/MESSAGEBAR/MSGBAR_CLOSE_BUTTON_COLD.PNG"]="ms-crm-ImageStrip-msgbar_close_button_cold";$v_0["/_IMGS/MESSAGEBAR/MSGBAR_CLOSE_BUTTON_HOVER.PNG"]="ms-crm-ImageStrip-msgbar_close_button_hover";$v_0["/_IMGS/MNUDOWN.GIF"]="ms-crm-ImageStrip-mnuDown";$v_0["/_IMGS/MNU_RARROW.GIF"]="ms-crm-ImageStrip-mnu_rArrow";$v_0["/_IMGS/MNU_HSPACERGRID.GIF"]="ms-crm-ImageStrip-mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK12BLACK/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook12Black_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK12BLUE/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook12Blue_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK12SILVER/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook12Silver_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK14BLACK/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook14Black_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK14BLUE/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook14Blue_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK14SILVER/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook14Silver_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK15BLACK/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook15Black_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK15BLUE/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook15Blue_mnu_hSpacerGrid";$v_0["/_IMGS/THEME/OUTLOOK15SILVER/MNU_HSPACERGRID.PNG"]="ms-crm-ImageStrip-Outlook15Silver_mnu_hSpacerGrid";$v_0["/_IMGS/MNU_HSPACER.GIF"]="ms-crm-ImageStrip-mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK12BLACK/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook12Black_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK12BLUE/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook12Blue_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK12SILVER/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook12Silver_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK14BLACK/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook14Black_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK14BLUE/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook14Blue_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK14SILVER/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook14Silver_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK15BLACK/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook15Black_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK15BLUE/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook15Blue_mnu_hSpacer";$v_0["/_IMGS/THEME/OUTLOOK15SILVER/MNU_HSPACER.PNG"]="ms-crm-ImageStrip-Outlook15Silver_mnu_hSpacer";$v_0["/_IMGS/RECENTLYVIEWED/HOME.PNG"]="ms-crm-ImageStrip-Home";$v_0["/_IMGS/RECENTLYVIEWED/RECENT.PNG"]="ms-crm-ImageStrip-Recent";$v_0["/_IMGS/RECENTLYVIEWED/VERTICALLINE.PNG"]="ms-crm-ImageStrip-VerticalLine";$v_0["/_IMGS/DEFAULTSITEMAPAREA_24X24.GIF"]="ms-crm-ImageStrip-DefaultSitemapArea_24x24";$v_0["/_IMGS/WORKPLACE_24X24.GIF"]="ms-crm-ImageStrip-workplace_24x24";$v_0["/_IMGS/SALES_24X24.GIF"]="ms-crm-ImageStrip-sales_24x24";$v_0["/_IMGS/MARKETING_24X24.GIF"]="ms-crm-ImageStrip-marketing_24x24";$v_0["/_IMGS/SERVICES_24X24.GIF"]="ms-crm-ImageStrip-services_24x24";$v_0["/_IMGS/SETTINGS_24X24.GIF"]="ms-crm-ImageStrip-settings_24x24";$v_0["/_IMGS/RESOURCECENTER_24X24.GIF"]="ms-crm-ImageStrip-resourcecenter_24x24";$v_0["/_IMGS/RIBBON/ARROW_RIBBONCOLLAPSE.PNG"]="ms-crm-ImageStrip-arrow_ribboncollapse";$v_0["/_IMGS/RIBBON/ARROW_RIBBONEXPAND.PNG"]="ms-crm-ImageStrip-arrow_ribbonexpand";$v_0["/_IMGS/QFIND.GIF"]="ms-crm-ImageStrip-qfind";$v_0["/_IMGS/SEARCH.GIF"]="ms-crm-ImageStrip-search";$v_0["/_IMGS/SEARCHHOVER.GIF"]="ms-crm-ImageStrip-searchhover";$v_0["/_IMGS/SEARCHDOWN.GIF"]="ms-crm-ImageStrip-searchdown";$v_0["/_IMGS/SEARCHCLEAR.GIF"]="ms-crm-ImageStrip-searchclear";$v_0["/_IMGS/SEARCHCLEARHOVER.GIF"]="ms-crm-ImageStrip-searchclearhover";$v_0["/_IMGS/SEARCHCLEARDOWN.GIF"]="ms-crm-ImageStrip-searchcleardown";$v_0["/_IMGS/HELPVISOR/VISOROPEN.PNG"]="ms-crm-ImageStrip-visoropen";$v_0["/_IMGS/HELPVISOR/VISORCLOSE.PNG"]="ms-crm-ImageStrip-visorclose";$v_0["/_IMGS/HELPVISOR/VISORCLOSEHOVER.PNG"]="ms-crm-ImageStrip-visorclosehover";$v_0["/_IMGS/HELPVISOR/VISOROPENHOVER.PNG"]="ms-crm-ImageStrip-visoropenhover";$v_0["/_IMGS/BTN_DIS_LOOKUP.PNG"]="ms-crm-ImageStrip-btn_dis_lookup";$v_0["/_IMGS/BTN_OFF_LOOKUP.PNG"]="ms-crm-ImageStrip-btn_off_lookup";$v_0["/_IMGS/ERROR/NOTIF_ICN_INFO16.PNG"]="ms-crm-ImageStrip-notif_icn_info16";$v_0["/_IMGS/ERROR/NOTIF_ICN_WARN16.PNG"]="ms-crm-ImageStrip-notif_icn_warn16";$v_0["/_IMGS/ERROR/NOTIF_ICN_CRIT16.PNG"]="ms-crm-ImageStrip-notif_icn_crit16";$v_0["/_IMGS/ERROR/NOTIF_ICN_ALERT16.PNG"]="ms-crm-ImageStrip-notif_icn_alert16";$v_0["/_IMGS/FRM_REQUIRED.GIF"]="ms-crm-ImageStrip-frm_required";$v_0["/_IMGS/RIGHT.GIF"]="ms-crm-ImageStrip-right";$v_0["/_IMGS/DOWN.GIF"]="ms-crm-ImageStrip-down";$v_0["/_IMGS/TAB_SECTION_RIGHT.PNG"]="ms-crm-ImageStrip-tab_right";$v_0["/_IMGS/TAB_SECTION_DOWN.PNG"]="ms-crm-ImageStrip-tab_down";$v_0["/_IMGS/BTN_DIS_CAL.GIF"]="ms-crm-ImageStrip-btn_dis_cal";$v_0["/_IMGS/BTN_OFF_CAL.GIF"]="ms-crm-ImageStrip-btn_off_cal";$v_0["/_IMGS/RECNAV/VERTICAL_LINE_TRANSPARENT.PNG"]="ms-crm-ImageStrip-vertical_line_transparent";$v_0["/_IMGS/RECNAV/DEFAULT_LEFTCAP.PNG"]="ms-crm-ImageStrip-default_leftcap";$v_0["/_IMGS/RECNAV/RIGHTCAP.PNG"]="ms-crm-ImageStrip-rightcap";$v_0["/_IMGS/RECNAV/UP_DISABLED.PNG"]="ms-crm-ImageStrip-Up_Disabled";$v_0["/_IMGS/RECNAV/DOWN_DISABLED.PNG"]="ms-crm-ImageStrip-Down_Disabled";$v_0["/_IMGS/RECNAV/DISABLED_ARROW.PNG"]="ms-crm-ImageStrip-disabled_arrow";$v_0["/_IMGS/RECNAV/UP_ENABLED.PNG"]="ms-crm-ImageStrip-Up_Enabled";$v_0["/_IMGS/RECNAV/DOWN_ENABLED.PNG"]="ms-crm-ImageStrip-Down_Enabled";$v_0["/_IMGS/RECNAV/ENABLED_ARROW.PNG"]="ms-crm-ImageStrip-enabled_arrow";$v_0["/_IMGS/RECNAV/HOVER_LEFTCAP.PNG"]="ms-crm-ImageStrip-hover_leftcap";$v_0["/_IMGS/RECNAV/HOVER_RIGHTCAP.PNG"]="ms-crm-ImageStrip-hover_rightcap";$v_0["/_IMGS/RECNAV/SELECTED_LEFTCAP.PNG"]="ms-crm-ImageStrip-selected_leftcap";$v_0["/_IMGS/ENLARGE.PNG"]="ms-crm-ImageStrip-enlarge";$v_0["/_IMGS/OPENVIEW.PNG"]="ms-crm-ImageStrip-openview";$v_0["/_IMGS/REFRESH.PNG"]="ms-crm-ImageStrip-refresh";$v_0["/_IMGS/CLOSE.PNG"]="ms-crm-ImageStrip-close";$v_0["/_IMGS/MULTISELECT/MULTISELECT_CHECKED.PNG"]="ms-crm-ImageStrip-multiselect_checked";$v_0["/_IMGS/MULTISELECT/MULTISELECT_UNCHECKED.PNG"]="ms-crm-ImageStrip-multiselect_unchecked";$v_0["/_IMGS/MULTISELECT/MULTISELECT_BTN_ON.GIF"]="ms-crm-ImageStrip-multiselect_btn_on";$v_0["/_IMGS/MULTISELECT/MULTISELECT_BTN_DIS.GIF"]="ms-crm-ImageStrip-multiselect_btn_dis";$v_0["/_IMGS/GRID/GRID_REFRESH.GIF"]="ms-crm-ImageStrip-grid_refresh";$v_0["/_IMGS/GRID/BAR_LINE.GIF"]="ms-crm-ImageStrip-bar_line";$v_0["/_IMGS/GRID/BAR_UP.GIF"]="ms-crm-ImageStrip-bar_up";$v_0["/_IMGS/GRID/RESIZE.GIF"]="ms-crm-ImageStrip-resize";$v_0["/_IMGS/GRID/PAGE_FL0.GIF"]="ms-crm-ImageStrip-page_FL0";$v_0["/_IMGS/GRID/PAGE_L0.GIF"]="ms-crm-ImageStrip-page_L0";$v_0["/_IMGS/GRID/PAGE_R0.GIF"]="ms-crm-ImageStrip-page_R0";$v_0["/_IMGS/ICO/16_EXCEL.GIF"]="ms-crm-ImageStrip-16_excel";$v_0["/_IMGS/ICO/16_PRINT.GIF"]="ms-crm-ImageStrip-16_print";$v_0["/_IMGS/ICO_16_ASSIGN.GIF"]="ms-crm-ImageStrip-ico_16_assign";$v_0["/_IMGS/ICO_16_DELETE.GIF"]="ms-crm-ImageStrip-ico_16_delete";$v_0["/_IMGS/GRID/RESET.PNG"]="ms-crm-ImageStrip-reset";$v_0["/_IMGS/GRID/DISABLERESET.PNG"]="ms-crm-ImageStrip-disablereset";$v_0["/_IMGS/GRID/ASC.PNG"]="ms-crm-ImageStrip-asc";$v_0["/_IMGS/GRID/DESC.PNG"]="ms-crm-ImageStrip-desc";$v_0["/_IMGS/GRID/R.GIF"]="ms-crm-ImageStrip-r";$v_0["/_IMGS/GRID/D.GIF"]="ms-crm-ImageStrip-d";$v_0["/_IMGS/GRID/ROW_SELECTED.GIF"]="ms-crm-ImageStrip-row_selected";$v_0["/_IMGS/DROPDOWN.PNG"]="ms-crm-ImageStrip-dropdown";$v_0["/_IMGS/DROPDOWN_WFILTER.PNG"]="ms-crm-ImageStrip-dropdown_wfilter";$v_0["/_IMGS/GRID/STRIPDIVIDER.GIF"]="ms-crm-ImageStrip-stripDivider";$v_0["/_IMGS/GRID/DROPDOWN_ARROW.PNG"]="ms-crm-ImageStrip-Dropdown_Arrow";$v_0["/_IMGS/GRID/PAGE_FL1.GIF"]="ms-crm-ImageStrip-page_FL1";$v_0["/_IMGS/GRID/PAGE_L1.GIF"]="ms-crm-ImageStrip-page_L1";$v_0["/_IMGS/GRID/PAGE_R1.GIF"]="ms-crm-ImageStrip-page_R1";$v_0["/_IMGS/VISUALIZATION/CHARTSIDE.PNG"]="ms-crm-ImageStrip-chartside";$v_0["/_IMGS/FORMSELECTORDROPDOWN.PNG"]="ms-crm-ImageStrip-formSelectorDropdown";$v_0["/_IMGS/FORMNAVTREELINE.PNG"]="ms-crm-ImageStrip-formNavTreeLine";$v_0["/_IMGS/FORMNAVTREELINEBOTTOM.PNG"]="ms-crm-ImageStrip-formNavTreeLineBottom";$v_0["/_IMGS/FORMNAVTREELINE_RTL.PNG"]="ms-crm-ImageStrip-formNavTreeLineRTL";$v_0["/_IMGS/FORMNAVTREELINEBOTTOM_RTL.PNG"]="ms-crm-ImageStrip-formNavTreeLineBottomRTL";$v_0["/_IMGS/ADVFIND/BUTTON.GIF"]="ms-crm-ImageStrip-AdvFindDownArrow";$v_0["/_IMGS/ADVFIND/PROGRESS.GIF"]="ms-crm-ImageStrip-progress";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART.PNG"]="ms-crm-ImageStrip-areaChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART/AREACHART_ARROW.PNG"]="ms-crm-ImageStrip-areaChart_arrow";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART/AREACHART_ARROW_DIS.PNG"]="ms-crm-ImageStrip-areaChart_arrow_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART/AREACHART_ARROW_SEL.PNG"]="ms-crm-ImageStrip-areaChart_arrow_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART/AREACHART_DIS.PNG"]="ms-crm-ImageStrip-areaChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/AREACHART/AREACHART_SEL.PNG"]="ms-crm-ImageStrip-areaChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART.PNG"]="ms-crm-ImageStrip-barChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART_ARROW.PNG"]="ms-crm-ImageStrip-barChart_arrow";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART_ARROW_DIS.PNG"]="ms-crm-ImageStrip-barChart_arrow_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART_ARROW_SEL.PNG"]="ms-crm-ImageStrip-barChart_arrow_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART_DIS.PNG"]="ms-crm-ImageStrip-barChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/BARCHART/BARCHART_SEL.PNG"]="ms-crm-ImageStrip-barChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART.PNG"]="ms-crm-ImageStrip-columnChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART_ARROW.PNG"]="ms-crm-ImageStrip-columnChart_arrow";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART_ARROW_DIS.PNG"]="ms-crm-ImageStrip-columnChart_arrow_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART_ARROW_SEL.PNG"]="ms-crm-ImageStrip-columnChart_arrow_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART_DIS.PNG"]="ms-crm-ImageStrip-columnChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/COLUMNCHART/COLUMNCHART_SEL.PNG"]="ms-crm-ImageStrip-columnChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/FUNNELCHART/FUNNELCHART.PNG"]="ms-crm-ImageStrip-funnelChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/FUNNELCHART/FUNNELCHART_DIS.PNG"]="ms-crm-ImageStrip-funnelChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/FUNNELCHART/FUNNELCHART_SEL.PNG"]="ms-crm-ImageStrip-funnelChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/LINECHART/LINECHART.PNG"]="ms-crm-ImageStrip-lineChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/LINECHART/LINECHART_DIS.PNG"]="ms-crm-ImageStrip-lineChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/LINECHART/LINECHART_SEL.PNG"]="ms-crm-ImageStrip-lineChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/PIECHART/PIECHART.PNG"]="ms-crm-ImageStrip-pieChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/PIECHART/PIECHART_DIS.PNG"]="ms-crm-ImageStrip-pieChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/PIECHART/PIECHART_SEL.PNG"]="ms-crm-ImageStrip-pieChart_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/BOTTOMRULES.PNG"]="ms-crm-ImageStrip-bottomRules";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/BOTTOMRULES_ARROW.PNG"]="ms-crm-ImageStrip-bottomRules_arrow";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/BOTTOMRULES_ARROW_SEL.PNG"]="ms-crm-ImageStrip-bottomRules_arrow_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/BOTTOMRULES_SEL.PNG"]="ms-crm-ImageStrip-bottomRules_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/CLEARRULES.PNG"]="ms-crm-ImageStrip-clearRules";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/CLEARRULES_SEL.PNG"]="ms-crm-ImageStrip-clearRules_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPBOTTOMRULES.PNG"]="ms-crm-ImageStrip-topBottomRules";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPBOTTOMRULES_DIS.PNG"]="ms-crm-ImageStrip-topBottomRules_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPBOTTOMRULES_SEL.PNG"]="ms-crm-ImageStrip-topBottomRules_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPRULES.PNG"]="ms-crm-ImageStrip-topRules";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPRULES_ARROW.PNG"]="ms-crm-ImageStrip-topRules_arrow";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPRULES_ARROW_SEL.PNG"]="ms-crm-ImageStrip-topRules_arrow_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/TOPBOTTOM/TOPRULES_SEL.PNG"]="ms-crm-ImageStrip-topRules_sel";$v_0["/_IMGS/VISUALIZATION/DESIGNER/ADD.PNG"]="ms-crm-ImageStrip-add";$v_0["/_IMGS/VISUALIZATION/DESIGNER/ADD_DIS.PNG"]="ms-crm-ImageStrip-add_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/DELETECHART.PNG"]="ms-crm-ImageStrip-deleteChart";$v_0["/_IMGS/VISUALIZATION/DESIGNER/DELETECHART_DIS.PNG"]="ms-crm-ImageStrip-deleteChart_dis";$v_0["/_IMGS/VISUALIZATION/DESIGNER/DELETECHART_SEL.PNG"]="ms-crm-ImageStrip-deleteChart_sel";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1.PNG"]="ms-crm-ImageStrip-ico_fhe_1";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2.PNG"]="ms-crm-ImageStrip-ico_fhe_2";$v_0["/_IMGS/FORMENTITY/ICO_FHE_3.PNG"]="ms-crm-ImageStrip-ico_fhe_3";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4.PNG"]="ms-crm-ImageStrip-ico_fhe_4";$v_0["/_IMGS/FORMENTITY/ICO_FHE_5.PNG"]="ms-crm-ImageStrip-ico_fhe_5";$v_0["/_IMGS/FORMENTITY/ICO_FHE_8.PNG"]="ms-crm-ImageStrip-ico_fhe_8";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9.PNG"]="ms-crm-ImageStrip-ico_fhe_9";$v_0["/_IMGS/FORMENTITY/ICO_FHE_112.PNG"]="ms-crm-ImageStrip-ico_fhe_112";$v_0["/_IMGS/FORMENTITY/ICO_FHE_123.PNG"]="ms-crm-ImageStrip-ico_fhe_123";$v_0["/_IMGS/FORMENTITY/ICO_FHE_127.PNG"]="ms-crm-ImageStrip-ico_fhe_127";$v_0["/_IMGS/FORMENTITY/ICO_FHE_132.PNG"]="ms-crm-ImageStrip-ico_fhe_132";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1010.PNG"]="ms-crm-ImageStrip-ico_fhe_1010";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1011.PNG"]="ms-crm-ImageStrip-ico_fhe_1011";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1013.PNG"]="ms-crm-ImageStrip-ico_fhe_1013";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1016.PNG"]="ms-crm-ImageStrip-ico_fhe_1016";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1022.PNG"]="ms-crm-ImageStrip-ico_fhe_1022";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1024.PNG"]="ms-crm-ImageStrip-ico_fhe_1024";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1026.PNG"]="ms-crm-ImageStrip-ico_fhe_1026";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1030.PNG"]="ms-crm-ImageStrip-ico_fhe_1030";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1036.PNG"]="ms-crm-ImageStrip-ico_fhe_1036";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1038.PNG"]="ms-crm-ImageStrip-ico_fhe_1038";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1055.PNG"]="ms-crm-ImageStrip-ico_fhe_1055";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1056.PNG"]="ms-crm-ImageStrip-ico_fhe_1056";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1070.PNG"]="ms-crm-ImageStrip-ico_fhe_1070";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1071.PNG"]="ms-crm-ImageStrip-ico_fhe_1071";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1080.PNG"]="ms-crm-ImageStrip-ico_fhe_1080";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1083.PNG"]="ms-crm-ImageStrip-ico_fhe_1083";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1084.PNG"]="ms-crm-ImageStrip-ico_fhe_1084";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1085.PNG"]="ms-crm-ImageStrip-ico_fhe_1085";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1088.PNG"]="ms-crm-ImageStrip-ico_fhe_1088";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1089.PNG"]="ms-crm-ImageStrip-ico_fhe_1089";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1090.PNG"]="ms-crm-ImageStrip-ico_fhe_1090";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1091.PNG"]="ms-crm-ImageStrip-ico_fhe_1091";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1111.PNG"]="ms-crm-ImageStrip-ico_fhe_1111";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1112.PNG"]="ms-crm-ImageStrip-ico_fhe_1112";$v_0["/_IMGS/FORMENTITY/ICO_FHE_1200.PNG"]="ms-crm-ImageStrip-ico_fhe_1200";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2010.PNG"]="ms-crm-ImageStrip-ico_fhe_2010";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2011.PNG"]="ms-crm-ImageStrip-ico_fhe_2011";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2013.PNG"]="ms-crm-ImageStrip-ico_fhe_2013";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2020.PNG"]="ms-crm-ImageStrip-ico_fhe_2020";$v_0["/_IMGS/FORMENTITY/ICO_FHE_2029.PNG"]="ms-crm-ImageStrip-ico_fhe_2029";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4000.PNG"]="ms-crm-ImageStrip-ico_fhe_4000";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4001.PNG"]="ms-crm-ImageStrip-ico_fhe_4001";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4002.PNG"]="ms-crm-ImageStrip-ico_fhe_4002";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4007.PNG"]="ms-crm-ImageStrip-ico_fhe_4007";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4009.PNG"]="ms-crm-ImageStrip-ico_fhe_4009";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4200.PNG"]="ms-crm-ImageStrip-ico_fhe_4200";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4201.PNG"]="ms-crm-ImageStrip-ico_fhe_4201";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4202.PNG"]="ms-crm-ImageStrip-ico_fhe_4202";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4204.PNG"]="ms-crm-ImageStrip-ico_fhe_4204";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4206.PNG"]="ms-crm-ImageStrip-ico_fhe_4206";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4206_RTL.PNG"]="ms-crm-ImageStrip-ico_fhe_4206_rtl";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4207.PNG"]="ms-crm-ImageStrip-ico_fhe_4207";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4208.PNG"]="ms-crm-ImageStrip-ico_fhe_4208";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4209.PNG"]="ms-crm-ImageStrip-ico_fhe_4209";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4210.PNG"]="ms-crm-ImageStrip-ico_fhe_4210";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4211.PNG"]="ms-crm-ImageStrip-ico_fhe_4211";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4212.PNG"]="ms-crm-ImageStrip-ico_fhe_4212";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4214.PNG"]="ms-crm-ImageStrip-ico_fhe_4214";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4251.PNG"]="ms-crm-ImageStrip-ico_fhe_4251";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4300.PNG"]="ms-crm-ImageStrip-ico_fhe_4300";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4400.PNG"]="ms-crm-ImageStrip-ico_fhe_4400";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4401.PNG"]="ms-crm-ImageStrip-ico_fhe_4401";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4401_RTL.PNG"]="ms-crm-ImageStrip-ico_fhe_4401_rtl";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4402.PNG"]="ms-crm-ImageStrip-ico_fhe_4402";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4406.PNG"]="ms-crm-ImageStrip-ico_fhe_4406";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4411.PNG"]="ms-crm-ImageStrip-ico_fhe_4411";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4412.PNG"]="ms-crm-ImageStrip-ico_fhe_4412";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4414.PNG"]="ms-crm-ImageStrip-ico_fhe_4414";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4503.PNG"]="ms-crm-ImageStrip-ico_fhe_4503";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4700.PNG"]="ms-crm-ImageStrip-ico_fhe_4700";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4703.PNG"]="ms-crm-ImageStrip-ico_fhe_4703";$v_0["/_IMGS/FORMENTITY/ICO_FHE_4710.PNG"]="ms-crm-ImageStrip-ico_fhe_4710";$v_0["/_IMGS/FORMENTITY/ICO_FHE_7100.PNG"]="ms-crm-ImageStrip-ico_fhe_7100";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9100.PNG"]="ms-crm-ImageStrip-ico_fhe_9100";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9102.PNG"]="ms-crm-ImageStrip-ico_fhe_9102";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9105.PNG"]="ms-crm-ImageStrip-ico_fhe_9105";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9106.PNG"]="ms-crm-ImageStrip-ico_fhe_9106";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9600.PNG"]="ms-crm-ImageStrip-ico_fhe_9600";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9602.PNG"]="ms-crm-ImageStrip-ico_fhe_9602";$v_0["/_IMGS/FORMENTITY/ICO_FHE_9603.PNG"]="ms-crm-ImageStrip-ico_fhe_9603";$v_0["/_IMGS/FORMENTITY/ICO_FHE_SYSTEMENTITY.PNG"]="ms-crm-ImageStrip-ico_fhe_systemEntity";return $v_0};Mscrm.RibbonCommandDefinition=function(){};Mscrm.RibbonCommandDefinition.prototype={Id:null,EnableRules:null,DisplayRules:null,Actions:null};Mscrm.ActionAttributes=function(){};Mscrm.RibbonSelectionDataType=function(){};Mscrm.NavigationMode=function(){};Mscrm.RecordSetNavigation=function(){};Mscrm.ScriptEvents=function(){};Mscrm.IconUtil=function(){};Mscrm.IconUtil.createUri=function(format,encodedSuffix){return Mscrm.CrmUri.create(String.format(format,encodedSuffix))};Mscrm.IconUtil.getIconPath=function(objectTypeCode,iconType,cache,suffix){var $v_0=null;if(IsNull(suffix))suffix=Mscrm.IconUtil.$5C_0(objectTypeCode.toString(),objectTypeCode,iconType);cache=IsNull(cache)?true:cache;if(objectTypeCode>=1e4)$v_0=Mscrm.IconUtil.$55_0(objectTypeCode,iconType,cache);else{var $v_1=CrmEncodeDecode.CrmUrlEncode(suffix);switch(iconType){case 0:$v_0=Mscrm.IconUtil.createUri("/_imgs/ico_16_{0}",$v_1);break;case 1:$v_0=Mscrm.IconUtil.createUri("/_imgs/ico_16_{0}",$v_1);break;case 2:$v_0=Mscrm.IconUtil.createUri("/_imgs/ico_18_{0}",$v_1);break;case 3:$v_0=Mscrm.IconUtil.createUri("/_imgs/olk_{0}",$v_1);break;case 4:$v_0=Mscrm.IconUtil.createUri("/_imgs/ico_lrg_{0}",$v_1);break;case 7:$v_0=Mscrm.IconUtil.createUri("/_imgs/formentity/ico_fhe_{0}",$v_1);break;case 5:$v_0=Mscrm.IconUtil.createUri("/_imgs/ribbon/entity16_{0}",$v_1);break;case 6:$v_0=Mscrm.IconUtil.createUri("/_imgs/ribbon/entity32_{0}",$v_1);break;default:$v_0=Mscrm.CrmUri.create("");break}}return $v_0};Mscrm.IconUtil.hasSeparateRightToLeftImage=function(objectTypeCode,iconType){switch(iconType){case 7:switch(objectTypeCode){case 4401:case 4206:return true}break}return false};Mscrm.IconUtil.$55_0=function($p0,$p1,$p2){var $v_0;switch($p1){case 5:$v_0=Mscrm.IconUtil.createUri("/_imgs/ribbon/entity16_{0}","Custom.png");break;case 6:$v_0=Mscrm.IconUtil.createUri("/_imgs/ribbon/entity32_{0}","Custom.png");break;default:$v_0=Mscrm.IconUtil.$58_0($p0,$p1,$p2);break}return $v_0};Mscrm.IconUtil.$58_0=function($p0,$p1,$p2){var $v_0=Mscrm.CrmUri.create("/_Common/icon.aspx");$v_0.get_query()["objectTypeCode"]=$p0.toString();$v_0.get_query()["iconType"]=Mscrm.IconType.toString($p1);$v_0.get_query()["cache"]=$p2?"1":"0";return $v_0};Mscrm.IconUtil.getFileExtension=function(objectTypeCode,iconType){switch(iconType){case 0:case 1:switch(objectTypeCode){case 4709:case 3231:case 9804:case 4608:case 4618:case 4605:case 7101:case 9600:case 1001:case 5:case 9602:case 9603:case 9604:case 4710:case 4703:case 1111:case 1112:case 1201:case 1200:case 9502:case 9508:case 7105:case 4406:case 8006:case 8003:case 8e3:return ".png";default:return ".gif"}case 2:switch(objectTypeCode){case 3234:case 3231:case 9333:case 9804:case 7101:case 1201:case 1200:case 9603:case 9600:case 9602:return ".png";default:return ".gif"}case 4:switch(objectTypeCode){case 2029:case 3234:case 3231:case 9333:case 9804:case 7100:case 7101:case 4710:case 4703:case 1201:case 1200:return ".png";default:return ".gif"}case 3:return ".ico";case 5:case 6:case 7:return ".png";default:return ".gif"}};Mscrm.IconUtil.$5C_0=function($p0,$p1,$p2){var $v_0=false;switch($p1){case 135:case 1003:case 1004:case 1017:case 1019:case 1021:case 1023:case 1037:case 1086:case 150:case 2012:case 2027:case 3e3:case 4004:case 4007:case 4102:case 33:case 4600:case 4601:case 4602:case 4603:case 4110:case 6:case 4101:case 29:case 30:case 1072:case 4417:case 34:case 4415:case 4416:case 4023:case 4413:case 4423:case 4705:case 4419:case 4420:case 4418:case 4606:case 4607:case 4613:case 4615:case 4609:case 4614:case 4610:case 4611:case 4426:case 4702:case 14:case 4704:case 0:case 4427:case 4707:case 31:case 4501:case 4425:case 36:case 4708:case 4010:case 4011:case 4616:case 4810:case 4812:case 4811:case 4800:case 4803:case 4802:case 9107:$p0="systemEntity";break;case 4212:case 4401:case 4206:case 4208:if($p2===4&&Mscrm.IconUtil.isIconFlipped($p1,4))$v_0=true;break}if($p0.length<=0)$p0="systemEntity";var $v_1=window.LOCID_UI_DIR==="RTL";if($v_0||$v_1&&Mscrm.IconUtil.hasSeparateRightToLeftImage($p1,$p2))$p0+="_rtl";return $p0+Mscrm.IconUtil.getFileExtension($p1,$p2)};Mscrm.IconUtil.isIconFlipped=function(objectTypeCode,iconType){if(IsNull(objectTypeCode))return window.LOCID_UI_DIR==="RTL";var $v_0=false;switch(iconType){case 0:case 2:case 3:break;case 7:case 4:switch(objectTypeCode){case 135:case 5:case 10:case 132:case 1003:case 1004:case 3234:case 3231:case 4502:case 1201:case 1017:case 1019:case 1021:case 9804:case 1023:case 1037:case 1036:case 1086:case 150:case 2012:case 2027:case 2029:case 3e3:case 4004:case 4007:case 4102:case 33:case 4600:case 4602:case 4603:case 4110:case 6:case 4101:case 29:case 30:case 1072:case 4417:case 4415:case 4416:case 4023:case 4413:case 4423:case 4705:case 4419:case 4420:case 4418:case 4605:case 4500:case 4606:case 4607:case 4613:case 4608:case 4615:case 4609:case 4614:case 4610:case 4611:case 4426:case 4702:case 14:case 4703:case 4704:case 0:case 4427:case 4707:case 31:case 4501:case 4425:case 36:case 4708:case 4010:case 4011:case 4616:case 7100:case 4810:case 4812:case 4811:case 4800:case 4803:case 4802:case 9107:case 4212:case 4401:case 1116:case 1115:case 1117:case 1113:case 1130:case 9100:case 4230:case 9333:break;default:$v_0=Mscrm.IconUtil.isIconFlipped();break}break}return $v_0};Mscrm.RibbonConstants=function(){};Mscrm.RuleAppliesTo=function(){};Mscrm.RibbonRuleRelationshipType=function(){};Mscrm.RibbonContexts=function(){};Mscrm.GlobalContext=function(){};Mscrm.GlobalContext.prototype={getAuthenticationHeader:function(){return GenerateAuthenticationHeader()},getOrgLcid:function(){return window.ORG_LANGUAGE_CODE},getOrgUniqueName:function(){return window.ORG_UNIQUE_NAME},getQueryStringParameters:function(){var $v_0=Mscrm.CrmUri.create(window.location.href);return $v_0.get_query()},getServerUrl:function(){return window.SERVER_URL},getUserId:function(){return window.USER_GUID},getUserLcid:function(){return window.USER_LANGUAGE_CODE},getUserRoles:function(){return window.USER_ROLES},isOutlookOnline:function(){return window.IS_ONLINE},isOutlookClient:function(){return window.IS_OUTLOOK_CLIENT},prependOrgName:function(url){return prependOrgName(url)},getCurrentTheme:function(){if(this.isOutlookClient())return window.CURRENT_THEME_TYPE;else return window.CURRENT_WEB_THEME}};Mscrm.EntityTypeCode=function(){};Mscrm.EtcUtil=function(){};Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode=function(objectTypeCode){return objectTypeCode>=1e4};function IsActivityTypeCode(objectTypeCode){return Mscrm.EntityPropUtil.isActivityTypeCode(objectTypeCode)}function IsUserDefinedEntityObjectTypeCode(objectTypeCode){return Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode(objectTypeCode)}Mscrm.SolutionComponentType=function(){};Mscrm.WebResourceConstants=function(){};Mscrm.CrmHeader=function(){};Mscrm.CrmHeader.setScriptFile=function(uri,useInlineScripts){if(!Mscrm.CrmHeader.$2B_0)Mscrm.CrmHeader.$2B_0=new Mscrm.ScriptLoader;if(uri.get_path().toUpperCase()==="/_STATIC/_COMMON/SCRIPTS/GLOBAL.JS")uri=Mscrm.CrmUri.create("/_common/global.ashx");Mscrm.CrmHeader.$2B_0.addInclude(uri,useInlineScripts)};Mscrm.CrmHeader.setStyleSheet=function(uri){if(!Mscrm.CrmHeader.$2E_0)Mscrm.CrmHeader.$2E_0=new Mscrm.StyleLoader;Mscrm.CrmHeader.$2E_0.addInclude(uri)};Mscrm.IncludeLoader=function(){};Mscrm.IncludeLoader.get_$4E_0=function(){var $v_0=document.getElementsByTagName("HEAD");return $v_0[0]};Mscrm.IncludeLoader.prototype={$1x_0:null,addInclude:function($p0,$p1){if(!this.$1x_0)this.$1x_0=this.$5A_0();if(IsNull($p1))$p1=false;var $v_0=$p0.toString(),$v_1=$v_0.toUpperCase();if(!Array.contains(this.$1x_0,$v_1)){this.$5V_0($v_0,$p1);Array.add(this.$1x_0,$v_1)}},$5V_0:function($p0,$p1){var $v_0=Mscrm.XmlUtil.createXmlHttp();$v_0.open("GET",$p0,false);$v_0.send(null);$v_0.status===200&&Mscrm.IncludeLoader.get_$4E_0().appendChild(this.$4u_0($p0,$v_0.responseText,$p1))},$4u_0:function($p0,$p1,$p2){var $v_0=document.createElement(this.get_tagName()),$$dict_1_0=this.get_additionalAttributes();for(var $$key_1_1 in $$dict_1_0){var $v_1={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};$v_0.setAttribute($v_1.key,$v_1.value)}if($p2)$v_0.text=$p1;else $v_0.setAttribute(this.get_urlAttributeName(),$p0);return $v_0},$5A_0:function(){for(var $v_0=[],$v_1=Mscrm.IncludeLoader.get_$4E_0().getElementsByTagName(this.get_tagName()),$v_2=this.get_additionalAttributes(),$v_3=0;$v_3<$v_1.length;$v_3++){var $v_4=$v_1[$v_3],$v_5=$v_4.getAttribute(this.get_urlAttributeName());if(!isNullOrEmptyString($v_5)){$v_5=$v_5.toUpperCase();if(!Array.contains($v_0,$v_5)){var $v_6=true,$$dict_5_0=$v_2;for(var $$key_5_1 in $$dict_5_0){var $v_7={key:$$key_5_1,value:$$dict_5_0[$$key_5_1]},$v_8=$v_4.getAttribute($v_7.key)||"",$v_9=$v_2[$v_7.key]||"";if($v_8.toUpperCase()!==$v_9.toUpperCase()){$v_6=false;break}}$v_6&&Array.add($v_0,$v_5)}}}return $v_0}};Mscrm.ScriptLoader=function(){Mscrm.ScriptLoader.initializeBase(this)};Mscrm.ScriptLoader.prototype={get_additionalAttributes:function(){return {type:"text/javascript"}},get_tagName:function(){return "script"},get_urlAttributeName:function(){return "src"}};Mscrm.StyleLoader=function(){Mscrm.StyleLoader.initializeBase(this)};Mscrm.StyleLoader.prototype={get_additionalAttributes:function(){return {rel:"stylesheet",type:"text/css"}},get_tagName:function(){return "link"},get_urlAttributeName:function(){return "href"}};Mscrm.Dialog=function(container){this.$3b=Function.createDelegate(this,this.$4N_2);this.$3P=Function.createDelegate(this,this.$5N_2);this.$3Z=Function.createDelegate(this,this.$5R_2);this.$3Y=Function.createDelegate(this,this.$5Q_2);this.$1R=Function.createDelegate(this,this.$4J_2);this.$3a=Function.createDelegate(this,this.$5S_2);this.$1H_2=Mscrm.Dialog.$4H_2++;this.$P_2=Mscrm.Dialog.auto;this.$L_2=300;this.$Q_2=Mscrm.Dialog.auto;this.$M_2=Mscrm.Dialog.auto;this.$1s_2="ms-crm-modalDialog";this.$24_2="ms-crm-Floating-Div";this.$23_2=window.LOCID_PAGELOADING_MSG;Mscrm.Dialog.initializeBase(this);if(IsNull(container)){container=document.createElement("div");document.body.appendChild(container)}this.$0_2=container;this.$0_2.style.display="none"};Mscrm.Dialog.createDialog=function(container){return $create(Mscrm.Dialog,null,null,null,container)};Mscrm.Dialog.$4A_2=function($p0){try{$p0.focus()}catch($$e_1_0){}};Mscrm.Dialog.prototype={get_dialogId:function(){if(!IsNull(this.$0_2))return this.$0_2.id;return ""},set_dialogId:function(value){if(!isNullOrEmptyString(value))this.$0_2.id="Dialog_"+value;else this.$0_2.id="Dialog_"+this.$1H_2.toString();return value},$0_2:null,$I_2:null,$19_2:0,$34_2:0,$1O_2:0,$3t_2:0,$2b_2:0,$12_2:false,$11_2:true,$2g_2:true,$3k_2:false,get_$1l_2:function(){return this.$3k_2},set_$1l_2:function($p0){this.$3I_2("rendering",$p0.toString());this.$3k_2=$p0;return $p0},$8_2:false,$2q_2:false,$S_2:0,$x_2:0,$C_2:null,$5_2:null,$B_2:null,$a_2:null,$T_2:null,$m_2:true,$c_2:true,$o_2:true,$18_2:true,$1I_2:false,$1h_2:null,$j_2:null,$2D_2:null,$25_2:null,$35_2:null,$2p_2:null,$k_2:false,$n_2:"ms-crm-LoadingContainer",$D_2:null,$3o_2:"/_imgs/AdvFind/progress.gif",$1Y_2:null,$1i_2:null,$1L_2:null,$1Z_2:0,$1a_2:0,$1D_2:true,$d_2:false,$J_2:null,$4e_2:"ms-crm-modalDialog-shadow",$E_2:null,$1t_2:0,$1v_2:null,$22_2:null,$13_2:true,$14_2:true,get_loadingClassName:function(){return this.$n_2},set_loadingClassName:function(value){this.$n_2=value;if(!IsNull(this.$D_2))this.$D_2.className=value;return value},get_enableShadow:function(){return this.$2g_2},set_enableShadow:function(value){this.$2g_2=value;return value},get_focusOutCheck:function(){return this.$1D_2},set_focusOutCheck:function(value){this.$1D_2=value;return value},get_neverGrabFocus:function(){return this.$d_2},set_neverGrabFocus:function(value){this.$d_2=value;return value},get_reference:function(){return this.$1L_2},set_reference:function(value){this.$1L_2=value;return value},get_hideCallback:function(){return this.$1i_2},set_hideCallback:function(value){this.$1i_2=value;return value},get_top:function(){return this.$S_2},set_top:function(value){if(this.$S_2===value)return;this.$A_2();this.$S_2=IsNull(value)?0:value;this.$8_2=true;return value},get_left:function(){return this.$x_2},set_left:function(value){if(this.$x_2===value)return;this.$A_2();this.$x_2=IsNull(value)?0:value;this.$8_2=true;return value},get_height:function(){return this.$P_2},set_height:function(value){if(this.$P_2===value)return;this.$A_2();this.$P_2=IsNull(value)?Mscrm.Dialog.auto:value;this.$8_2=true;return value},get_width:function(){return this.$L_2},set_width:function(value){if(this.$L_2===value)return;this.$A_2();this.$L_2=IsNull(value)?0:value;this.$8_2=true;return value},get_minHeight:function(){return this.$Q_2},set_minHeight:function(value){if(this.$Q_2===value)return;this.$A_2();this.$Q_2=IsNull(value)?Mscrm.Dialog.auto:value;this.$8_2=true;this.$4b_2();return value},get_maxHeight:function(){return this.$M_2},set_maxHeight:function(value){if(this.$M_2===value)return;this.$A_2();this.$M_2=IsNull(value)?Mscrm.Dialog.auto:value;this.$8_2=true;this.$4b_2();return value},get_header:function(){return this.$C_2},set_header:function(value){if(this.$C_2===value)return;this.$A_2();if(this.$12_2)if(!IsNull(this.$C_2))if(IsNull(value))this.$C_2.parentNode.removeChild(this.$C_2);else this.$C_2.parentNode.replaceChild(value,this.$C_2);else!IsNull(value)&&this.$5_2.insertBefore(value);this.$C_2=value;this.$11_2=true;this.$8_2=true;return value},get_body:function(){return this.$1Y_2},set_body:function(value){if(value===this.$1Y_2)return;if(IsNull(value))value=document.createElement("div");if(!this.$k_2){this.$A_2();if(this.$12_2){this.$5_2.parentNode.replaceChild(this.$5_2,value);this.$11_2=true;this.$8_2=true}this.$5_2=value}this.$1Y_2=value;return value},get_footer:function(){return this.$B_2},set_footer:function(value){if(this.$B_2===value)return;this.$A_2();if(this.$12_2)if(!IsNull(this.$B_2))if(IsNull(value))this.$B_2.parentNode.removeChild(this.$B_2);else this.$B_2.parentNode.replaceChild(value,this.$B_2);else!IsNull(value)&&this.$0_2.appendChild(value);this.$B_2=value;this.$11_2=true;this.$8_2=true;return value},get_focusElementOnHide:function(){return this.$a_2},set_focusElementOnHide:function(value){this.$A_2();this.$a_2=value;return value},get_focusElementOnShow:function(){return this.$T_2},set_focusElementOnShow:function(value){this.$A_2();this.$T_2=value;return value},get_launchesRight:function(){return this.$m_2},set_launchesRight:function(value){if(this.$m_2===value)return;this.$A_2();this.$m_2=value;this.$8_2=true;return value},get_launchesDown:function(){return this.$c_2},set_launchesDown:function(value){if(this.$c_2===value)return;this.$A_2();this.$c_2=value;this.$8_2=true;return value},get_shiftVertical:function(){return this.$o_2},set_shiftVertical:function(value){if(this.$o_2===value)return;this.$A_2();this.$o_2=value;this.$8_2=true;return value},get_showingCallback:function(){return this.$2D_2},set_showingCallback:function(value){this.$2D_2=value;return value},get_shiftHorizontal:function(){return this.$18_2},set_shiftHorizontal:function(value){if(this.$18_2===value)return;this.$A_2();this.$18_2=value;this.$8_2=true;return value},get_isModal:function(){return this.$1I_2},set_isModal:function(value){this.$A_2();this.$1I_2=value;return value},get_zIndex:function(){return this.get_$4K_2()},get_overlayClickCallback:function(){return this.$25_2},set_overlayClickCallback:function(value){this.$A_2();this.$25_2=value;return value},get_containerClassName:function(){return this.$1s_2},set_containerClassName:function(value){this.$1s_2=IsNull(value)?"":value;return value},get_overlayClassName:function(){return this.$24_2},set_overlayClassName:function(value){this.$24_2=IsNull(value)?"":value;return value},get_enforceHorizontalOffset:function(){return this.$13_2},set_enforceHorizontalOffset:function(value){this.$13_2=value;return value},get_enforceVerticalOffset:function(){return this.$14_2},set_enforceVerticalOffset:function(value){this.$14_2=value;return value},get_isLoading:function(){return this.$k_2},set_isLoading:function(value){if(this.$k_2===value)return;this.$k_2=value;this.$8_2=true;if(!this.$12_2)return;if(value){this.$D_2.style.height=this.$5_2.style.height;this.$D_2.style.width=this.$L_2+"px";this.$5_2.parentNode.replaceChild(this.$D_2,this.$5_2);this.$5_2=this.$D_2}else{this.$5_2.parentNode.replaceChild(this.$1Y_2,this.$5_2);this.$5_2=this.$1Y_2}return value},get_isVisible:function(){return this.$0_2.currentStyle.display==="block"},get_bodyHeight:function(){if(IsNull(this.$5_2))return 0;var $v_0=this.$2b_2-Mscrm.Utilities.getVerticalBoxPadding(this.$5_2),$v_1=this.$5_2.offsetHeight-Mscrm.Utilities.getVerticalBoxPadding(this.$5_2);return $v_0<$v_1?$v_1:$v_0},$5Y_2:function(){this.$5I_2()&&Mscrm.Utilities.setOuterWidth(this.$0_2,this.$L_2+this.$4m_2())},$5I_2:function(){var $v_0;if(this.$o_2)$v_0=this.$19_2;else if(this.$c_2)$v_0=this.$19_2+this.$1O_2-this.$S_2;else $v_0=this.$S_2-(this.$1O_2-1);var $v_1=this.$3w_2($v_0),$v_2=$v_1-Mscrm.Utilities.getVerticalBoxPadding(this.$0_2),$v_3=$v_2-this.$1a_2-this.$1Z_2,$v_4=this.$5_2.currentStyle.overflow==="scroll"||this.$5_2.currentStyle.overflowY==="scroll",$v_5=this.$2b_2>$v_3&&(this.$5_2.currentStyle.overflow==="auto"||this.$5_2.currentStyle.overflowY==="auto");if($v_4||$v_5)return true;return false},get_bodyWidth:function(){if(IsNull(this.$0_2)||IsNull(this.$5_2))return 0;var $v_0=this.$L_2-Mscrm.Utilities.getHorizontalBoxPadding(this.$0_2)-Mscrm.Utilities.getHorizontalBoxPadding(this.$5_2);return $v_0},$4m_2:function(){var $v_0=document.createElement("div"),$v_1=document.createElement("p");$v_0.style.position="absolute";$v_0.style.top="0px";$v_0.style.left="0px";$v_0.style.visibility="hidden";$v_0.style.width="300px";$v_0.style.height="150px";$v_0.style.overflow="hidden";$v_1.style.width="100%";$v_1.style.height="300px";$v_0.appendChild($v_1);document.body.appendChild($v_0);var $v_2=$v_1.offsetWidth;$v_0.style.overflow="scroll";var $v_3=$v_1.offsetWidth;if($v_3===$v_2)$v_3=$v_0.clientWidth;document.body.removeChild($v_0);return $v_2-$v_3},get_$4K_2:function(){return 2e3+this.$1H_2*4},get_$4h_2:function(){return 2e3+this.$1H_2*4+1},get_$5f_2:function(){return 2e3+this.$1H_2*4+2},get_$4r_2:function(){return 2e3+this.$1H_2*4+3},initialize:function(){Mscrm.CrmHeader.setStyleSheet(Mscrm.CrmUri.create("/_common/styles/menucore.css.aspx"));this.$4P_2();this.$35_2=this.$3a;$addHandler(window,"resize",this.$35_2);Mscrm.Dialog.callBaseMethod(this,"initialize")},show:function(callback){if(!this.$4a_2())return;this.$3z_2();this.$A_2();this.$1h_2=callback;!this.$12_2&&this.$4t_2();this.set_$1l_2(true);if(this.$11_2)this.$4l_2();else if(this.$8_2)this.$4U_2();else this.$41_2()},hide:function(callback){if(!this.get_isVisible())return;this.$3z_2();this.$A_2();this.$I_2.style.display="none";this.$0_2.style.display="none";this.$J_2.style.display="none";this.$3I_2("displayed","false");this.$4v_2();this.$j_2=callback;if(!IsNull(this.$j_2)||!IsNull(this.$1i_2))this.$4N_2();else{this.set_$1l_2(false);if(!IsNull(this.$a_2)&&!this.$d_2)try{this.$a_2.parentNode&&this.$a_2.focus()}catch($$e_3_0){}}},refresh:function(callback){this.$8_2=true;this.$11_2=true;if(this.get_isVisible())this.show(callback);else!IsNull(callback)&&callback(this)},dispose:function(){if(!this.$2q_2){$removeHandler(window,"resize",this.$35_2);if(this.$12_2){$removeHandler(this.$I_2,"click",this.$2p_2);$removeHandler(this.$0_2,"keydown",this.$1R);this.$0_2.innerHTML="";this.$I_2.parentNode.removeChild(this.$I_2)}this.$0_2=null;this.$I_2=null;this.$C_2=null;this.$5_2=null;this.$B_2=null;!IsNull(this.$J_2)&&this.$J_2.parentNode.removeChild(this.$J_2);this.$2q_2=true}Mscrm.Dialog.callBaseMethod(this,"dispose")},$4P_2:function(){var $v_0=document.documentElement;this.$19_2=Math.round($v_0.offsetHeight*.98);this.$34_2=Math.round($v_0.offsetWidth*.98);this.$1O_2=Math.round(($v_0.offsetHeight-this.$19_2)/2);this.$3t_2=Math.round(($v_0.offsetWidth-this.$34_2)/2)},$4t_2:function(){this.$0_2.className=this.$1s_2;this.$0_2.style.position="absolute";this.$0_2.style.zIndex=this.get_$4r_2();this.$0_2.style.display="none";$addHandler(this.$0_2,"keydown",this.$1R);this.$J_2=document.createElement("div");this.$J_2.className=this.$4e_2;this.$J_2.style.display="none";this.$J_2.style.position="absolute";this.$J_2.style.zIndex=this.get_$5f_2();this.$0_2.parentNode.appendChild(this.$J_2);this.$I_2=document.createElement("div");this.$I_2.className=this.$24_2;this.$I_2.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";this.$I_2.style.zIndex=this.get_$4K_2();this.$I_2.style.display="none";this.$I_2.tabIndex=0;this.$0_2.parentNode.appendChild(this.$I_2);this.$2p_2=this.$3Y;$addHandler(this.$I_2,"click",this.$2p_2);$addHandler(this.$I_2,"focus",this.$3Z);this.$D_2=document.createElement("div");this.$D_2.className=this.$n_2;this.$D_2.id="LoadingContainer";this.$D_2.innerHTML=String.format("<table class='{1}'><tr class='{1}'><td style='vertical-align: middle' align='center'><IMG id='loading' alt='' src='{2}'><br>{0}</td></tr></table>",CrmEncodeDecode.CrmHtmlEncode(this.$23_2),CrmEncodeDecode.CrmHtmlAttributeEncode(this.$n_2),CrmEncodeDecode.CrmHtmlAttributeEncode(this.$3o_2));if(this.$k_2)this.$5_2=this.$D_2;!IsNull(this.$C_2)&&this.$0_2.appendChild(this.$C_2);if(IsNull(this.$5_2))this.$5_2=document.createElement("div");this.$0_2.appendChild(this.$5_2);!IsNull(this.$B_2)&&this.$0_2.appendChild(this.$B_2);this.$12_2=true},$4l_2:function(){if(Mscrm.Utilities.get_isLeftToRight())this.$0_2.style.left="-"+(this.$L_2+1e3)+"px";else this.$0_2.style.left=document.body.offsetWidth+1e3+"px";this.$0_2.style.top="0px";this.$0_2.style.height="auto";Mscrm.Utilities.setOuterWidth(this.$0_2,this.$L_2);this.$0_2.style.display="block";this.$5_2.style.height="auto";window.setTimeout(this.$3P,1)},$5N_2:function(){if(!this.$4a_2())return;this.$1Z_2=0;if(!IsNull(this.$B_2))this.$1Z_2=this.$B_2.offsetHeight;this.$1a_2=0;if(!IsNull(this.$C_2))this.$1a_2=this.$C_2.offsetHeight;this.$1t_2=0;if(!IsNull(this.$0_2)){if(this.$0_2.style.display==="none")this.$0_2.style.display="block";this.$1t_2=this.$0_2.offsetHeight}this.$2b_2=this.$1t_2-Mscrm.Utilities.getVerticalBoxPadding(this.$0_2)-this.$1a_2-this.$1Z_2;this.$4U_2();this.$11_2=false},$4U_2:function(){var $v_0;if(this.$o_2)$v_0=this.$19_2;else if(this.$c_2)$v_0=this.$19_2+this.$1O_2-this.$S_2;else $v_0=this.$S_2-(this.$1O_2-1);var $v_1=this.$3w_2($v_0),$v_2=this.$3x_2(this.$S_2,$v_1-1,this.$14_2?this.$1O_2:0,this.$14_2?this.$19_2:document.documentElement.offsetHeight,this.$o_2,this.$c_2,this.$c_2),$v_3=this.$3x_2(this.$x_2,this.$L_2-1,this.$13_2?this.$3t_2:0,this.$13_2?this.$34_2:document.documentElement.offsetWidth,this.$18_2,Mscrm.Utilities.get_isLeftToRight()?this.$m_2:!this.$m_2,this.$m_2),$v_4=$v_1-Mscrm.Utilities.getVerticalBoxPadding(this.$0_2),$v_5=$v_4-this.$1a_2-this.$1Z_2,$v_6=this.$L_2-Mscrm.Utilities.getHorizontalBoxPadding(this.$0_2),$v_7=$v_5-Mscrm.Utilities.getVerticalBoxPadding(this.$5_2);this.$1v_2=this.$48_2(this.$0_2);this.$22_2=this.$49_2(this.$0_2);this.$5U_2($v_2,$v_3,$v_4,$v_6,$v_7);this.$41_2();this.$8_2=false},$5U_2:function($p0,$p1,$p2,$p3,$p4){Mscrm.Utilities.setInnerHeight(this.$0_2,$p2);Mscrm.Utilities.setInnerWidth(this.$0_2,$p3);this.$0_2.style.top=$p0+"px";this.$0_2.style.left=$p1+"px";Mscrm.Utilities.setInnerHeight(this.$J_2,$p2);Mscrm.Utilities.setInnerWidth(this.$J_2,$p3);this.$J_2.style.top=$p0+1+"px";this.$J_2.style.left=$p1+(Mscrm.Utilities.get_isLeftToRight()?1:-1)+"px";Mscrm.Utilities.setInnerHeight(this.$5_2,$p4)},$41_2:function(){!IsNull(this.$2D_2)&&this.$2D_2(this);this.$5Y_2();this.$I_2.style.display="block";this.$0_2.style.display="block";if(this.$2g_2)this.$J_2.style.display="block";this.$4x_2();if(!IsNull(this.$1h_2))window.setTimeout(this.$3b,1);else{this.set_$1l_2(false);!IsNull(this.$T_2)&&!this.$d_2&&window.setTimeout(Function.createDelegate(this,function(){try{this.$T_2.focus()}catch($$e_4_0){}}),0)}this.$3I_2("displayed","true")},$3I_2:function($p0,$p1){var $v_0=this.$0_2.attributes.getNamedItem($p0);if(IsNull($v_0)){$v_0=document.createAttribute($p0);this.$0_2.attributes.setNamedItem($v_0)}$v_0.value=$p1.toString()},$4x_2:function(){if(!IsNull(this.$E_2)){(this.$11_2||this.$8_2)&&this.$4L_2();return}this.$E_2=document.createElement("iframe");this.$E_2.style.position="absolute";this.$4L_2();this.$E_2.style.zIndex=this.get_$4h_2();this.$E_2.style.opacity="0.0";this.$E_2.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";this.$0_2.parentNode.appendChild(this.$E_2)},$4L_2:function(){this.$E_2.style.top=this.$0_2.style.top;this.$E_2.style.left=Mscrm.Utilities.get_isLeftToRight()?this.$0_2.style.left:Mscrm.Utilities.parseInt(this.$0_2.style.left)-1+"px";this.$E_2.style.width=Mscrm.Utilities.parseInt(this.$0_2.style.width)+1+"px";this.$E_2.style.height=Mscrm.Utilities.parseInt(this.$0_2.style.height)+1+"px"},$4v_2:function(){if(IsNull(this.$E_2)||IsNull(this.$E_2.parentNode))return;this.$E_2.contentWindow.document.body.innerHTML="";this.$E_2.parentNode.removeChild(this.$E_2);this.$E_2=null},$4N_2:function(){this.set_$1l_2(false);if(!IsNull(this.$1h_2)){!this.$d_2&&Mscrm.Dialog.$4A_2(this.$T_2);this.$1h_2(this);this.$1h_2=null}else{!IsNull(this.$a_2)&&!this.$d_2&&Mscrm.Dialog.$4A_2(this.$a_2);!IsNull(this.$1i_2)&&this.$1i_2(this);if(!IsNull(this.$j_2)){this.$j_2(this);this.$j_2=null}}},$3w_2:function($p0){if(this.$P_2!==Mscrm.Dialog.auto&&this.$P_2>$p0)this.$P_2=Mscrm.Dialog.auto;var $v_0;if(this.$P_2===Mscrm.Dialog.auto){$v_0=this.$1t_2;if(this.$M_2!==Mscrm.Dialog.auto&&this.$M_2<$v_0)$v_0=this.$M_2;if(this.$Q_2!==Mscrm.Dialog.auto&&this.$Q_2>$v_0)$v_0=this.$Q_2}else $v_0=this.$P_2;if($v_0>$p0)$v_0=$p0;return $v_0},$3x_2:function($p0,$p1,$p2,$p3,$p4,$p5,$p6){var $v_0;if(!$p4)$v_0=$p5?$p0:$p0-$p1;else if($p5)if($p0+$p1>=$p2+$p3){$v_0=$p2+$p3-($p1+1);if($v_0<$p2&&$p6)$v_0=$p2}else if($p0<$p2)$v_0=$p2;else $v_0=$p0;else if($p0-$p1<$p2){$v_0=$p2;if($p3<$p1+1&&$p6)$v_0=$p2+$p3-($p1+1)}else if($p0>=$p2+$p3)$v_0=$p2+$p3-($p1+1);else $v_0=$p0-$p1;return $v_0},$4a_2:function(){var $v_0=true;if(IsNull(this.$0_2))$v_0=false;return $v_0},$A_2:function(){this.get_$1l_2()&&Error.create("Changing properties or calling methods while the dialog is rendering is not allowed.")},$3z_2:function(){this.$2q_2&&Error.create("You cannot call methods on a dialog that has been disposed.")},$4b_2:function(){if(this.$M_2!==Mscrm.Dialog.auto&&this.$Q_2!==Mscrm.Dialog.auto&&this.$M_2<this.$Q_2)this.$M_2=Mscrm.Dialog.auto},$5Q_2:function($p0){!this.$1I_2&&this.hide();!IsNull(this.$25_2)&&this.$25_2(this);$p0.stopPropagation();$p0.preventDefault()},$5S_2:function($p0){this.$8_2=true;this.$4P_2();this.hide()},$48_2:function($p0){var $v_0=IsNull($p0.attributes)?null:$p0.getAttribute("tabindex",2),$v_1=IsNull($v_0)||$v_0===32768?null:$p0;if($p0.hasChildNodes())for(var $v_2=$p0.childNodes,$v_3=0;$v_3<$v_2.length&&IsNull($v_1);$v_3++)$v_1=this.$48_2($v_2[$v_3]);return $v_1},$49_2:function($p0){var $v_0=null;if($p0.hasChildNodes())for(var $v_1=$p0.childNodes,$v_2=$v_1.length-1;$v_2>=0&&IsNull($v_0);$v_2--)$v_0=this.$49_2($v_1[$v_2]);if(IsNull($v_0)){var $v_3=IsNull($p0.attributes)?null:$p0.getAttribute("tabindex",2);$v_0=IsNull($v_3)||$v_3===32768?null:$p0}return $v_0},$5R_2:function($p0){if(!IsNull(this.$T_2))try{this.$T_2.focus()}catch($$e_2_0){}},$4J_2:function($p0){if($p0.target===this.$1v_2&&$p0.keyCode===9&&$p0.shiftKey){$p0.stopPropagation();$p0.preventDefault();!IsNull(this.$22_2)&&this.$22_2.focus()}else if($p0.target===this.$22_2&&$p0.keyCode===9&&!$p0.shiftKey){$p0.stopPropagation();$p0.preventDefault();!IsNull(this.$1v_2)&&this.$1v_2.focus()}}};Mscrm.Menu=function(container){this.$3U=Function.createDelegate(this,this.$5P_2);this.$3O=Function.createDelegate(this,this.$5M_2);this.$2X=Function.createDelegate(this,this.$5F_2);this.$1R=Function.createDelegate(this,this.$4J_2);this.$P_2=Mscrm.Dialog.auto;this.$Q_2=Mscrm.Dialog.auto;this.$M_2=Mscrm.Dialog.auto;this.$3_2=new Array(0);this.$23_2=window.LOCID_PAGELOADING_MSG;Mscrm.Menu.initializeBase(this);this.$0_2=container;this.set_stylePrefix("");this.$2s_2=this.$1R};Mscrm.Menu.createMenu=function(container){return $create(Mscrm.Menu,null,null,null,container)};Mscrm.Menu.prototype={$L_2:300,$S_2:0,$x_2:0,$C_2:null,$5_2:null,$B_2:null,$T_2:null,$a_2:null,$m_2:true,$c_2:true,$o_2:true,$18_2:true,$4d_2:null,$7_2:null,$0_2:null,$2_2:null,$9_2:null,$l_2:true,$8_2:false,$2F_2:null,$b_2:null,$30_2:"/_imgs/viewpicker_arrow_default.png",$2v_2:"",$1d_2:"",$2n_2:"/_imgs/imagestrips/transparent_spacer.gif",$3f_2:"",$G_2:null,$R_2:null,$1G_2:null,$17_2:null,$y_2:null,$1T_2:null,$U_2:false,$1I_2:false,$1E_2:true,$i_2:0,$1L_2:null,$1M_2:null,$3h_2:null,$w_2:true,$k_2:false,$q_2:null,$1V_2:null,$j_2:null,$31_2:null,$3l_2:false,$1r_2:null,$2s_2:null,$20_2:false,$1D_2:true,$28_2:true,$D_2:null,$3o_2:"/_imgs/AdvFind/progress.gif",$n_2:"ms-crm-LoadingContainer",$4_2:null,$3g_2:null,$1F_2:false,$2k_2:true,$u_2:true,$13_2:true,$14_2:true,get_loadingClassName:function(){return this.$n_2},set_loadingClassName:function(value){this.$n_2=value;if(!IsNull(this.$2_2))this.$2_2.set_loadingClassName(value);else if(!IsNull(this.$D_2))this.$D_2.className=value;return value},get_auxIconTooltip:function(){return this.$3g_2},set_auxIconTooltip:function(value){this.$3g_2=value;return value},get_hideOnAuxAction:function(){return this.$1F_2},set_hideOnAuxAction:function(value){this.$1F_2=value;return value},get_propagateStyle:function(){return this.$28_2},set_propagateStyle:function(value){this.$28_2=value;return value},get_submenuIconPath:function(){return this.$30_2},set_submenuIconPath:function(value){this.$30_2=value;return value},get_hasItems:function(){return !IsNull(this.$3_2)&&this.$3_2.length>0},get_selectedItem:function(){return this.$4d_2},get_enforceHorizontalOffset:function(){return this.$13_2},set_enforceHorizontalOffset:function(value){this.$13_2=value;return value},get_enforceVerticalOffset:function(){return this.$14_2},set_enforceVerticalOffset:function(value){this.$14_2=value;return value},get_focusOutCheck:function(){return this.$1D_2},set_focusOutCheck:function(value){this.$1D_2=value;!IsNull(this.$2_2)&&this.$2_2.set_focusOutCheck(this.$1D_2);!IsNull(this.get_parentMenu())&&this.get_parentMenu().set_focusOutCheck(value);return value},$d_2:false,get_neverGrabFocus:function(){return this.$d_2},set_neverGrabFocus:function(value){this.$d_2=value;return value},get_zIndex:function(){this.$1j_2();return this.$2_2.get_zIndex()},get_parentMenu:function(){return this.$7_2},set_parentMenu:function(value){this.$7_2=value;this.$3J_2();return value},get_top:function(){return this.$S_2},set_top:function(value){this.$S_2=value;return value},get_left:function(){return this.$x_2},set_left:function(value){this.$x_2=value;return value},get_height:function(){return this.$P_2},set_height:function(value){this.$P_2=value;return value},get_width:function(){return this.$L_2},set_width:function(value){this.$L_2=value;return value},get_minHeight:function(){return this.$Q_2},set_minHeight:function(value){this.$Q_2=value;return value},get_maxHeight:function(){return this.$M_2},set_maxHeight:function(value){this.$M_2=value;return value},get_header:function(){return this.$C_2},set_header:function(value){this.$C_2=value;return value},get_body:function(){return this.$5_2},set_body:function(value){this.$5_2=value;return value},get_footer:function(){return this.$B_2},set_footer:function(value){this.$B_2=value;return value},get_focusElementOnHide:function(){return this.$a_2},set_focusElementOnHide:function(value){this.$a_2=value;return value},get_focusElementOnShow:function(){if(!IsNull(this.$T_2))return this.$T_2;else if(this.$3_2.length>0&&this.$2k_2){for(var $v_0=0;$v_0<this.$3_2.length;$v_0++){var $v_1=this.$3_2[$v_0];if($v_1.get_isFocusable())if($v_1.get_isMenu())return $v_1.get_focusElementOnShow();else return $v_1.get_focusElement()}return this.$9_2}else{this.set_activeItemIndex(Mscrm.Menu.$s_2);return this.$9_2}},set_focusElementOnShow:function(value){this.$T_2=value;this.$2k_2=false;return value},get_launchesRight:function(){return this.$m_2},set_launchesRight:function(value){this.$m_2=value;return value},get_launchesDown:function(){return this.$c_2},set_launchesDown:function(value){this.$c_2=value;return value},get_shiftVertical:function(){return this.$o_2},set_shiftVertical:function(value){this.$o_2=value;return value},get_shiftHorizontal:function(){return this.$18_2},set_shiftHorizontal:function(value){this.$18_2=value;return value},get_isVertical:function(){return this.$l_2},set_isVertical:function(value){this.$l_2=value;return value},get_itemContents:function(){this.$1j_2();this.$1m_2();return this.$b_2},set_itemContents:function(value){this.$b_2=value;return value},get_className:function(){return this.$1T_2},set_className:function(value){this.$1T_2=value;return value},get_title:function(){return this.$2F_2},set_title:function(value){this.$2F_2=value;return value},get_menuItemId:function(){return this.$2v_2},set_menuItemId:function(value){this.$2v_2=value;return value},get_menuId:function(){return this.$1d_2},set_menuId:function(value){this.$1d_2=value;return value},get_iconPath:function(){return this.$2n_2},set_iconPath:function(value){this.$2n_2=value;return value},get_auxIconPath:function(){return this.$3f_2},set_auxIconPath:function(value){this.$3f_2=value;return value},get_itemClassName:function(){return this.$G_2},set_itemClassName:function(value){this.$G_2=value;return value},get_auxIconClassName:function(){return this.$R_2},set_auxIconClassName:function(value){this.$R_2=value;return value},get_iconClassName:function(){return this.$1G_2},set_iconClassName:function(value){this.$G_2=value;return value},get_separatorClassName:function(){return this.$17_2},set_separatorClassName:function(value){this.$17_2=value;return value},get_textClassName:function(){return this.$y_2},set_textClassName:function(value){this.$y_2=value;return value},get_isInline:function(){return this.$U_2},set_isInline:function(value){this.$U_2=value;this.$3J_2();return value},get_isModal:function(){return this.$1I_2},set_isModal:function(value){this.$1I_2=value;!IsNull(this.$2_2)&&this.$2_2.set_isModal(value);return value},get_hideOnAction:function(){return this.$1E_2},set_hideOnAction:function(value){this.$1E_2=value;return value},get_actionCallback:function(){return !IsNull(this.$4_2)?this.$4_2.get_actionCallback():null},set_actionCallback:function(value){return value},get_auxActionCallback:function(){return null},set_auxActionCallback:function(value){return value},get_reference:function(){return this.$1L_2},set_reference:function(value){this.$1L_2=value;return value},get_contextMenu:function(){return this.$3h_2},set_contextMenu:function(value){this.$3h_2=value;return value},get_hideParentOnContextItemAction:function(){return this.$w_2},set_hideParentOnContextItemAction:function(value){this.$w_2=value;return value},get_activeItemIndex:function(){return this.$i_2},set_activeItemIndex:function(value){this.$i_2=value;value!==Mscrm.Menu.$s_2&&!IsNull(this.$7_2)&&this.$7_2.set_activeItemIndex(parseInt(this.get_itemContents().attributes.getNamedItem("itemIndex").value,10));return value},get_tooltip:function(){return IsNull(this.$1M_2)?this.$2F_2:this.$1M_2},set_tooltip:function(value){this.$1M_2=value;return value},get_isLoading:function(){return this.$k_2},set_isLoading:function(value){this.$k_2=value;if(!IsNull(this.$2_2))this.$2_2.set_isLoading(value);else if(this.$U_2)if(value)this.$43_2();else this.$42_2();return value},get_stylePrefix:function(){return this.$q_2},set_stylePrefix:function(value){this.$q_2=!IsNull(value)?value:"";this.$3J_2();return value},get_activeItem:function(){return this.$i_2!==Mscrm.Menu.$s_2?this.$3_2[this.$i_2]:null},set_activeItem:function(value){var $v_0=value.get_itemContents().attributes.getNamedItem("itemIndex");if(IsNull($v_0))return;var $v_1=parseInt($v_0.value,10);this.set_activeItemIndex(isNaN($v_1)?0:$v_1);return value},get_contextItem:function(){return this.$1V_2},set_contextItem:function(value){this.$1V_2=value;return value},get_hideCallback:function(){return this.$j_2},set_hideCallback:function(value){this.$j_2=value;return value},get_subMenuShowCallback:function(){return this.$31_2},set_subMenuShowCallback:function(value){this.$31_2=value;return value},get_isSelected:function(){return this.$3l_2},set_isSelected:function(value){this.$3l_2=value;return value},get_isFocusable:function(){for(var $v_0=0;$v_0<this.$3_2.length;$v_0++)if(this.$3_2[0].get_isFocusable())return true;return false},set_isFocusable:function(value){return value},get_auxIconMatchesItem:function(){return this.$u_2},set_auxIconMatchesItem:function(value){this.$u_2=value;!IsNull(this.$4_2)&&this.$4_2.set_auxIconMatchesItem(value);return value},get_isVisible:function(){if(IsNull(this.$9_2))return false;return this.$U_2?this.$7_2.get_isVisible():this.$2_2.get_isVisible()},get_focusElement:function(){this.$1j_2();this.$1m_2();if(this.$U_2||this.get_isVisible()){var $v_0=0;while($v_0<this.$3_2.length&&IsNull(this.$3_2[$v_0].get_actionCallback()))$v_0++;return $v_0<this.$3_2.length?this.$3_2[$v_0].get_focusElement():null}else return IsNull(this.$4_2)?null:this.$4_2.get_focusElement()},get_isMenu:function(){return true},get_hasNextItem:function(){return !IsNull(this.$3D_2(true))},get_hasPreviousItem:function(){return !IsNull(this.$3D_2(false))},get_menuItems:function(){return this.$3_2},get_inlineItem:function(){return this.$4_2},show:function(callback){this.$1j_2();this.$1m_2();this.$3K_2();if(!this.get_isLoading()&&(IsNull(this.$3_2)||!this.$3_2.length))return;if(!this.$20_2&&(IsNull(this.$7_2)||!this.$U_2)){$addHandler(this.$9_2,"keydown",this.$2s_2);this.$20_2=true}if(IsNull(callback))this.$2_2.show();else this.$2_2.show(Function.createDelegate(this,function($p1_0){callback(this)}))},hide:function(callback){if(this.$20_2){$removeHandler(this.$9_2,"keydown",this.$2s_2);this.$20_2=false}if(!this.get_isVisible())return;if(this.$U_2)this.$7_2.hide();else if(IsNull(callback))this.$2_2.hide();else this.$2_2.hide(Function.createDelegate(this,function($p1_0){callback(this)}))},hideAll:function(hideParentOnContextItem){this.hide();!IsNull(this.$7_2)&&this.$7_2.hideAll(hideParentOnContextItem);!IsNull(this.$1V_2)&&!IsNull(this.$1V_2.get_parentMenu())&&hideParentOnContextItem&&this.$1V_2.get_parentMenu().hideAll(hideParentOnContextItem)},refresh:function(callback){this.$8_2=true;this.$1j_2();this.$1m_2();this.$3K_2();if(IsNull(callback))this.$2_2.refresh();else this.$2_2.refresh(Function.createDelegate(this,function($p1_0){callback(this)}))},dispose:function(){!IsNull(this.$2_2)&&this.$2_2.dispose();!IsNull(this.$0_2)&&window.document.body.removeChild(this.$0_2);Mscrm.Menu.callBaseMethod(this,"dispose")},addItem:function(item){this.$3_2[this.$3_2.length]=item;item.set_parentMenu(this);this.$8_2=true},insertItem:function(item,position){var $v_0=position;if($v_0>this.$3_2.length)$v_0=this.$3_2.length;if($v_0<0)$v_0=0;for(var $v_1=this.$3_2.length;$v_1>$v_0;$v_1--)this.$3_2[$v_1]=this.$3_2[$v_1-1];this.$3_2[$v_0]=item;item.set_parentMenu(this);this.$8_2=true},clear:function(){this.$3_2=new Array(0);this.$8_2=true;this.$1m_2()},selectPreviousItem:function(){this.selectItem(false)},selectNextItem:function(){this.selectItem(true)},displayRestStyle:function(){if(!this.get_isInline()&&!IsNull(this.get_parentMenu())&&this.get_isVisible())return;!IsNull(this.$4_2)&&this.$4_2.displayRestStyle()},displayHoverStyle:function(){!IsNull(this.$4_2)&&this.$4_2.displayHoverStyle()},displaySelectedStyle:function(){!IsNull(this.$4_2)&&this.$4_2.displaySelectedStyle()},selectItem:function(down){var $v_0=this.$3D_2(down);if(IsNull($v_0))return;if($v_0.get_isMenu()&&$v_0.get_isInline()){$v_0!==this.$3_2[this.$i_2]&&$v_0.set_activeItemIndex(Mscrm.Menu.$s_2);if(down)$v_0.selectNextItem();else $v_0.selectPreviousItem()}else{$v_0.displaySelectedStyle();!this.$d_2&&$v_0.get_focusElement().focus()}},$3D_2:function($p0){var $v_0=null;if(this.$i_2!==Mscrm.Menu.$s_2){$v_0=this.$3_2[this.$i_2];if($v_0.get_isMenu()&&$v_0.get_isInline()&&($p0&&$v_0.get_hasNextItem()||!$p0&&$v_0.get_hasPreviousItem()))return $v_0}var $v_1=$p0?1:-1,$v_2=$p0?this.$3_2.length:-1,$v_3=this.$i_2===Mscrm.Menu.$s_2&&!$p0?this.$3_2.length:this.$i_2;if($v_3===Mscrm.Menu.$s_2&&!this.$3_2.length||$p0&&$v_3+$v_1>=$v_2||!$p0&&$v_3+$v_1<=$v_2)return null;var $v_4=false,$v_5=true;do{$v_3+=$v_1;$v_5=$p0&&$v_3+$v_1<$v_2||!$p0&&$v_3+$v_1>$v_2;$v_0=this.$3_2[$v_3];if(!this.$9_2.contains($v_0.get_itemContents()))continue;$v_4=false;if($v_0.get_isMenu()&&$v_0.get_isInline()){var $v_6=$v_0;if($v_6.get_menuItems().length>0){$v_6.set_activeItemIndex(Mscrm.Menu.$s_2);$v_4=$p0&&$v_6.get_hasNextItem()||!$p0&&$v_6.get_hasPreviousItem()}}}while($v_5&&!$v_4&&IsNull($v_0.get_actionCallback()));return $v_5||$v_4||!IsNull($v_0.get_actionCallback())?$v_0:null},setHeight:function(height){Mscrm.Utilities.setOuterHeight(this.get_itemContents(),height)},$1j_2:function(){if(!IsNull(this.$9_2))return;this.$9_2=document.createElement("ul");this.$9_2.className=this.$1T_2;if(!isNullOrEmptyString(this.$1d_2))this.$9_2.id=this.$1d_2;if(!this.$2k_2&&IsNull(this.$T_2))this.$9_2.tabIndex=0;if(!IsNull(this.$7_2))if(this.$U_2){this.$b_2=document.createElement("li");this.$D_2=document.createElement("div");this.$D_2.className=this.$n_2;this.$D_2.innerHTML=String.format("<table class='{1}'><tr class='{1}'><td style='vertical-align: middle' align='center'><IMG id='loading' alt='' src='{2}'><br>{0}</td></tr></table>",CrmEncodeDecode.CrmHtmlEncode(this.$23_2),CrmEncodeDecode.CrmHtmlAttributeEncode(this.$n_2),CrmEncodeDecode.CrmHtmlAttributeEncode(this.$3o_2));this.$9_2.style.width=this.$L_2+"px";if(this.$k_2)this.$43_2();else this.$42_2()}else{this.$4_2=Mscrm.MenuItem.createMenuItem(this.$2F_2);this.$4_2.set_menuItemId(this.$2v_2);this.$4_2.set_tooltip(this.get_tooltip());this.$4_2.set_iconPath(this.$2n_2);this.$b_2=this.$4_2.get_itemContents();this.$4_2.set_actionCallback(this.$2X);this.$4_2.set_auxActionCallback(this.$2X);this.$4_2.set_parentMenu(this.$7_2);this.$4_2.set_stylePrefix(this.$q_2);this.$4_2.set_hideOnAction(false);this.$4_2.set_hideOnAuxAction(false);this.$4_2.set_auxIconPath(this.$30_2);this.$4_2.set_auxIconMatchesItem(this.$u_2)}if(!this.$U_2){if(IsNull(this.$0_2)){this.$0_2=document.createElement("div");document.body.appendChild(this.$0_2)}this.$2_2=Mscrm.Dialog.createDialog(this.$0_2);this.$2_2.set_showingCallback(this.$3O);this.$2_2.set_isModal(this.$1I_2);this.$1r_2=document.createElement("div");this.$1r_2.className=this.$1T_2;this.$1r_2.appendChild(this.$9_2);this.$3K_2()}},$5M_2:function($p0){Mscrm.Utilities.setOuterWidth(this.$9_2,$p0.get_bodyWidth());if(!this.$l_2)for(var $v_0=$p0.get_bodyHeight()-Mscrm.Utilities.getVerticalBoxPadding(this.$9_2),$v_1=0;$v_1<this.$3_2.length;$v_1++)this.$3_2[$v_1].setHeight($v_0);else for(var $v_2=$p0.get_bodyWidth()-Mscrm.Utilities.getHorizontalBoxPadding(this.$9_2),$v_3=0;$v_3<this.$3_2.length;$v_3++){var $v_4=this.$3_2[$v_3].get_itemContents();Mscrm.Utilities.setOuterWidth($v_4,$v_2)}},$43_2:function(){if(IsNull(this.$D_2))return;for(var $v_0=this.$b_2.children,$v_1=0;$v_1<$v_0.length;$v_1++)$v_0[$v_1].parentNode.removeChild($v_0[$v_1]);this.$b_2.appendChild(this.$D_2)},$42_2:function(){if(IsNull(this.$9_2))return;for(var $v_0=this.$b_2.children,$v_1=0;$v_1<$v_0.length;$v_1++)$v_0[$v_1].parentNode.removeChild($v_0[$v_1]);!IsNull(this.$C_2)&&this.$b_2.appendChild(this.$C_2);this.$b_2.appendChild(this.$9_2);!IsNull(this.$B_2)&&this.$b_2.appendChild(this.$B_2)},$3K_2:function(){if(!IsNull(this.$2_2)){this.$2_2.set_top(this.$S_2);this.$2_2.set_left(this.$x_2);this.$2_2.set_height(this.$P_2);this.$2_2.set_minHeight(this.$Q_2);this.$2_2.set_maxHeight(this.$M_2);this.$2_2.set_width(this.$L_2);this.$2_2.set_header(this.$C_2);this.$2_2.set_isLoading(this.$k_2);this.$2_2.set_body(this.$1r_2);this.$2_2.set_footer(this.$B_2);this.$2_2.set_dialogId(this.$1d_2);this.$2_2.set_focusElementOnShow(this.get_focusElementOnShow());this.$2_2.set_focusElementOnHide(this.$a_2);this.$2_2.set_launchesRight(this.$m_2);this.$2_2.set_launchesDown(this.$c_2);this.$2_2.set_shiftHorizontal(this.$18_2);this.$2_2.set_shiftVertical(this.$o_2);this.$2_2.set_hideCallback(this.$3U);this.$2_2.set_focusOutCheck(this.$1D_2);this.$2_2.set_loadingClassName(this.$n_2);this.$2_2.set_enforceHorizontalOffset(this.$13_2);this.$2_2.set_enforceVerticalOffset(this.$14_2);this.$2_2.set_neverGrabFocus(this.$d_2)}},$3J_2:function(){var $v_0=this.$q_2;if($v_0!=="")$v_0=String.format("{0}-",$v_0);this.$G_2=String.format("ms-crm-{0}MenuItem ms-crm-{0}MenuItem-Rest{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix());this.$R_2=String.format("ms-crm-{0}MenuItem-Aux{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix());this.$1G_2=String.format("ms-crm-{0}MenuItem-Icon{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix());this.$17_2=String.format("ms-crm-{0}MenuItem-Sep{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix());this.$y_2=String.format("ms-crm-{0}MenuItem-Title{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix());this.$1T_2=String.format("ms-crm-{2}{0}Menu{1}",$v_0,Mscrm.MenuStyles.get_modeSuffix(),this.$U_2?"in-":"");!IsNull(this.$4_2)&&this.$4_2.set_stylePrefix(String.format("{0}sub",this.$q_2));if(this.$28_2)for(var $v_1=0;$v_1<this.$3_2.length;$v_1++){this.$3_2[$v_1].set_stylePrefix(this.$q_2);var $v_2=this.$3_2[$v_1].get_isMenu()?this.$3_2[$v_1]:null;!IsNull($v_2)&&!$v_2.get_isInline()&&!IsNull($v_2.get_inlineItem())&&$v_2.get_inlineItem().set_stylePrefix(this.$q_2)}},$1m_2:function(){if(!this.$8_2||IsNull(this.$9_2))return;if(IsNull(this.$9_2))return;for(var $v_0=this.$9_2.children,$v_1=$v_0.length,$v_2=0;$v_2<$v_1;$v_2++)$v_0[0].parentNode.removeChild($v_0[0]);for(var $v_3=0;$v_3<this.$3_2.length;$v_3++){var $v_4=this.$3_2[$v_3].get_itemContents();if(this.$3_2[$v_3].get_isMenu()){var $v_6=this.$3_2[$v_3];if($v_6.get_isInline()&&!$v_6.get_hasItems()&&IsNull($v_6.get_header())&&IsNull($v_6.get_footer())&&!$v_6.get_isLoading())continue}if(this.$l_2)$v_4.style.styleFloat="none";else $v_4.style.styleFloat=Mscrm.Utilities.get_isLeftToRight()?"left":"right";var $v_5=document.createAttribute("itemIndex");$v_5.value=$v_3.toString();$v_4.attributes.setNamedItem($v_5);this.$28_2&&this.$q_2!==""&&this.$3_2[$v_3].set_stylePrefix(this.$q_2);this.$9_2.appendChild($v_4)}this.$8_2=false},$4J_2:function($p0){switch($p0.keyCode){case 40:this.selectNextItem();$p0.stopPropagation();$p0.preventDefault();break;case 38:this.selectPreviousItem();$p0.stopPropagation();$p0.preventDefault();break;case 27:this.hide();$p0.stopPropagation();$p0.preventDefault();break}},$5P_2:function($p0){!IsNull(this.$j_2)&&this.$j_2(this);if(!IsNull(this.$7_2)&&!this.$U_2){this.$4_2.set_isSelected(false);this.$7_2.set_focusOutCheck(true);try{this.$7_2.get_isVisible()&&this.$4_2.get_focusElement().focus()}catch($$e_2_0){}}},$5F_2:function($p0){this.$7_2.set_focusOutCheck(false);var $v_0=Mscrm.Utilities.getXYPos(this.$4_2.get_itemContents(),!Mscrm.Utilities.get_isLeftToRight()),$v_1=parseInt($v_0["y"],10);this.$S_2=$v_1;this.$x_2=Mscrm.Utilities.get_isLeftToRight()?this.$7_2.get_left()+this.$7_2.get_width():this.$7_2.get_left()-this.$7_2.get_width();this.$4_2.set_isSelected(true);this.show(this.$31_2)}};Mscrm.MenuItem=function(){this.$3W=Function.createDelegate(this,this.onMouseOut);this.$3X=Function.createDelegate(this,this.onMouseOver);this.$3S=Function.createDelegate(this,this.onClick);this.$2Y=Function.createDelegate(this,this.onAuxMouseOut);this.$2Z=Function.createDelegate(this,this.onAuxMouseOver);this.$3Q=Function.createDelegate(this,this.onAuxClick);this.$3T=Function.createDelegate(this,this.onContextMenu);this.$2a=Function.createDelegate(this,this.onKeyDown);this.$3R=Function.createDelegate(this,this.onBlur);this.$3V=Function.createDelegate(this,this.onFocus);this._renderFormat=Mscrm.MenuItem.formaT_IMAGE_SEP_TITLE_AUX;Mscrm.MenuItem.initializeBase(this);this.set_stylePrefix("");this._menuItemId=String.format("item{0}",Mscrm.MenuItem.$3F_2.toString());Mscrm.MenuItem.$3F_2++};Mscrm.MenuItem.createMenuItem=function(title){var $v_0=$create(Mscrm.MenuItem);$v_0.set_title(title);return $v_0};Mscrm.MenuItem.prototype={_isSpacer:false,_stylePrefix:null,_itemContents:null,$7_2:null,_auxAnchor:null,_auxIcon:null,_anchor:null,_icon:null,_iconSpan:null,_separator:null,_text:null,_menuItemId:"",_iconPath:"/_imgs/imagestrips/transparent_spacer.gif",_auxIconPath:"",$G_2:null,$3m_2:null,$3n_2:null,$3c_2:null,$3e_2:null,$3d_2:null,$1G_2:null,$2m_2:null,$2o_2:null,$R_2:null,$10_2:null,$1q_2:null,$17_2:null,$3r_2:null,$3s_2:null,$y_2:null,$32_2:null,$33_2:null,_title:null,_actionCallback:null,_auxActionCallback:null,$1L_2:null,_contextMenu:null,$1M_2:null,_selected:false,$3i_2:true,$1p_2:true,$1E_2:true,$1F_2:true,$w_2:true,_auxIconTooltip:null,$u_2:false,get_menuItemId:function(){return this._menuItemId},set_menuItemId:function(value){this._menuItemId=value;return value},get_auxIconTooltip:function(){return this._auxIconTooltip},set_auxIconTooltip:function(value){this._auxIconTooltip=value;!IsNull(this._auxIcon)&&this._auxIcon.setAttribute("alt",value);return value},get_hideOnAction:function(){return this.$1E_2},set_hideOnAction:function(value){this.$1E_2=value;return value},get_hideOnAuxAction:function(){return this.$1F_2},set_hideOnAuxAction:function(value){this.$1F_2=value;return value},get_hideParentOnContextItemAction:function(){return this.$w_2},set_hideParentOnContextItemAction:function(value){this.$w_2=value;return value},get_auxIconMatchesItem:function(){return this.$u_2},set_auxIconMatchesItem:function(value){this.$u_2=value;return value},get_renderFormat:function(){return this._renderFormat},set_renderFormat:function(value){this._renderFormat=value;return value},get_parentMenu:function(){return this.$7_2},set_parentMenu:function(value){this.$7_2=value;return value},get_iconPath:function(){return this._iconPath},set_iconPath:function(value){this._iconPath=value;!IsNull(this._itemContents)&&this._icon.setAttribute("src",value);return value},get_auxIconPath:function(){return this._auxIconPath},set_auxIconPath:function(value){this._auxIconPath=value;if(!IsNull(this._itemContents)){this._auxIcon.setAttribute("src",value);this._auxAnchor.style.display="inline"}return value},get_itemClassName:function(){return this.$G_2},set_itemClassName:function(value){this.$G_2=value;return value},get_auxIconClassName:function(){return this.$R_2},set_auxIconClassName:function(value){this.$R_2=value;return value},get_iconClassName:function(){return this.$1G_2},set_iconClassName:function(value){this.$G_2=value;return value},get_separatorClassName:function(){return this.$17_2},set_separatorClassName:function(value){this.$17_2=value;return value},get_textClassName:function(){return this.$y_2},set_textClassName:function(value){this.$y_2=value;return value},get_itemContents:function(){IsNull(this._itemContents)&&this.createElements();return this._itemContents},set_itemContents:function(value){this._itemContents=value;return value},get_title:function(){return this._title},set_title:function(value){this._title=value;if(!IsNull(this._text))this._text.firstChild.innerText=this._title;return value},get_tooltip:function(){return IsNull(this.$1M_2)?this._title:this.$1M_2},set_tooltip:function(value){this.$1M_2=value;return value},get_actionCallback:function(){return this._actionCallback},set_actionCallback:function(value){this._actionCallback=value;if(!IsNull(this._anchor))this._itemContents.tabIndex=IsNull(value)?null:0;return value},get_auxActionCallback:function(){return this._auxActionCallback},set_auxActionCallback:function(value){this._auxActionCallback=value;if(!IsNull(this._auxAnchor))this._auxAnchor.tabIndex=this.$1p_2?0:-1;return value},get_reference:function(){return this.$1L_2},set_reference:function(value){this.$1L_2=value;return value},get_contextMenu:function(){return this._contextMenu},set_contextMenu:function(value){this._contextMenu=value;return value},get_stylePrefix:function(){return this._stylePrefix},set_stylePrefix:function(value){if(this._stylePrefix===value)return;if(!isNullOrEmptyString(value)){this._stylePrefix=value;value=String.format("{0}-",value)}else if(IsNull(value)){value="";this._stylePrefix=value}this.$5a_2(value);if(this._selected)this.displaySelectedStyle();else this.displayRestStyle();return value},$5a_2:function($p0){var $v_0=Mscrm.MenuItem.$37_2[$p0];if(IsNull($v_0)){$v_0=this.$4j_2($p0);Mscrm.MenuItem.$37_2[$p0]=$v_0}this.$4g_2($v_0)},$4g_2:function($p0){this.$G_2=$p0["itemClassName"].toString();this.$3m_2=$p0["itemHoverClassName"].toString();this.$3n_2=$p0["itemSelectedClassName"].toString();this.$3c_2=$p0["anchorClassName"].toString();this.$3d_2=$p0["anchorHoverClassName"].toString();this.$3e_2=$p0["anchorSelectedClassName"].toString();this.$1G_2=$p0["iconClassName"].toString();this.$2m_2=$p0["iconHoverClassName"].toString();this.$2o_2=$p0["iconSelectedClassName"].toString();this.$R_2=$p0["auxIconClassName"].toString();this.$10_2=$p0["auxIconHoverClassName"].toString();this.$1q_2=$p0["auxIconSelectedClassName"].toString();this.$17_2=$p0["separatorClassName"].toString();this.$3r_2=$p0["separatorHoverClassName"].toString();this.$3s_2=$p0["separatorSelectedClassName"].toString();this.$y_2=$p0["textClassName"].toString();this.$32_2=$p0["textHoverClassName"].toString();this.$33_2=$p0["textSelectedClassName"].toString()},$4j_2:function($p0){var $v_0={},$v_1=Mscrm.MenuStyles.get_modeSuffix();$v_0["itemClassName"]=String.format("ms-crm-{0}MenuItem{1} ms-crm-{0}MenuItem-Rest{1}",$p0,$v_1);$v_0["itemHoverClassName"]=String.format("ms-crm-{0}MenuItem{1} ms-crm-{0}MenuItem-Hover{1}",$p0,$v_1);$v_0["itemSelectedClassName"]=String.format("ms-crm-{0}MenuItem{1} ms-crm{0}MenuItem-Selected{1}",$p0,$v_1);$v_0["anchorClassName"]=String.format("ms-crm-{0}MenuItem-Anchor{1} ms-crm-{0}MenuItem-Anchor-Rest{1}",$p0,$v_1);$v_0["anchorHoverClassName"]=String.format("ms-crm-{0}MenuItem-Anchor{1} ms-crm-{0}MenuItem-Anchor-Hover{1}",$p0,$v_1);$v_0["anchorSelectedClassName"]=String.format("ms-crm-{0}MenuItem-Anchor{1} ms-crm-{0}MenuItem-Anchor-Selected{1}",$p0,$v_1);$v_0["iconClassName"]=String.format("ms-crm-{0}MenuItem-Icon{1} ms-crm-{0}MenuItem-Icon-Rest{1}",$p0,$v_1);$v_0["iconHoverClassName"]=String.format("ms-crm-{0}MenuItem-Icon{1} ms-crm-{0}MenuItem-Icon-Hover{1}",$p0,$v_1);$v_0["iconSelectedClassName"]=String.format("ms-crm-{0}MenuItem-Icon{1} ms-crm-{0}MenuItem-Icon-Selected{1}",$p0,$v_1);$v_0["auxIconClassName"]=String.format("ms-crm-{0}MenuItem-Aux{1} ms-crm-{0}MenuItem-Aux-Rest{1}",$p0,$v_1);$v_0["auxIconHoverClassName"]=String.format("ms-crm-{0}MenuItem-Aux{1} ms-crm-{0}MenuItem-Aux-Hover{1}",$p0,$v_1);$v_0["auxIconSelectedClassName"]=String.format("ms-crm-{0}MenuItem-Aux{1} ms-crm-{0}MenuItem-Aux-Selected{1}",$p0,$v_1);$v_0["separatorClassName"]=String.format("ms-crm-{0}MenuItem-Sep{1} ms-crm-{0}MenuItem-Sep-Rest{1}",$p0,$v_1);$v_0["separatorHoverClassName"]=String.format("ms-crm-{0}MenuItem-Sep{1} ms-crm-{0}MenuItem-Sep-Hover{1}",$p0,$v_1);$v_0["separatorSelectedClassName"]=String.format("ms-crm-{0}MenuItem-Sep{1} ms-crm-{0}MenuItem-Sep-Selected{1}",$p0,$v_1);$v_0["textClassName"]=String.format("ms-crm-{0}MenuItem-Title{1} ms-crm-{0}MenuItem-Title-Rest{1}",$p0,$v_1);$v_0["textHoverClassName"]=String.format("ms-crm-{0}MenuItem-Title{1} ms-crm-{0}MenuItem-Title-Hover{1}",$p0,$v_1);$v_0["textSelectedClassName"]=String.format("ms-crm-{0}MenuItem-Title{1} ms-crm-{0}MenuItem-Title-Selected{1}",$p0,$v_1);return $v_0},get_isSelected:function(){return this._selected},set_isSelected:function(value){this._selected=value;if(value)this.displaySelectedStyle();else this.displayRestStyle();return value},get_isFocusable:function(){return this.$3i_2},set_isFocusable:function(value){this.$3i_2=value;return value},get_isAuxAnchorFocusable:function(){return this.$1p_2},set_isAuxAnchorFocusable:function(value){this.$1p_2=value;if(!IsNull(this._auxAnchor))this._auxAnchor.tabIndex=value?0:-1;return value},get_focusElement:function(){return this.get_itemContents()},get_isMenu:function(){return false},displayRestStyle:function(){if(IsNull(this._itemContents))return;this._itemContents.className=this.$G_2;this._anchor.className=this.$3c_2;this._icon.className=this.$1G_2;this._iconSpan.className=this.$1G_2;this._auxAnchor.className=this.$R_2;this._auxAnchor.firstChild.className=this.$R_2;this._auxIcon.className=this.$R_2;this._separator.className=this.$17_2;this._text.className=this.$y_2;this._text.firstChild.className=this.$y_2},displayHoverStyle:function(){if(IsNull(this._itemContents))return;this._itemContents.className=this.$3m_2;this._anchor.className=this.$3d_2;this._icon.className=this.$2m_2;this._iconSpan.className=this.$2m_2;this._separator.className=this.$3r_2;this._text.className=this.$32_2;this._text.firstChild.className=this.$32_2;if(this.$u_2){this._auxAnchor.className=this.$10_2;this._auxAnchor.firstChild.className=this.$10_2;this._auxIcon.className=this.$10_2}},displaySelectedStyle:function(){if(IsNull(this._itemContents))return;this._itemContents.className=this.$3n_2;this._anchor.className=this.$3e_2;this._icon.className=this.$2o_2;this._iconSpan.className=this.$2o_2;this._auxAnchor.className=this.$1q_2;this._auxAnchor.firstChild.className=this.$1q_2;this._auxIcon.className=this.$1q_2;this._separator.className=this.$3s_2;this._text.className=this.$33_2;this._text.firstChild.className=this.$33_2},setHeight:function(height){Mscrm.Utilities.setOuterHeight(this.get_itemContents(),height)},createElements:function(){this._itemContents=document.createElement("li");this._itemContents.setAttribute("id",this._menuItemId);this._itemContents.setAttribute("role","menuitem");var $v_0={focus:this.$3V,blur:this.$3R,keydown:this.$2a};if(!IsNull(this._contextMenu))$v_0["contextmenu"]=this.$3T;$addHandlers(this._itemContents,$v_0);if(!IsNull(this._actionCallback))this._itemContents.tabIndex=0;this._auxAnchor=document.createElement("a");this._auxAnchor.setAttribute("href","#");if(this._renderFormat===Mscrm.MenuItem.formaT_AUX_IMAGE_SEP_TITLE)this._auxAnchor.style.styleFloat=Mscrm.Utilities.get_isLeftToRight()?"left":"right";else this._auxAnchor.style.styleFloat=Mscrm.Utilities.get_isLeftToRight()?"right":"left";$addHandlers(this._auxAnchor,{click:this.$3Q,mouseover:this.$2Z,mouseout:this.$2Y,focus:this.$2Z,blur:this.$2Y,keydown:this.$2a});if(!IsNull(this._auxActionCallback))this._auxAnchor.tabIndex=this.$1p_2?0:-1;if(this._auxIconPath==="")this._auxAnchor.style.display="none";this._auxIcon=document.createElement("img");this._auxIcon.setAttribute("alt",IsNull(this._auxIconTooltip)?"":this._auxIconTooltip);!isNullOrEmptyString(this._auxIconPath)&&this._auxIcon.setAttribute("src",this._auxIconPath);this._anchor=document.createElement("a");this._anchor.setAttribute("title",this.get_tooltip());$addHandlers(this._anchor,{click:this.$3S,mouseover:this.$3X,mouseout:this.$3W});if(IsNull(this._actionCallback))this._anchor.style.cursor="default";this._icon=document.createElement("img");this._icon.setAttribute("src",this._iconPath);this._icon.setAttribute("alt",IsNull(this.get_tooltip())?"":this.get_tooltip());this._iconSpan=document.createElement("span");this._iconSpan.appendChild(this._icon);this._separator=document.createElement("span");this._text=document.createElement("nobr");var $v_1=document.createElement("span");this._text.appendChild($v_1);if(!isNullOrEmptyString(this._title))$v_1.innerText=this._title;else $v_1.innerHTML="&nbsp;";this._itemContents.appendChild(this._auxAnchor);this._auxAnchor.appendChild(document.createElement("span"));this._auxAnchor.firstChild.appendChild(this._auxIcon);this._itemContents.appendChild(this._anchor);this._anchor.appendChild(document.createElement("span"));this._anchor.firstChild.appendChild(this._iconSpan);this._anchor.firstChild.appendChild(this._separator);this._anchor.firstChild.appendChild(this._text);if(this._selected)this.displaySelectedStyle();else this.displayRestStyle()},onFocus:function(e){!this._selected&&this.displayHoverStyle();this.$7_2.set_activeItem(this)},onBlur:function(e){!this._selected&&this.displayRestStyle()},onClick:function(e){this.$2H_2(this._actionCallback,this.$1E_2,this.$w_2)},onMouseOver:function(e){!this._selected&&this.displayHoverStyle();if(this._stylePrefix==="CM"||this._stylePrefix==="in-CM"){var $v_0=this.$7_2;while(!IsNull($v_0.get_parentMenu()))$v_0=$v_0.get_parentMenu();if(IsNull($v_0.get_activeItem()))return;var $v_1=$v_0.get_activeItem().get_isMenu()&&$v_0.get_activeItem().get_inlineItem()===this;$v_0.get_activeItem()!==this&&!$v_1&&$v_0.get_activeItem().displayRestStyle()}},onMouseOut:function(e){!this._selected&&this.displayRestStyle()},onAuxMouseOver:function(e){if(!this._selected)if(this.$u_2)this.displayHoverStyle();else{this._auxAnchor.className=this.$10_2;this._auxAnchor.firstChild.className=this.$10_2;this._auxIcon.className=this.$10_2}},onAuxMouseOut:function(e){if(!this._selected)if(this.$u_2)this.displayRestStyle();else{this._auxAnchor.className=this.$R_2;this._auxAnchor.firstChild.className=this.$R_2;this._auxIcon.className=this.$R_2}},onKeyDown:function(e){switch(e.keyCode){case 13:case 32:if(e.target===this._itemContents){e.stopPropagation();e.preventDefault();this.$2H_2(this._actionCallback,this.$1E_2,this.$w_2)}else if(e.target===this._auxAnchor){e.stopPropagation();e.preventDefault();this.$2H_2(this._auxActionCallback,this.$1F_2,this.$w_2)}break}},onAuxClick:function(e){this.$2H_2(this._auxActionCallback,this.$1F_2,this.$w_2)},$2H_2:function($p0,$p1,$p2){if(!IsNull($p0)){$p1&&this.$7_2.hideAll($p2);$p0(this)}},onContextMenu:function(e){e.stopPropagation();e.preventDefault();this.$7_2.set_focusOutCheck(false);this._contextMenu.set_hideCallback(Function.createDelegate(this,function($p1_0){this.$7_2.set_focusOutCheck(true);try{this.$7_2.get_isVisible()&&this.get_focusElement().focus()}catch($$e_2_0){}}));this._contextMenu.set_contextItem(this);this._contextMenu.set_left(e.clientX);this._contextMenu.set_top(e.clientY);this._contextMenu.show()}};Mscrm.MenuItemSeparator=function(){Mscrm.MenuItemSeparator.initializeBase(this);this._isSpacer=true};Mscrm.MenuItemSeparator.createSeparator=function(isVertical){var $v_0=$create(Mscrm.MenuItemSeparator);$v_0.$G_2="Separator";$v_0.$l_3=isVertical;return $v_0};Mscrm.MenuItemSeparator.createSpacer=function(isVertical){var $v_0=$create(Mscrm.MenuItemSeparator);$v_0.$G_2="Spacer";$v_0.$l_3=isVertical;return $v_0};Mscrm.MenuItemSeparator.prototype={$2j_3:null,$1e_3:null,$2t_3:null,$l_3:false,get_isVertical:function(){return this.$l_3},set_isVertical:function(value){this.$l_3=value;return value},get_stylePrefix:function(){return this._stylePrefix},set_stylePrefix:function(value){if(this._stylePrefix===value)return;IsNull(this._itemContents)&&this.createElements();if(!isNullOrEmptyString(value)){this._stylePrefix=value;value=String.format("{0}-",value)}else if(IsNull(value)){value="";this._stylePrefix=value}var $v_0=this.$l_3?"v":"h";this._itemContents.className=String.format("ms-crm-{0}MenuItem-{3}{1}-{2}",value,Mscrm.MenuStyles.get_modeSuffix(),$v_0,this.$G_2);this.$2j_3.className=String.format("ms-crm-{0}MenuItem-{3}-{2}f{1}",value,Mscrm.MenuStyles.get_modeSuffix(),$v_0,this.$G_2);this.$1e_3.className=String.format("ms-crm-{0}MenuItem-{3}-{2}m{1}",value,Mscrm.MenuStyles.get_modeSuffix(),$v_0,this.$G_2);this.$2t_3.className=String.format("ms-crm-{0}MenuItem-{3}-{2}l{1}",value,Mscrm.MenuStyles.get_modeSuffix(),$v_0,this.$G_2);return value},createElements:function(){if(IsNull(this._itemContents)){this._itemContents=document.createElement("DIV");this.$2j_3=document.createElement("SPAN");this._itemContents.appendChild(this.$2j_3);this.$1e_3=document.createElement("SPAN");this._itemContents.appendChild(this.$1e_3);this.$2t_3=document.createElement("SPAN");this._itemContents.appendChild(this.$2t_3)}},setHeight:function(height){Mscrm.Utilities.setOuterHeight(this.get_itemContents(),height);var $v_0=this.$1e_3.currentStyle,$v_1=Mscrm.Utilities.parseInt($v_0.marginTop)+Mscrm.Utilities.parseInt($v_0.marginBottom);Mscrm.Utilities.setOuterHeight(this.$1e_3,height-$v_1)}};Mscrm.MenuStyles=function(){};Mscrm.MenuStyles.get_modeSuffix=function(){return Mscrm.Utilities.get_isStandardsMode()?"":"-qrk"};Mscrm.AddActivity=function(){};Mscrm.AddActivity.addActivityToForm=function(activityType,contentId){var $v_0=crmFormSubmit.crmFormSubmitId.value,$v_1=crmFormSubmit.crmFormSubmitObjectType.value,$v_2=PARENT_NAME;Mscrm.AddActivity.$3u_0(activityType,contentId,$v_0,$v_1,$v_2)};Mscrm.AddActivity.addActivityToFormFromsubgrid=function(activityType,parentId,parentType){var $v_0="";Mscrm.AddActivity.$4B_0(activityType,null,parentId,parentType,$v_0,true)};Mscrm.AddActivity.addActivityToSelectedObject=function(activityType,contentId,entityReference){Mscrm.AddActivity.$3u_0(activityType,contentId,entityReference.Id,entityReference.TypeCode,entityReference.Name)};Mscrm.AddActivity.addActivityToObject=function(activityType,contentId,entityReference){var $v_0=entityReference.Id,$v_1=entityReference.TypeCode;if(typeof activityType!=="number")activityType=parseInt(activityType,10);if(typeof entityReference.TypeCode!=="number")$v_1=parseInt(entityReference.TypeCode,10);var $v_2="";if(!IsNull($v_0)&&!IsNull($v_1)){$v_2+="&_CreateFromId="+CrmEncodeDecode.CrmUrlEncode($v_0);$v_2+="&_CreateFromType="+CrmEncodeDecode.CrmUrlEncode($v_1)}if($v_2.substr(0,1)==="&")$v_2="?"+$v_2.substr(1);openFrmObj($v_2,"",activityType,null,0,null)};Mscrm.AddActivity.addActivityTo=function(typeCode,id,type,name,partyId,partyType,partyName,location,contentId){if(typeof type!=="number")type=parseInt(type,10);if(typeof partyType!=="number")partyType=parseInt(partyType,10);var $v_0="";if(!IsNull(id)&&!IsNull(type)&&typeCode!==4401){$v_0+="&pId="+CrmEncodeDecode.CrmUrlEncode(id);$v_0+="&pType="+CrmEncodeDecode.CrmUrlEncode(type);$v_0+="&pName="+CrmEncodeDecode.CrmUrlEncode(name)}if(!IsNull(partyId)){$v_0+="&partyid="+CrmEncodeDecode.CrmUrlEncode(partyId);$v_0+="&partytype="+CrmEncodeDecode.CrmUrlEncode(partyType);$v_0+="&partyname="+CrmEncodeDecode.CrmUrlEncode(partyName);$v_0+="&partyaddressused=";if(IsNull(location))location="";$v_0+="&contactInfo="+CrmEncodeDecode.CrmUrlEncode(location)}if(!isNullOrEmptyString(contentId))$v_0+="&contentId="+CrmEncodeDecode.CrmUrlEncode(contentId);if($v_0.substr(0,1)==="&")$v_0="?"+$v_0.substr(1);openFrmObj($v_0,"",typeCode,null,0,null)};Mscrm.AddActivity.$3u_0=function($p0,$p1,$p2,$p3,$p4){Mscrm.AddActivity.$4B_0($p0,$p1,$p2,$p3,$p4,false)};Mscrm.AddActivity.$4B_0=function($p0,$p1,$p2,$p3,$p4,$p5){if(typeof $p3!=="number")$p3=parseInt($p3,10);if(typeof $p0!=="number")$p0=parseInt($p0,10);var $v_0=null,$v_1=0,$v_2=null,$v_3=null;if($p0!==4212)switch($p3){case 1:case 2:case 4:$v_0=$p2;$v_1=$p3;$v_2=$p4;switch($p0){case 4204:$v_3=window.LEAD_PARTY_LOCATION_FOR_FAX;break;case 4207:$v_3=window.LEAD_PARTY_LOCATION_FOR_LETTER;break;case 4210:$v_3=window.LEAD_PARTY_LOCATION_FOR_PHONE;break;default:$v_3="";break}break;case 112:case 3:case 1084:case 1090:case 1088:case 1010:var $v_4;if($p5)$v_4=window.parent.document.getElementById("crmForm");else $v_4=$get("crmForm");if(!IsNull($v_4)){var $v_5=$v_4.all.customerid.DataValue;if(!IsNull($v_5)&&!IsNull($v_5[0])){$v_0=$v_5[0].id;$v_1=parseInt($v_5[0].type,10);$v_2=$v_5[0].name}}$v_3="";break;default:if($p0===4202&&$p3>=1e4){$v_0=$p2;$v_1=$p3;$v_2=$p4}break}Mscrm.AddActivity.addActivityTo($p0,$p2,$p3,$p4,$v_0,$v_1,$v_2,$v_3,$p1)};Mscrm.RecentlyViewedItem=function(){};Mscrm.RecentlyViewedItem.prototype={Name:null,Id:null,TypeName:null,DisplayName:null,TypeCode:0,Action:null};Mscrm.CrmUIComponent=function(){Mscrm.CrmUIComponent.initializeBase(this)};Mscrm.CrmUIComponent.crmCreate=function(type,properties,events,references,element){try{!Mscrm.PageManager.$15_2&&$create(type,properties,events,references,element)}catch($v_0){var $v_1=String.format("Error initializing component with element id='{0}' and with type='{1}': {2}",!element?"null":element.id,!type?"null":type.getName(),$v_0.message);catchError($v_1,window.location.href,0,true)}};Mscrm.CrmUIComponent.prototype={handleEvent:function(eventCode,parameters,sourceComponent){return null},raiseEvent:function(eventCode,parameters){return this.$6_1.raiseEvent(eventCode,parameters,this)},raiseEventWithCheck:function(eventCode,parameters){var $v_0=this.$6_1;if($v_0)return $v_0.raiseEvent(eventCode,parameters,this);else return []},$K_1:null,get_subscribedEvents:function(){return this.$K_1},set_subscribedEvents:function(value){this.$K_1=value;return value},initialize:function(){Mscrm.CrmUIComponent.callBaseMethod(this,"initialize");if(!IsNull(this.$6_1))if(!IsNull(this.$K_1))for(var $v_0=0;$v_0<this.$K_1.length;$v_0++)this.$6_1.subscribeEvent(this.$K_1[$v_0],this.get_id())},$6_1:null,get_eventManager:function(){return this.$6_1},set_eventManager:function(value){this.$6_1=value;return value}};Mscrm.CrmUIControl=function(element){this.$1o=Function.createDelegate(this,this.$4G_2);Mscrm.CrmUIControl.initializeBase(this,[element])};Mscrm.CrmUIControl.prototype={handleEvent:function(eventCode,parameters,sourceComponent){return null},raiseEvent:function(eventCode,parameters){return this.$6_2.raiseEvent(eventCode,parameters,this)},raiseEventWithCheck:function(eventCode,parameters){var $v_0=this.$6_2;if($v_0)return $v_0.raiseEvent(eventCode,parameters,this);else return []},$K_2:null,get_subscribedEvents:function(){return this.$K_2},set_subscribedEvents:function(value){this.$K_2=value;return value},initialize:function(){Mscrm.CrmUIControl.callBaseMethod(this,"initialize");if(this.get_enableHtcControlInit())if(document.readyState==="complete")this.$4G_2(null);else{$addHandler(document,"readystatechange",this.$1o);this.$1b_2=true}if(!IsNull(this.$6_2))if(!IsNull(this.$K_2))for(var $v_0=0;$v_0<this.$K_2.length;$v_0++)this.$6_2.subscribeEvent(this.$K_2[$v_0],this.get_id())},$1b_2:false,$4G_2:function($p0){if(document.readyState==="complete"){if(this.$1b_2){$removeHandler(document,"readystatechange",this.$1o);this.$1b_2=false}this.initializeHtcControls()}},initializeHtcControls:function(){},dispose:function(){if(this.$1b_2){$removeHandler(document,"readystatechange",this.$1o);this.$1b_2=false}},get_enableHtcControlInit:function(){return false},$6_2:null,get_eventManager:function(){return this.$6_2},set_eventManager:function(value){this.$6_2=value;return value},get_height:function(){return this.get_element().offsetHeight},set_height:function(value){if(value<0)this.get_element().style.height="0px";else this.get_element().style.height=value.toString()+"px";return value},get_width:function(){return this.get_element().offsetWidth},set_width:function(value){if(value<0)this.get_element().style.width="0px";else this.get_element().style.width=value.toString()+"px";return value},get_left:function(){return this.get_element().offsetLeft},set_left:function(value){this.get_element().style.left=value.toString()+"px";return value},get_top:function(){return this.get_element().offsetTop},set_top:function(value){this.get_element().style.top=value.toString()+"px";return value}};Mscrm.CrmUIBehavior=function(element){Mscrm.CrmUIBehavior.initializeBase(this,[element])};Mscrm.CrmUIBehavior.prototype={handleEvent:function(eventCode,parameters,sourceComponent){return null},raiseEvent:function(eventCode,parameters){return this.$6_2.raiseEvent(eventCode,parameters,this)},raiseEventWithCheck:function(eventCode,parameters){var $v_0=this.$6_2;if($v_0)return $v_0.raiseEvent(eventCode,parameters,this);else return []},$K_2:null,get_subscribedEvents:function(){return this.$K_2},set_subscribedEvents:function(value){this.$K_2=value;return value},initialize:function(){Mscrm.CrmUIBehavior.callBaseMethod(this,"initialize");if(!IsNull(this.$6_2))if(!IsNull(this.$K_2))for(var $v_0=0;$v_0<this.$K_2.length;$v_0++)this.$6_2.subscribeEvent(this.$K_2[$v_0],this.get_id())},$6_2:null,get_eventManager:function(){return this.$6_2},set_eventManager:function(value){this.$6_2=value;return value}};Mscrm.CurrencyValidator=function(){};Mscrm.CurrencyValidator.IsValidCurrencyCode=function(input){var $v_0=new RegExp("^[a-zA-Z]{3}$");return $v_0.test(input)};Mscrm.CurrencyValidator.IsValidCurrencySymbol=function(input){if(input.length>=Mscrm.CurrencyValidator.$4Z_0&&input.length<=Mscrm.CurrencyValidator.$4Y_0)return true;return false};Mscrm.CurrencyValidator.IsValidCurrencyName=function(input){if(input.length>=Mscrm.CurrencyValidator.$4X_0&&input.length<=Mscrm.CurrencyValidator.$4W_0)return true;return false};Mscrm.CurrencyValidator.IsValidCurrencyPrecision=function(input){var $v_0=new RegExp("^[0-4]{1}$");return $v_0.test(input.toString())};Mscrm.CurrencyValidator.InitializeDOMElements=function(builtInCurrencyDiv,customCurrencyDiv,builtInCurrencyInput,customCurrencyInput,customCurrencyCode,customCurrencySymbol,customCurrencyName,requiredInputNote,errorLabel,precisionDropDown,currencyList,regionDropDown){Mscrm.CurrencyValidator.$2J_0=$get(builtInCurrencyDiv);Mscrm.CurrencyValidator.$2M_0=$get(customCurrencyDiv);Mscrm.CurrencyValidator.$2K_0=$get(builtInCurrencyInput);Mscrm.CurrencyValidator.$2N_0=$get(customCurrencyInput);Mscrm.CurrencyValidator.$e_0=$get(customCurrencyCode);Mscrm.CurrencyValidator.$g_0=$get(customCurrencySymbol);Mscrm.CurrencyValidator.$f_0=$get(customCurrencyName);Mscrm.CurrencyValidator.$2T_0=$get(requiredInputNote);Mscrm.CurrencyValidator.$2O_0=$get(errorLabel);Mscrm.CurrencyValidator.$1P_0=$get(precisionDropDown);Mscrm.CurrencyValidator.$2L_0=$get(currencyList);Mscrm.CurrencyValidator.$2S_0=$get(regionDropDown)};Mscrm.CurrencyValidator.DisableBuiltInEnableCustomDiv=function(){Mscrm.CurrencyValidator.$2K_0.checked=false;Mscrm.CurrencyValidator.$2N_0.checked=true;Mscrm.CurrencyValidator.$2J_0.disabled=true;Mscrm.CurrencyValidator.$2M_0.disabled=false;Mscrm.CurrencyValidator.$2T_0.disabled=false;Mscrm.CurrencyValidator.$e_0.disabled=false;Mscrm.CurrencyValidator.$g_0.disabled=false;Mscrm.CurrencyValidator.$f_0.disabled=false;Mscrm.CurrencyValidator.$1P_0.disabled=false;Mscrm.CurrencyValidator.$2S_0.disabled=true;Mscrm.CurrencyValidator.$2L_0.disabled=true;WatermarkTextBox_OnEnable(Mscrm.CurrencyValidator.$e_0);WatermarkTextBox_OnEnable(Mscrm.CurrencyValidator.$g_0);WatermarkTextBox_OnEnable(Mscrm.CurrencyValidator.$f_0);WatermarkTextBox_OnBlur(Mscrm.CurrencyValidator.$e_0);WatermarkTextBox_OnBlur(Mscrm.CurrencyValidator.$g_0);WatermarkTextBox_OnBlur(Mscrm.CurrencyValidator.$f_0);Mscrm.CurrencyValidator.ClearErrorText()};Mscrm.CurrencyValidator.EnableBuiltInDisableCustomDiv=function(){Mscrm.CurrencyValidator.$2K_0.checked=true;Mscrm.CurrencyValidator.$2N_0.checked=false;Mscrm.CurrencyValidator.$2J_0.disabled=false;Mscrm.CurrencyValidator.$2M_0.disabled=true;Mscrm.CurrencyValidator.$2T_0.disabled=true;Mscrm.CurrencyValidator.$e_0.disabled=true;Mscrm.CurrencyValidator.$g_0.disabled=true;Mscrm.CurrencyValidator.$f_0.disabled=true;Mscrm.CurrencyValidator.$1P_0.disabled=true;Mscrm.CurrencyValidator.$2S_0.disabled=false;Mscrm.CurrencyValidator.$2L_0.disabled=false;WatermarkTextBox_OnDisable(Mscrm.CurrencyValidator.$e_0);WatermarkTextBox_OnDisable(Mscrm.CurrencyValidator.$g_0);WatermarkTextBox_OnDisable(Mscrm.CurrencyValidator.$f_0);Mscrm.CurrencyValidator.ClearErrorText()};Mscrm.CurrencyValidator.InitializeCurrencyPicker=function(isCustom){if(isCustom===1)Mscrm.CurrencyValidator.DisableBuiltInEnableCustomDiv();else Mscrm.CurrencyValidator.EnableBuiltInDisableCustomDiv()};Mscrm.CurrencyValidator.ValidateCurrencyCodeInput=function(){var $v_0=Mscrm.CurrencyValidator.$e_0.value,$v_1=Mscrm.CurrencyValidator.IsValidCurrencyCode($v_0);$v_0!==LOCID_CURRENCY_CODE_WATERMARK&&WatermarkTextBox_OnInvalidData(Mscrm.CurrencyValidator.$e_0);if(!$v_1||$v_0===LOCID_CURRENCY_CODE_WATERMARK){Mscrm.CurrencyValidator.SetErrorText(LOCID_INVALID_CURRENCY_CODE);return false}Mscrm.CurrencyValidator.ClearErrorText();WatermarkTextBox_OnValidData(Mscrm.CurrencyValidator.$e_0);return true};Mscrm.CurrencyValidator.ValidateCurrencySymbolInput=function(){var $v_0=Mscrm.CurrencyValidator.$g_0.value,$v_1=Mscrm.CurrencyValidator.IsValidCurrencySymbol($v_0);$v_0!==LOCID_CURRENCY_SYMBOL_WATERMARK&&WatermarkTextBox_OnInvalidData(Mscrm.CurrencyValidator.$g_0);if(!$v_1||$v_0===LOCID_CURRENCY_SYMBOL_WATERMARK){Mscrm.CurrencyValidator.SetErrorText(LOCID_INVALID_CURRENCY_SYMBOL);return false}Mscrm.CurrencyValidator.ClearErrorText();WatermarkTextBox_OnValidData(Mscrm.CurrencyValidator.$g_0);return true};Mscrm.CurrencyValidator.ValidateCurrencyNameInput=function(){var $v_0=Mscrm.CurrencyValidator.$f_0.value,$v_1=Mscrm.CurrencyValidator.IsValidCurrencyName($v_0);$v_0!==LOCID_CURRENCY_NAME_WATERMARK&&WatermarkTextBox_OnInvalidData(Mscrm.CurrencyValidator.$f_0);if(!$v_1||$v_0===LOCID_CURRENCY_NAME_WATERMARK){Mscrm.CurrencyValidator.SetErrorText(LOCID_INVALID_CURRENCY_NAME);return false}Mscrm.CurrencyValidator.ClearErrorText();WatermarkTextBox_OnValidData(Mscrm.CurrencyValidator.$f_0);return true};Mscrm.CurrencyValidator.ValidatePrecisionInput=function(){var $v_0=Mscrm.CurrencyValidator.$1P_0.options[Mscrm.CurrencyValidator.$1P_0.selectedIndex],$v_1=parseInt($v_0.value,10),$v_2=Mscrm.CurrencyValidator.IsValidCurrencyPrecision($v_1);if(!$v_2){Mscrm.CurrencyValidator.SetErrorText(LOCID_INVALID_CURRENCY_PRECISION);return false}Mscrm.CurrencyValidator.ClearErrorText();return true};Mscrm.CurrencyValidator.ValidateInput=function(){if(Mscrm.CurrencyValidator.ValidateCurrencyCodeInput()&&Mscrm.CurrencyValidator.ValidateCurrencySymbolInput()&&Mscrm.CurrencyValidator.ValidateCurrencyNameInput()&&Mscrm.CurrencyValidator.ValidatePrecisionInput())return true;else return false};Mscrm.CurrencyValidator.SetErrorText=function($p0){Mscrm.CurrencyValidator.$2O_0.innerHTML=CrmEncodeDecode.CrmHtmlEncode($p0)};Mscrm.CurrencyValidator.ClearErrorText=function(){Mscrm.CurrencyValidator.$2O_0.innerHTML=""};function prependOrgName(sUrl){var $v_0=sUrl;if(window.IS_PATHBASEDURLS&&window.ORG_UNIQUE_NAME.length>0)$v_0="/"+CrmEncodeDecode.CrmUrlEncode(window.ORG_UNIQUE_NAME)+sUrl;return $v_0}Mscrm.CrmOneNoteUri=function(uri,organizationName){Mscrm.CrmOneNoteUri.initializeBase(this,[uri,organizationName]);this.set_useOrganizationName(false);this.set_useVersionStamp(false);this.set_useCssLcid(false)};Mscrm.CrmOneNoteUri.prototype={parse:function($p0){var $v_0=$p0.indexOf(":"),$v_1;$v_1=$v_0+1;while($p0.charAt($v_1)==="/")$v_1++;this.set_scheme($p0.substr(0,$v_1));this.set_host("");this.set_port(-1);var $v_2=$p0.substr($v_1);this.parsePath($v_2)},get_isLocalServer:function(){return false},toString:function(){return Mscrm.CrmOneNoteUri.callBaseMethod(this,"toString")}};Mscrm.CrmUri=function(uri,organizationName){this.$1A_0=IsNull(organizationName)?"":CrmEncodeDecode.CrmUrlEncode(organizationName);if(IsNull(uri))uri="";this.parse(uri);this.$39_0=uri;this.$F_0=this.$O_0;if(uri.length>0){this.$5d_0();this.$5c_0();this.$5b_0();this.$5e_0()}};Mscrm.CrmUri.create=function(uri){if(uri.toLowerCase().startsWith("onenote:"))return new Mscrm.CrmOneNoteUri(uri,window.ORG_UNIQUE_NAME);if(uri.toLowerCase().startsWith("$webresource:"))return new Mscrm.CrmUri("/WebResources/"+uri.substr(13),window.ORG_UNIQUE_NAME);return new Mscrm.CrmUri(uri,window.ORG_UNIQUE_NAME)};Mscrm.CrmUri.createForOrganization=function(uri,organizationName){if(uri.toLowerCase().startsWith("onenote:"))return new Mscrm.CrmOneNoteUri(uri,organizationName);return new Mscrm.CrmUri(uri,organizationName)};Mscrm.CrmUri.isSameDomain=function(uriA,uriB){var $v_0=Mscrm.CrmUri.create(uriA.toNormalizedString().toUpperCase()),$v_1=Mscrm.CrmUri.create(uriB.toNormalizedString().toUpperCase());return $v_0.get_scheme()===$v_1.get_scheme()&&$v_0.get_host()===$v_1.get_host()&&$v_0.get_port()===$v_1.get_port()};Mscrm.CrmUri.prototype={$1A_0:null,$1n_0:false,$2V_0:false,$2U_0:false,$36_0:true,$39_0:null,$Y_0:null,$1B_0:null,$h_0:null,$V_0:0,$F_0:null,$O_0:null,$W_0:null,$1Q_0:null,$r_0:null,checkParamsNoEqual:false,get_useOrganizationName:function(){return this.$1n_0},set_useOrganizationName:function(value){if(IsNull(value))return;this.$1n_0=value;return value},get_useVersionStamp:function(){return this.$2V_0},set_useVersionStamp:function(value){if(IsNull(value))return;if(this.$2V_0!==value){this.$2V_0=value;if(this.$2V_0)this.$4Q_0("ver",this.get_$5l_0().toString(10));else this.$4M_0("ver")}return value},get_useCssLcid:function(){return this.$2U_0},set_useCssLcid:function(value){if(this.$2U_0!==value){this.$2U_0=value;if(this.$2U_0)this.$4Q_0("lcid",window.USER_LANGUAGE_CODE.toString(10));else this.$4M_0("lcid")}return value},get_appendSolutionId:function(){return this.$36_0},set_appendSolutionId:function(value){if(IsNull(value))return;this.$36_0=value;return value},get_path:function(){return this.$F_0},set_path:function(value){this.$F_0=IsNull(value)?"":value;return value},get_pageType:function(){var $v_0="none";if(this.get_path().endsWith("/areas.aspx"))return "entityrelatedlist";switch(this.get_path()){case "/sfa/accts/edit.aspx":case "/sfa/conts/edit.aspx":case "/sfa/leads/edit.aspx":case "/sfa/opps/edit.aspx":case "/cs/cases/edit.aspx":case "/userdefined/edit.aspx":case "/ma/camps/edit.aspx":case "/sm/sites/edit.aspx":case "/biz/teams/edit.aspx":$v_0="entityrecord";break;case "/_root/homepage.aspx":case "/CS/home_cases.aspx":case "/workplace/home_workplace.aspx":$v_0="entitylist";break;case "/tools/formEditor/formeditor.aspx":$v_0="formeditor";break;case "/tools/dashboardEditor/dashboardeditor.aspx":$v_0="dashboardeditor";break;case "/tools/visualizationdesigner/visualizationdesigner.aspx":$v_0="vizdesigner";break;case "/advancedfind/advfind.aspx":$v_0="advancedfind";break;case "/main.aspx":$v_0=this.get_query()["pagetype"];break;default:$v_0="none";break}if(IsNull($v_0)||!$v_0.length)$v_0="none";return $v_0},get_fragment:function(){return "#"+this.$r_0},set_fragment:function(value){this.$r_0=IsNull(value)?"":value;if(this.$r_0.startsWith("#"))this.$r_0=this.$r_0.substr(1);return value},get_host:function(){return this.$h_0},set_host:function(value){this.$h_0=IsNull(value)?"":value;return value},get_port:function(){return this.$V_0},set_port:function(value){this.$V_0=IsNull(value)?-1:value;return value},get_scheme:function(){return this.$Y_0},set_scheme:function(value){if(IsNull(value)||!value.length)this.$Y_0="";else{var $v_0=value.indexOf(":");if($v_0===-1){this.$Y_0=value;this.$1B_0=value==="mailto"||value==="news"?":":"://"}else{this.$Y_0=value.substr(0,$v_0);this.$1B_0=value.substr($v_0)}}return value},get_query:function(){if(!this.$1Q_0)this.$1Q_0=this.$3v_0(this.$W_0);return this.$1Q_0},get_queryString:function(){this.$4V_0();return this.$W_0},get_$5l_0:function(){if(!IsNull(window.VERSION_STAMP))return window.VERSION_STAMP;else return 0},get_isLocalServer:function(){if(!this.$h_0.length||this.$h_0.toUpperCase()==="LOCALHOST")return true;if(this.$h_0.toUpperCase()===window.top.location.hostname.toUpperCase()||this.$5G_0()){var $v_0=this.$V_0===-1?80:this.$V_0,$v_1=window.WEB_SERVER_PORT;if(IsNull($v_1)){$v_1=window.top.WEB_SERVER_PORT;if(IsNull($v_1))$v_1=80}return $v_0===$v_1}return false},$5G_0:function(){var $v_0=window.WEB_SERVER_HOST;if(IsNull($v_0)){$v_0=window.top.WEB_SERVER_HOST;if(IsNull($v_0))$v_0=""}return this.$h_0.toUpperCase()===$v_0.toUpperCase()},clone:function(){var $v_0=Mscrm.CrmUri.create(this.toString());$v_0.set_appendSolutionId(this.get_appendSolutionId());$v_0.set_useOrganizationName(this.get_useOrganizationName());$v_0.set_useCssLcid(this.get_useCssLcid());$v_0.set_useVersionStamp(this.get_useVersionStamp());return $v_0},toString:function(){this.$4k_0();return this.$39_0},toNormalizedString:function(){var $v_0=true,$v_1=this.get_useOrganizationName(),$v_2=this.get_port(),$v_3=this.get_scheme(),$v_4=this.get_host();if(!IsNull(this.get_host())&&this.get_host().length>0)$v_0=this.get_host().toUpperCase()===window.WEB_SERVER_HOST.toUpperCase();if($v_0){this.get_port()===-1&&this.set_port(window.WEB_SERVER_PORT);(IsNull(this.get_scheme())||!this.get_scheme().length)&&this.set_scheme(window.SERVER_URL.split(":")[0]);this.set_host(window.WEB_SERVER_HOST);this.set_useOrganizationName(true)}var $v_5=this.toString();if($v_0){this.set_port($v_2);this.set_scheme($v_3);this.set_useOrganizationName($v_1);this.set_host($v_4)}return $v_5},compare:function(uri,ignoreCase,op){if(op===2)return uri.compare(this,ignoreCase,5);if(op===3)return uri.compare(this,ignoreCase,4);var $v_0=this.toNormalizedString().toUpperCase().split("?")[0],$v_1=uri.toNormalizedString().toUpperCase().split("?")[0];if($v_0!==$v_1)return false;var $v_2=this.get_queryString().split("=").length-1,$v_3=uri.get_queryString().split("=").length-1,$v_4=true;switch(op){case 1:$v_4=$v_2===$v_3;break;case 4:$v_4=$v_2<$v_3;break;case 5:$v_4=$v_2<=$v_3;break;default:return true}if(!$v_4)return false;var $$dict_1_0=this.get_query();for(var $$key_1_1 in $$dict_1_0){var $v_5={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]},$v_6=$v_5.value,$v_7=uri.get_query()[$v_5.key];if(ignoreCase){if(!IsNull($v_6))$v_6=$v_6.toUpperCase();if(!IsNull($v_7))$v_7=$v_7.toUpperCase()}if($v_6!==$v_7)return false}return true},subsetOf:function(uri,ignoreCase){return this.compare(uri,ignoreCase,5)},equals:function(uri,ignoreCase){return this.compare(uri,ignoreCase,1)},isEmpty:function(){return !this.toString().length},appendToQuery:function(appendQuery){if(appendQuery.startsWith("&"))appendQuery="?"+appendQuery.substr(1);else if(!appendQuery.startsWith("?"))appendQuery="?"+appendQuery;var $v_0=this.$3v_0(appendQuery),$$dict_1_0=$v_0;for(var $$key_1_1 in $$dict_1_0){var $v_1={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};this.get_query()[$v_1.key]=$v_1.value}},clearQuery:function(){this.$W_0="";this.$1Q_0={}},parse:function(uri){var $v_0=-1;$v_0=uri.indexOf("?");var $v_1=uri.indexOf(":"),$v_2;if($v_1>$v_0&&$v_0!==-1)$v_1=-1;if($v_1===-1){this.$Y_0="";this.$1B_0="";this.$h_0="";this.$V_0=-1;this.parsePath(uri);return}$v_2=$v_1+1;while(uri.charAt($v_2)==="/")$v_2++;this.$Y_0=uri.substr(0,$v_1).toLowerCase();this.$1B_0=uri.substr($v_1,$v_2-$v_1);if(!isNullOrEmptyString(this.$Y_0))switch(this.$Y_0.toLowerCase()){case "http":case "https":case "ftp":case "ftps":if(this.$1B_0!=="://"){this.$Y_0="";this.$1B_0="";$v_2=0;$v_1=-1}break}for(var $v_3=-1,$v_4=-1,$v_6=$v_2;$v_6<uri.length&&$v_3===-1;$v_6++)switch(uri.charAt($v_6)){case "/":$v_3=$v_6;break;case ":":$v_4=$v_6;break}if($v_3===-1)$v_3=uri.length;if($v_4===-1)$v_4=$v_3;this.$h_0=uri.substr($v_2,$v_4-$v_2);if($v_3===$v_4)this.$V_0=-1;else{this.$V_0=Number.parseInvariant(uri.substr($v_4+1,$v_3-$v_4-1));if(isNaN(this.$V_0))this.$V_0=-1}var $v_5=$v_3<uri.length?uri.substr($v_3):"";this.parsePath($v_5)},parsePath:function(uriPath){this.$O_0=uriPath;this.$W_0="";this.$r_0="";var $v_0=this.$O_0.indexOf("?"),$v_1=this.$O_0.indexOf("#"),$v_2=-1;if($v_0!==-1){var $v_3=$v_1>$v_0?$v_1:this.$O_0.length;this.$W_0=this.$O_0.substr($v_0,$v_3-$v_0);$v_2=$v_0}if($v_1!==-1){this.$r_0=CrmEncodeDecode.CrmUrlDecode(this.$O_0.substr($v_1+1));if($v_2===-1||$v_1<$v_2)$v_2=$v_1;if($v_0>$v_1)this.$W_0=""}if($v_2!==-1)this.$O_0=this.$O_0.substr(0,$v_2)},$5d_0:function(){if(!this.$1A_0.length){this.$1n_0=false;return}var $v_0=this.$1A_0+"/",$v_1=this.$F_0.startsWith("/");if($v_1)$v_0="/"+$v_0;$v_0=$v_0.toUpperCase();if(this.$F_0.toUpperCase().startsWith($v_0)){this.$F_0=this.$F_0.substr($v_0.length);if($v_1)this.$F_0="/"+this.$F_0}var $v_2=window.IS_PATHBASEDURLS;if(IsNull($v_2))$v_2=window.top.IS_PATHBASEDURLS;this.$1n_0=$v_2&&this.$5i_0()},$5e_0:function(){this.set_useVersionStamp(this.$4R_0())},$5c_0:function(){this.set_useCssLcid(this.$5h_0())},$5b_0:function(){if(this.$4n_0()&&!this.$4R_0())if(this.$36_0)Mscrm.SolutionDecorater.setSolutionIdInQuerystring(this);else if(this.get_query()[Mscrm.SolutionDecorater.solutionId])delete this.get_query()[Mscrm.SolutionDecorater.solutionId]},$4k_0:function(){this.$5j_0();this.$4V_0();var $v_0=new Sys.StringBuilder;if(this.$Y_0.length>0){$v_0.append(this.$Y_0);$v_0.append(this.$1B_0)}if(this.$h_0.length>0){$v_0.append(this.$h_0);if(this.$V_0!==-1){$v_0.append(":");$v_0.append(this.$V_0.toString(10))}}this.$O_0.length>0&&!this.$O_0.startsWith("/")&&!$v_0.isEmpty()&&$v_0.append("/");$v_0.append(this.$O_0);$v_0.append(this.$W_0);if(this.$r_0.length>0){$v_0.append("#");$v_0.append(CrmEncodeDecode.CrmUrlEncode(this.$r_0))}this.$39_0=$v_0.toString()},$5j_0:function(){if(this.$1n_0&&this.$1A_0&&this.$1A_0.length>0){var $v_0=this.$F_0.startsWith("/");this.$O_0=($v_0?"/"+this.$1A_0:this.$1A_0+"/")+this.$F_0}else this.$O_0=this.$F_0},$4V_0:function(){var $v_0=this.get_query(),$v_1=new Sys.StringBuilder,$v_2=[],$v_3=0,$$dict_1_0=$v_0;for(var $$key_1_1 in $$dict_1_0){var $v_5={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};$v_2[$v_3++]=$v_5.key}$v_2.sort();for(var $v_4=true,$v_6=0;$v_6<$v_3;$v_6++){if($v_4){$v_4=false;$v_1.append("?")}else $v_1.append("&");$v_1.append(CrmEncodeDecode.CrmUrlEncode($v_2[$v_6]));if(!this.checkParamsNoEqual||!IsNull($v_0[$v_2[$v_6]])){$v_1.append("=");$v_1.append(CrmEncodeDecode.CrmUrlEncode($v_0[$v_2[$v_6]]))}}this.$W_0=$v_1.toString()},$3v_0:function($p0){var $v_0={};if(!$p0||!$p0.length)return $v_0;var $v_1=1,$v_2,$v_3;while($v_1<$p0.length){$v_2=$p0.indexOf("&",$v_1);if($v_2===-1)$v_2=$p0.length;$v_3=$p0.indexOf("=",$v_1);if($v_3>$v_2)$v_3=-1;if($v_3!==-1&&$v_3<$v_2){var $v_4=$p0.substr($v_1,$v_3-$v_1),$v_5=$p0.substr($v_3+1,$v_2-$v_3-1);$v_0[CrmEncodeDecode.CrmUrlDecode($v_4)]=CrmEncodeDecode.CrmUrlDecode($v_5)}else if(this.checkParamsNoEqual&&$v_3===-1){var $v_6=$p0.substr($v_1,$v_2-$v_1);$v_0[CrmEncodeDecode.CrmUrlDecode($v_6)]=null}$v_1=$v_2+1}return $v_0},$4Q_0:function($p0,$p1){if(!$p1)$p1="";if(!this.$1Q_0&&this.$W_0.length<=1)this.$W_0="?"+CrmEncodeDecode.CrmUrlEncode($p0)+"="+CrmEncodeDecode.CrmUrlEncode($p1);else this.get_query()[$p0]=$p1},$4M_0:function($p0){if(!this.$1Q_0&&this.$W_0.length<=1)return;else if(this.get_query()[$p0])delete this.get_query()[$p0]},$5i_0:function(){var $v_0=this.$F_0.toUpperCase();return ($v_0.endsWith(".ASPX")||$v_0.endsWith(".ASMX")||Mscrm.Utilities.$3L.test($v_0))&&$v_0.startsWith("/")&&!$v_0.startsWith("/HELP/")&&this.get_isLocalServer()},$4n_0:function(){var $v_0=this.$F_0.toUpperCase();return $v_0.endsWith(".ASPX")&&$v_0.startsWith("/")&&!$v_0.startsWith("/HELP/")&&this.get_isLocalServer()},$4R_0:function(){return Mscrm.CrmUri.$4c_0.test(this.$F_0)},$5h_0:function(){return this.$F_0.toUpperCase().endsWith(".CSS.ASPX")}};Mscrm.CrmWindow=function(){};Mscrm.CrmWindow.get_openedFormsCache=function(){return Mscrm.CrmWindow.$1f_0};function safeWindowOpen(url,name,features,replace,disablePopupWarning){var $v_0=null;if(!IsNull(url))$v_0=url.toString();if(IsNull(features))features="";Mscrm.PerformanceTracing.write("Navigate",$v_0);var $v_1=null;try{var $v_2=getDialogArguments();if($v_2){var $v_3=$v_2["window"];if(!IsNull($v_3)){$v_1=$v_3.open($v_0,name,features,replace);$v_1.opener=window.self}}}catch($$e_1_0){$v_1=null}try{if(!$v_1){var $v_4=new Date;$v_1=window.open($v_0,name,features,replace);var $v_5=new Date;$v_1.BeforeWindowOpenTimestamp=$v_4.getTime();$v_1.AfterWindowOpenTimestamp=$v_5.getTime()}}catch($$e_1_0){}IsNull($v_1)&&!disablePopupWarning&&handlePopupBlockerError($v_0);return $v_1}function attachWindowOnBeforeUnload(handler,windowInstance){if(isOutlookHostedWindow())if(window.top.initActionQueue!=null&&typeof window.top.initActionQueue!="undefined")window.top.initActionQueue.push(function(){window.top.Mscrm.CrmWindow.onBeforeUnloadHandler=handler});else window.top.Mscrm.CrmWindow.onBeforeUnloadHandler=handler;else windowInstance=$2I_0(handler,windowInstance,"onbeforeunload",false)}function detachWindowOnBeforeUnload(handler,windowInstance){if(isOutlookHostedWindow())window.top.Mscrm.CrmWindow.onBeforeUnloadHandler=null;else windowInstance=$2I_0(handler,windowInstance,"onbeforeunload",true)}function attachWindowOnUnload(handler,windowInstance){if(isOutlookHostedWindow())if(window.top.initActionQueue!=null&&typeof window.top.initActionQueue!="undefined")window.top.initActionQueue.push(function(){window.top.Mscrm.CrmWindow.onUnloadHandler=handler});else window.top.Mscrm.CrmWindow.onUnloadHandler=handler;else windowInstance=$2I_0(handler,windowInstance,"onunload",false)}function detachWindowOnUnload(handler,windowInstance){if(isOutlookHostedWindow())window.top.Mscrm.CrmWindow.onUnloadHandler=null;else windowInstance=$2I_0(handler,windowInstance,"onunload",true)}function $2I_0($p0,$p1,$p2,$p3){if(!$p1)$p1=window.self;if($p3)$p1.detachEvent($p2,$p0);else $p1.attachEvent($p2,$p0);return $p1}function executeOnUnloadHandlers(){return $46_0(Mscrm.CrmWindow.onUnloadHandler)}function executeOnBeforeUnloadHandlers(){return $46_0(Mscrm.CrmWindow.onBeforeUnloadHandler)}function $46_0($p0){var $v_0="",$v_1=false;if($p0){var $v_2=window.document.createEventObject();try{$p0($v_2);if(!IsNull($v_2.returnValue)){$v_0+=$v_2.returnValue;$v_1=true}}catch($$e_2_0){}}return $v_1?$v_0:null}function safeEmailWindowOpen(url,name,features,replace){var $v_0=null;if(IsNull(features))features="";try{$v_0=window.open(url.toString(),name,features,replace)}catch($$e_1_0){handlePopupBlockerError(url.toString())}return $v_0}function safeWindowShowModalDialog(url,arguments,features){var $v_0=url.toString();Mscrm.PerformanceTracing.write("Navigate",$v_0);if(IsNull(arguments))arguments={};try{if(Mscrm.Utilities.get_ieBrowserVersion()<9)arguments["window"]=window}catch($$e_1_0){}if(!features)features="";var $v_1=null;try{do $v_1=window.showModalDialog($v_0,arguments,features);while($v_1==="___RETRY___")}catch($$e_1_0){handlePopupBlockerError($v_0)}return $v_1}function safeWindowShowModelessDialog(url,arguments,features){var $v_0=url.toString();Mscrm.PerformanceTracing.write("Navigate",$v_0);if(IsNull(features))features="";var $v_1=null;try{$v_1=window.showModelessDialog($v_0,arguments,features)}catch($$e_1_0){}IsNull($v_1)&&handlePopupBlockerError($v_0);return $v_1}function openErrorDlg(errorCode,message,errorInfo,width,height){if(IsNull(width)||width<=0)width=parseInt(window.LOCID_ERROR_DIALOG_WIDTH,10);if(IsNull(height)||height<=0)height=parseInt(window.LOCID_ERROR_DIALOG_HEIGHT,10);var $v_0=Mscrm.CrmUri.create("/_common/error/dlg_error.aspx");$v_0.get_query()["hresult"]=!IsNull(errorCode)?errorCode:"";var $v_1={};$v_1["errMessage"]=message;$v_1["errInfo"]=errorInfo;return openStdDlg($v_0,$v_1,width,height,true,false,null)}function openStdWin(url,name,width,height,customWinFeatures){var $v_0=buildWindowFeatures(width,height,customWinFeatures);return openStdWinWithFeatures(url,name,$v_0,true)}function openStdWinWithFeatures(url,name,features,replace){if(isOutlookHostedWindow()){var $v_0=getOutlookHostedWindow(),$v_1=null;if(!IsNull(url))$v_1=$v_0.openWindow(url.toString(),name,features);else $v_1=$v_0.openWindow(null,name,features);$v_1.opener=window.self;return $v_1}else return safeWindowOpen(url,name,features,replace)}function buildWindowFeatures(windowWidth,windowHeight,customWinFeatures){windowWidth=Mscrm.Display.$3B(windowWidth);windowHeight=Mscrm.Display.$3A(windowHeight);var $v_0=Mscrm.Display.$3C(windowWidth),$v_1=Mscrm.Display.$3E(windowHeight);customWinFeatures=IsNull(customWinFeatures)||!customWinFeatures.length?"":","+customWinFeatures;return "width="+windowWidth+",height="+windowHeight+",status=1,resizable=1,left="+$v_0+",top="+$v_1+customWinFeatures}function openStdDlg(url,arguments,width,height,resizable,modeless,customWinParams){if(IsNull(customWinParams))customWinParams="";if(IsNull(arguments))arguments="";if(IsNull(resizable))resizable=true;if(IsNull(modeless))modeless=false;if(typeof height!=="number")height=parseInt(height.toString(),10);if(typeof width!=="number")width=parseInt(width.toString(),10);if(resizable){width+=parseInt(window.LOCID_DIALOG_OFFSET_WIDTH,10);height+=parseInt(window.LOCID_DIALOG_OFFSET_HEIGHT,10)}width=Mscrm.Display.$3B(width);height=Mscrm.Display.$3A(height);var $v_0=Mscrm.Display.$3C(width),$v_1=Mscrm.Display.$3E(height);if(window.LOCID_UI_DIR==="RTL")$v_0=window.screen.availWidth-$v_0-width;var $v_2="";if(modeless)$v_2="dialogLeft:"+$v_0+"px;dialogTop:"+$v_1+"px;";customWinParams="dialogWidth:"+width+"px;dialogHeight:"+height+"px;"+$v_2+"help:0;status:1;scroll:0;center:1;resizable:"+(resizable?"yes":"no")+";"+customWinParams;if(isOutlookHostedWindow()){var $v_3=getOutlookHostedWindow();if(!modeless)return $v_3.showModalDialog(url.toString(),arguments,customWinParams);else{var $v_4=$v_3.showModelessDialog(url.toString(),arguments,customWinParams);$v_4.opener=window.self;return $v_4}}else if(!modeless)return safeWindowShowModalDialog(url,arguments,customWinParams);else return safeWindowShowModelessDialog(url,arguments,customWinParams)}function getDialogArguments(){var $v_0=window.dialogArguments;if(!$v_0&&isOutlookHostedWindow()){$v_0=getOutlookHostedWindow().getDialogArguments();window.dialogArguments=$v_0}return $v_0}function getDialogReturnValue(){return window.returnValue}function isOutlookHostedWindow(){if(Mscrm.SessionInfo.isOutlookClient()){var $v_0=getOutlookHostedWindow();if(!IsNull($v_0))return $v_0.HostEnabled}return false}function isRichClient(){if(isOutlookHostedWindow()){var $v_0=getOutlookHostedWindow();return $v_0.ParentFrameAvailable}return false}function getOutlookHostedWindow(){return window.external}function closeWindow(){if(isOutlookHostedWindow())window.setTimeout(closeOutlookWindow,0);else try{window.top.close()}catch($v_0){window.close()}}function closeOutlookWindow(){getOutlookHostedWindow().closeWindow()}function resizeWindow(width,height){if(isOutlookHostedWindow())getOutlookHostedWindow().resizeWindow(width,height);else{var $v_0=window.dialogWidth;if(typeof $v_0!=="undefined"){window.dialogWidth=width+"px";window.dialogHeight=height+"px"}else window.resizeTo(width,height)}}function openIsvWin(url,passParams,mode,parameters,dialogArgs){if(passParams)url=addIsvParameters(url);if(IsNull(mode))mode=0;if(IsNull(dialogArgs))dialogArgs={};if(dialogArgs.self!==window.self)dialogArgs["window"]=window;switch(mode){case 1:safeWindowShowModalDialog(url,dialogArgs,parameters);break;case 2:safeWindowShowModelessDialog(url,dialogArgs,parameters);break;default:safeWindowOpen(url,buildWinName(null),parameters,true);break}}function addIsvParameters(url){url.get_query()["orgname"]=window.ORG_UNIQUE_NAME;url.get_query()["userlcid"]=window.USER_LANGUAGE_CODE;url.get_query()["orglcid"]=window.ORG_LANGUAGE_CODE;var $v_0=$get("crmFormSubmit");if(typeof $v_0!=="undefined"&&!IsNull($v_0)){url.get_query()["type"]=$v_0.crmFormSubmitObjectType.value;url.get_query()["typename"]=$v_0.crmFormSubmitObjectTypeName.value;url.get_query()["id"]=$v_0.crmFormSubmitId.value}return url}function addPassiveAuthParameters(url){if(!isNullOrEmptyString(window.ISV_ADDITIONAL_AUTH)){var $v_0=window.ISV_ADDITIONAL_AUTH.split("=");url.get_query()[$v_0[0]]=$v_0[1]}return url}function isOutlookInstance(){try{var $v_0=Mscrm.CrmUri.create(window.top.location.href);return $v_0.get_scheme().toUpperCase()==="OUTLOOK"}catch($$e_1_0){return false}}function setPageTitle(title){if(isNullOrEmptyString(title))title=window.LOCID_BRANDNAME;try{var $v_0=title;if(title!==window.LOCID_BRANDNAME)$v_0=String.format(window.LOCID_WINDOW_TITLE_FORMAT,title,window.LOCID_BRANDNAME);try{window.top.document.title=$v_0}catch($$e_2_0){document.title=$v_0}}catch($$e_1_0){}}function openUrl(url,relative){if(isOutlookInstance()||(IsNull(Mscrm.PageManager)&&IsNull(Mscrm.PageManager.get_instance())||!Mscrm.PageManager.isFlatUIPage())){window.navigate(url);return}if(IsNull(relative))relative=true;if(relative){var $v_2=Mscrm.CrmUri.create(window.location.href).get_path().split("/");$v_2[$v_2.length-1]=url;url="";var $v_3=0;while($v_3<$v_2.length){if(IsNull($v_2[$v_3])||!$v_2[$v_3].length){$v_3++;continue}url+="/"+$v_2[$v_3];$v_3++}}var $v_0=getStickyViewIdForSubAreaPage(Mscrm.CrmUri.create(url)),$v_1={};$v_1["uri"]=$v_0.toString();Mscrm.PageManager.get_instance().raiseEvent(21,$v_1);return}function openUrlByCrmUrl(url,parameters){if(isOutlookInstance()||(IsNull(Mscrm.PageManager)&&IsNull(Mscrm.PageManager.get_instance())||!Mscrm.PageManager.isFlatUIPage())){window.navigate(url.toString());return}if(IsNull(parameters))parameters={};parameters["uri"]=url.toString();Mscrm.PageManager.get_instance().raiseEvent(21,parameters)}function getStickyViewIdForSubAreaPage(url){if(isNullOrEmptyString(url.get_query()["pid"]))return url;try{var $v_0={};$v_0["pid"]=url.get_query()["pid"];var $v_1=Mscrm.PageManager.get_instance().raiseEvent(48,$v_0);if(!IsNull($v_1)){var $v_2=$v_1[0];if(!IsNull($v_2)){url.get_query()["viewId"]=$v_2.get_query()["viewId"];url.get_query()["viewType"]=$v_2.get_query()["viewType"]}}}catch($$e_1_0){}return url}function getRecordUrl(type,id){var $v_0={};$v_0["returnUrl"]=true;var $v_1=null;if(!IsNull(id)&&id.length>0)$v_1="?id="+CrmEncodeDecode.CrmUrlEncode(id);if(openFrmObj($v_1,null,type,null,Mscrm.NavigationMode.DefaultNavigationMode,$v_0))return $v_0["uri"];return Mscrm.CrmUri.create("")}function openFrmObj(queryString,name,type,urlPrefix,mode,parameters){var $v_0=openFrmObject(queryString,name,type,urlPrefix,mode,parameters);if($v_0||!$v_0)return $v_0;return !IsNull($v_0)}function openFrmObject(queryString,name,type,urlPrefix,mode,parameters){if(IsNull(mode))mode=Mscrm.NavigationMode.DefaultNavigationMode;var $v_0=mode===1;if(IsNull(queryString))queryString="";if(typeof type==="string")type=parseInt(type,10);switch(type){case 9002:case 4425:case 4405:case 4423:case 0:case 4605:case 4602:case 4603:case 8e3:case 1120:case 4606:case 4607:case 4608:case 4615:case 4616:case 4618:case 4709:case 29:case 4410:case 1112:return null;case 9100:if(!queryString.length)type=9099;break;case 127:if(!queryString.length)type=9202;break}var $v_1=Mscrm.WindowInformation.getWindowInformation(type),$v_2=$v_1.Url,$v_3=$v_1.Width,$v_4=$v_1.Height;if(!IsNull($v_2)){if(queryString.length>0&&queryString.charAt(0)==="?"||queryString.charAt(0)==="&")queryString=queryString.substr(1);if(IsNull(urlPrefix))urlPrefix="";var $v_5=$v_2.toString();$v_2=Mscrm.CrmUri.create(urlPrefix+$v_5+($v_5.indexOf("?")===-1?"?":"&")+queryString);var $v_6=$v_2.get_query()["id"],$v_7;try{$v_7=window.top}catch($$e_2_0){$v_7=window.self}switch(type){case 126:name+="Viewer";break;case 1080:if(!queryString.length){var $v_I=Mscrm.CrmUri.create("/Tools/ProductCatalog/dlg_create.aspx");$v_I.get_query()["ObjType"]=1080;var $v_J=openStdDlg($v_I,null,350,250,true,false,null);if(IsNull($v_J))return null;$v_2=Mscrm.CrmUri.create($v_J)}break;case 1056:if(!queryString.length){var $v_K=Mscrm.CrmUri.create("/Tools/ProductCatalog/dlg_create.aspx");$v_K.get_query()["ObjType"]=1056;var $v_L=openStdDlg($v_K,null,400,240,true,false,null);if(IsNull($v_L))return null;$v_2=Mscrm.CrmUri.create($v_L)}break;case 1082:case 5003:return !IsNull(openStdDlg($v_2,$v_7.window,$v_3,$v_4,true,false,null));case 129:return !IsNull(openStdDlg(Mscrm.CrmUri.create("/Tools/SubjectManager/dialogs/edit.aspx?"+queryString+"&readOnly=1"),null,$v_3,$v_4,true,false,null));case 5004:$v_2.get_query()["calendarId"]=$get("calendarId").value;$v_2.get_query()["resourceId"]=$get("oId").value;$v_2.get_query()["name"]="Time off";$v_2.get_query()["mode"]="Edit";return !IsNull(openStdDlg($v_2,$v_7.window,$v_3,$v_4,true,false,null));case 5006:case 5007:$v_2.get_query()["calendarId"]=$get("calendarId").value;$v_2.get_query()["innerCalendarId"]=$get("oId").value;$v_2.get_query()["name"]="Working Hours";$v_2.get_query()["mode"]="Edit";return !IsNull(openStdDlg($v_2,$v_7.window,$v_3,$v_4,true,false,null));case 5005:$v_2.get_query()["mode"]="Edit";if(!IsNull(openStdDlg($v_2,$v_7.window,$v_3,$v_4,true,false,null))){Mscrm.Utilities.refreshCurrentGrid(4004);return true}else return false;case 5008:$v_2.get_query()["calendarId"]=$get("calendarId").value;$v_2.get_query()["resourceId"]=$get("oId").value;$v_2.get_query()["selecteddates"]=crmGrid.InnerGrid.SelectedRecords[0][3].cells[crmGrid.InnerGrid.FindColumnIndex("starttime")].firstChild.firstChild.nodeValue;$v_2.get_query()["mode"]=$get("mode").value;return !IsNull(openStdDlg($v_2,null,$v_3,$v_4,true,false,null));case 5009:case 5010:$v_2.get_query()["calendarId"]=$get("calendarId").value;$v_2.get_query()["resourceId"]=$get("oId").value;$v_2.get_query()["name"]="Working Hours";$v_2.get_query()["mode"]=$get("mode").value;break;case 4003:return false;case 4230:return false;case 9004:if(name&&name.length===32)$v_2.get_query()["QueryId"]=name;var $v_8=openStdDlg($v_2,$v_7.window,$v_3,$v_4,true,false,null);Mscrm.Utilities.refreshCurrentGrid(4230);return !IsNull($v_8);case 9100:var $v_9=Mscrm.CrmUri.create(window.location.href);if(!$v_9.get_path().toUpperCase().endsWith("TOOLS/SOLUTION/AREAS.ASPX")){name=buildWinName(null);break}else{var $v_M=$v_2.get_query()["id"].toString(),$v_N=Mscrm.WindowInformation.getWindowInformation(9099),$v_O=Mscrm.CrmUri.create("/CRMReports/reportproperty.aspx");$v_O.get_query()["disablePersonal"]=true;$v_O.get_query()["id"]=$v_M;return !IsNull(openStdWin($v_O,buildWinName(null),$v_N.Width,$v_N.Height,null))}case 4703:if(queryString.indexOf("id")>-1)break;var $v_A=$v_2.toString(),$v_B=$v_A.lastIndexOf("/"),$v_C="";if($v_B>0)$v_C=$v_A.substring(0,$v_B+1);var $v_D=Mscrm.CrmUri.create($v_C+"workflowTemplate/workflowTemplatePage.aspx"),$v_E=openStdDlg($v_D,name,640,480,true,false,null);if(IsNull($v_E)||!$v_E.Success)return true;$v_2=$v_1.Url;$v_2.get_query()["id"]=$v_E.Id;Mscrm.Grid.auto(4703,$v_E.Name);break;case 1010:if(!queryString.length)return !IsNull(openStdDlg(Mscrm.CrmUri.create("/cs/contracts/lookup_template.aspx"),window,parseInt(window.LOCID_CONTRACTS_TDIALOG_WIDTH,10),parseInt(window.LOCID_CONTRACTS_TDIALOG_HEIGHT,10),true,false,null));break;case 2010:if(!$v_6||!$v_6.length){var $v_P=Mscrm.CrmUri.create("/Tools/EmailTemplateEditor/Dialogs/emailtemplateproperties.aspx");$v_P.get_query()["isPersonal"]="0";openStdDlg($v_P,window,400,200,true,false,null);return true}break;case 4200:case 9202:return !IsNull(openStdDlg($v_2,window,$v_3,$v_4,true,false,null));case 1030:case 1031:var $v_F=Mscrm.CrmUri.create(window.location.href);if(!$v_F.get_path().toUpperCase().endsWith("TOOLS/SOLUTION/AREAS.ASPX")){delete $v_2.get_query().id;$v_2.get_query()["dashboardId"]=$v_6;$v_2.get_query()["dashboardType"]=type;openUrl($v_2.toString(),false)}else{var $v_Q=Mscrm.CrmUri.create("/main.aspx?pagetype=dashboardeditor"),$v_R="&formId="+$v_6+"&dashboardType="+type;$v_Q.get_query()["extraqs"]=$v_R;openStdWin($v_Q,buildWinName(null),window.screen.availWidth*.9,window.screen.availHeight*.9,null)}return true;case 1111:var $v_G=Mscrm.CrmUri.create("/main.aspx?pagetype=vizdesigner");$v_G.get_query()["extraqs"]="id="+$v_6;openStdWin($v_G,buildWinName($v_6),$v_1.Width,$v_1.Height,"resizable=0");return true;default:if(Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode(type))$v_2.get_query()["etc"]=type;break}if(!IsNull(parameters)&&!IsNull(parameters["returnUrl"])&&parameters["returnUrl"]){parameters["uri"]=$v_2;return true}var $v_H=false;if(!IsNull(parameters)&&!IsNull(parameters["sameWindow"]))$v_H=parameters["sameWindow"];else $v_H=$v_0;if(!isOutlookInstance()&&Mscrm.PageManager.isFlatUIPage()&&Mscrm.PageManager.isFlatUrl($v_2.toString())&&$v_H){if(IsNull(parameters))parameters={};parameters["uri"]=$v_2.toString();parameters["name"]=name;parameters["windowWidth"]=$v_3;parameters["windowHeight"]=$v_4;parameters["sameWindow"]=true;var $v_S=Mscrm.PageManager.get_instance().$6_1.raiseEvent(21,parameters,null);if(!(IsNull($v_S)||!$v_S.length))return true}if(!IsNull($v_2.get_path())&&$v_2.get_path().toLowerCase()==="/userdefined/edit.aspx"&&!$v_0){var $v_T=$v_2.get_query()["pagemode"],$v_U=$v_2.get_query()["redir"];if((IsNull($v_U)||$v_U!=="0")&&(IsNull($v_T)||$v_T!=="iframe")){if(window.EDIT_PRELOAD&&type!==1056&&type!==1080){$v_2.get_query()["preloadcache"]=(new Date).getTime();$v_2.get_query()["pagemode"]="iframe";$5W_0($v_2)}queryString=$v_2.get_queryString();$v_2=Mscrm.CrmUri.create("/main.aspx");$v_2.get_query()["etc"]=type.toString();$v_2.get_query()["pagetype"]="entityrecord";$v_2.get_query()["extraqs"]=queryString}}if(isOutlookHostedWindow())switch(type){case 9099:case 9801:case 9802:case 9803:case 9804:case 9805:case 9806:case 9807:case 9808:case 9809:case 9810:case 9811:return openStdWin($v_2,name,$v_3,$v_4,null);default:var $v_V=getOutlookHostedWindow().openInspector(type,$v_2.toString(),$v_4,$v_3);if(!IsNull($v_V))$v_V.opener=window.self;return $v_V}else if(!$v_0)return openStdWin($v_2,name,$v_3,$v_4,null);else{openInPlace($v_2,$v_3,$v_4);return true}}return false}function isPreloadComplete(contentUrl){contentUrl=Mscrm.CrmUri.create(contentUrl).toString();var $v_0=Mscrm.CrmWindow.$1f_0[contentUrl];if($v_0){if(!$v_0.get_isLoaded())return null;window.self.PreloadStartTime=$v_0.$27_0;window.self.PreloadEndTime=$v_0.$26_0;delete Mscrm.CrmWindow.$1f_0[contentUrl]}return contentUrl}function $5W_0($p0){var $v_0=$p0.toString(),$v_1=new Mscrm.PagePreloadInfo;Mscrm.CrmWindow.$1f_0[$v_0]=$v_1;try{var $v_2=Mscrm.XmlUtil.createXmlHttp();$v_2.onreadystatechange=function(){if($v_2.readyState===4){$v_2.onreadystatechange=null;$v_1.set_isLoaded(true);if($v_2.status!==200);$v_2=null}};$v_2.open("GET",$v_0,true);$v_2.send(null)}catch($v_3){}}function openInPlace(path,x,y){x=Mscrm.Display.$3B(x);y=Mscrm.Display.$3A(y);var $v_0=Mscrm.Display.$3C(x),$v_1=Mscrm.Display.$3E(y);window.moveTo($v_0,$v_1);resizeWindow(x,y);window.navigate(path.toString())}function openItem(type,id,mode,extraParams){if(IsNull(extraParams))extraParams={};extraParams["sameWindow"]=mode===1;return openObj(type,id,null,null,mode,extraParams)}function openObj(type,id,parameters,urlPrefix,mode,extraParams){try{var $v_0=openObject(type,id,parameters,urlPrefix,mode,extraParams);if($v_0||!$v_0)return $v_0;return !IsNull($v_0)}catch($$e_1_0){return false}}function openObject(type,id,parameters,urlPrefix,mode,extraParams){if(typeof type==="string")type=parseInt(type,10);var $v_0="";if(id){if(type===1039){var $v_1=new RemoteCommand("SystemCustomization","CheckSavedQuery",null);$v_1.SetParameter("savedQueryId",id);if(!$v_1.Execute(null).Success)return null}$v_0+="?id="+CrmEncodeDecode.CrmUrlEncode(id)}if(!IsNull(parameters)){$v_0+=!$v_0.length?"?":"&";if(parameters.length>0&&(parameters.charAt(0)==="?"||parameters.charAt(0)==="&"))parameters=parameters.substr(1);$v_0+=parameters}return openFrmObject($v_0,buildWinName(id),type,urlPrefix,mode,extraParams)}function openObjEx(type,parentType,parentId,parameters,urlPrefix){try{var $v_0="";if(parentId)$v_0+="?pId="+CrmEncodeDecode.CrmUrlEncode(parentId)+"&pType="+CrmEncodeDecode.CrmUrlEncode(parentType.toString());if(!IsNull(parameters)){if(parameters.length>0&&(parameters.charAt(0)==="?"||parameters.charAt(0)==="&"))parameters=parameters.substr(1);$v_0+="&"+parameters}return openFrmObj($v_0,buildWinName(null),type,urlPrefix,Mscrm.NavigationMode.DefaultNavigationMode,null)}catch($$e_1_0){return false}}function closeWindowScript(){var $v_0=Mscrm.PageManager.get_instance();if(IsNull($v_0))$v_0=window.parent.Sys.Application.findComponent("crmPageManager");if(!IsNull($v_0)){var $v_1=23;if(Mscrm.NavigationMode.DefaultNavigationMode===1)$v_1=18;$v_0.raiseEvent($v_1,null);return}closeWindow()}function openPopup(){var $v_0=window.createPopup();SetDefaultStyles($v_0);return $v_0}function SetDefaultStyles(popup){if(!IsNull(popup)){var $v_0=null;if(Mscrm.SessionInfo.isHelpContext()){$v_0=Mscrm.CrmUri.create("/help/common/fonts.css.aspx");$v_0.set_useOrganizationName(false)}else $v_0=Mscrm.CrmUri.create("/_common/styles/fonts.css.aspx");popup.document.createStyleSheet($v_0.toString())}}function buildWinName(s){if(s){var $v_0=new RegExp("[-\\{\\}:]","g");return s.toLowerCase().replace($v_0,"")}return (new Date).getTime().toString()}function $5H_0(){if(Sys.Browser.agent===Sys.Browser.InternetExplorer)if(Sys.Browser.version>=8)return true;else{var $v_0=new RegExp("Trident\\/[0-9]+\\.?[0-9]*");if(Sys.Browser.version>=7&&$v_0.test(window.navigator.userAgent))return true}return false}function handlePopupBlockerError(url){var $v_0=Mscrm.CrmUri.create(url);if(!IsNull($v_0))if($5H_0()&&!Mscrm.CrmUri.isSameDomain($v_0,Mscrm.CrmUri.create(window.location.href)))return;alert(window.LOCID_POPUP_BLOCKER_ERROR+window.location.hostname)}function validateUrlProtocol(url){var $v_0=Mscrm.CrmUri.create(url);if(isNullOrEmptyString($v_0.get_scheme()))return 0;switch($v_0.get_scheme()){case "http":case "https":case "ftp":case "ftps":case "onenote":case "tel":return 1;default:return 2}}Mscrm.DateTimeUtility=function(){};Mscrm.DateTimeUtility.get_$5k_0=function(){return !!window._useTaiwanCalendar};Mscrm.DateTimeUtility.getCalendarYear=function(value){var $v_0=new Date(value.getFullYear(),value.getMonth(),value.getDate()),$v_1=Mscrm.Utilities.trimStart(value.localeFormat("yyyy"),["0"]),$v_2=Mscrm.DateTimeUtility.$4D_0(Sys.CultureInfo.CurrentCulture);if($v_2.indexOf("g")===-1)return $v_1;$v_0.setDate(1);var $v_3=$v_0.localeFormat("gg");return String.format(LOCID_YEAR_DISPLAYFORMAT,$v_3,$v_1)};Mscrm.DateTimeUtility.formatDate=function(value,format){var $v_0=value.localeFormat(isNullOrEmptyString(format)?"d":format);if(isNullOrEmptyString($v_0)){alert(LOCID_ALERT_ACTUAL_DATE_FAIL);return null}else if(Mscrm.DateTimeUtility.get_$5k_0()){var $v_1=value.localeFormat("yyyy");if($v_0.indexOf($v_1)>-1){var $v_2=$v_1.length-2,$v_3=0;while($v_3<$v_2&&$v_1.charAt($v_3)==="0")$v_3++;if($v_3>0){var $v_4=$v_1.substr($v_3);$v_0=$v_0.replace($v_1,$v_4)}}}return $v_0};Mscrm.DateTimeUtility.localDateTimeNow=function(){var $v_0=new Date;$v_0.setMinutes($v_0.getMinutes()+$v_0.getTimezoneOffset()+window.ORG_TIMEZONE_OFFSET);return $v_0};Mscrm.DateTimeUtility.parseDate=function(value){if(isNullOrEmptyString(value))return null;var $v_0=Mscrm.NumberUtility.fullWidthToHalfWidth(value),$v_1=Sys.CultureInfo.CurrentCulture,$v_2=Mscrm.DateTimeUtility.$2Q_0($v_0,$v_1,"d");if(!$v_2){var $v_3=Mscrm.DateTimeUtility.$4D_0($v_1);if($v_3.indexOf("g")>-1){var $v_6=$v_3.replace(new RegExp("\\s*g+\\s*"),"");$v_2=Mscrm.DateTimeUtility.$2Q_0($v_0,$v_1,$v_6)}var $v_4=new RegExp("y{4}");if(!$v_2&&$v_4.test($v_3)){var $v_7=$v_3.replace($v_4,"yy");$v_2=Mscrm.DateTimeUtility.$2Q_0($v_0,$v_1,$v_7)}var $v_5=window._fallbackCultureInfo;if(!$v_2&&!IsNull($v_5)){var $v_8=new RegExp("^[0-9]"),$v_9=new RegExp("[0-9]{4}");if($v_8.test($v_0)&&$v_9.test($v_0))$v_2=Mscrm.DateTimeUtility.$2Q_0($v_0,$v_5,"d")}}if(!$v_2){var $v_A=new RemoteCommand("DateTimeService","GetActualDate");$v_A.ErrorHandler=function($p1_0,$p1_1){};$v_A.SetParameter("date",$v_0);var $v_B=$v_A.Execute();if($v_B.Success&&!isNullOrEmptyString($v_B.ReturnValue))$v_2=new Date($v_B.ReturnValue)}if(!$v_2||$v_2<Mscrm.DateTimeUtility.$3q_0||Mscrm.DateTimeUtility.$3p_0<$v_2){alert(String.format(LOCID_ALERT_ENTER_VALID_DATE,window.USER_DATE_FORMATTED_FORMATSTRING));return null}return $v_2};Mscrm.DateTimeUtility.today=function(){var $v_0=Mscrm.DateTimeUtility.localDateTimeNow();return new Date($v_0.getFullYear(),$v_0.getMonth(),$v_0.getDate())};Mscrm.DateTimeUtility.getDateOnly=function(dateTime){return new Date(dateTime.getFullYear(),dateTime.getMonth(),dateTime.getDate())};Mscrm.DateTimeUtility.$4D_0=function($p0){return $p0.dateTimeFormat["ShortDatePattern"]};Mscrm.DateTimeUtility.$2Q_0=function($p0,$p1,$p2){if($p1===Sys.CultureInfo.CurrentCulture)return Date.parseLocale($p0,$p2);else if(Date._parse)return Date._parse($p0,$p1,[null,$p2]);return null};function LocalDateTimeNow(){return Mscrm.DateTimeUtility.localDateTimeNow()}Mscrm.CrmDebug=function(){};Mscrm.CrmDebug.assert=function(condition,errorMessage){};Mscrm.CrmDebug.fail=function(errorMessage){};Mscrm.DeferredActionHandlerFactory=function(){};Mscrm.DeferredActionHandlerFactory.create=function(id){if(IsNull(id))return Mscrm.DefaultDeferredActionHandler.get_instance();var $v_0=Mscrm.DefaultDeferredActionHandler.get_instance();switch(id){case "RecordUpdated":$v_0=Mscrm.RecordUpdatedHandler.get_instance();break}return $v_0};Mscrm.DefaultDeferredActionHandler=function(){};Mscrm.DefaultDeferredActionHandler.get_instance=function(){var $v_0=null;if(IsNull($v_0))$v_0=new Mscrm.DefaultDeferredActionHandler;return $v_0};Mscrm.DefaultDeferredActionHandler.prototype={handleDeferredAction:function(parameters,extraParams){if(IsNull(parameters["eventCode"]))return;if(!IsNull(parameters["uri"])&&!IsNull(extraParams["appendqs"])){var $v_1=Mscrm.CrmUri.create(parameters["uri"]);$v_1.appendToQuery(extraParams["appendqs"]);parameters["uri"]=$v_1.toString()}var $v_0=parameters["eventCode"];Mscrm.PageManager.get_instance().raiseEvent($v_0,parameters)}};Mscrm.RecordUpdatedHandler=function(){};Mscrm.RecordUpdatedHandler.$47_0=function($p0){var $v_0=$p0["appendqs"].toString();if(!isNullOrEmptyString($v_0)){$v_0=$v_0.substr(1);var $v_1=$v_0.split("=");return $v_1}return null};Mscrm.RecordUpdatedHandler.get_instance=function(){var $v_0=null;if(IsNull($v_0))$v_0=new Mscrm.RecordUpdatedHandler;return $v_0};Mscrm.RecordUpdatedHandler.prototype={handleDeferredAction:function(parameters,extraParams){if(Mscrm.NavigationMode.DefaultNavigationMode===1){var $v_8=extraParams["isNew"],$v_9=extraParams["newId"];if($v_8&&!IsNull($v_9)&&$v_9.length>0){var $v_A={};$v_A["updateQueryString"]=String.format("id={0}",$v_9);Mscrm.PageManager.get_instance().raiseEvent(43,$v_A)}}var $v_0=parameters["etc"],$v_1=parameters["title"],$v_2=parameters["id"];if(parameters["isNew"])$v_2=extraParams["newId"];Mscrm.Utilities.refreshParentGrid($v_0,$v_1,$v_2);var $v_3={};$v_3["Id"]=$v_2;$v_3["otc"]=parameters["etc"];$v_3["etn"]=parameters["etn"];$v_3["entitydisplayname"]=parameters["entitydisplayname"];$v_3["title"]=$v_1;Mscrm.PageManager.get_instance().raiseEvent(51,$v_3);Mscrm.DefaultDeferredActionHandler.get_instance().handleDeferredAction(parameters,extraParams);var $v_4=parameters["action"];switch($v_4){case "save":var $v_5=parameters["refreshOnSave"];if(!IsNull($v_5)&&$v_5){var $v_B=false,$v_C=Mscrm.CrmUri.create(window.top.location.href),$v_D=null;if($v_C.get_path().endsWith("/main.aspx")){var $v_E=$v_C.get_query()["extraqs"];$v_D=Mscrm.CrmUri.create("");!IsNull($v_E)&&$v_D.appendToQuery($v_E);if(IsNull($v_D.get_query()["id"]))$v_B=true}if($v_B&&parameters["isNew"]){$v_D.get_query()["etc"]=$v_0;$v_D.get_query()["pagemode"]="iframe";$v_D.get_query()["id"]=extraParams["newId"];$v_C.get_query()["extraqs"]=$v_D.toString();window.top.location.href=$v_C.toString();break}else{var $v_F=Mscrm.CrmUri.create(parameters["uri"]);delete $v_F.get_query().preloadcache;var $v_G=parameters["isNew"];if($v_G){var $v_I=extraParams["newId"];$v_F.get_query()["id"]=$v_I}if(!IsNull($v_2)&&IsNull($v_F.get_query()["id"]))$v_F.get_query()["id"]=$v_2;var $v_H={};$v_H["uri"]=$v_F.toString();if(Mscrm.PageManager.isPageLoaded)Mscrm.PageManager.get_instance().raiseEvent(22,$v_H);else window.setTimeout(Function.createDelegate(this,function(){Mscrm.PageManager.get_instance().raiseEvent(22,$v_H)}),0)}}break;case "saveandclose":case "delete":Mscrm.Utilities.closeCurrentWindow();break;case "saveandnew":parameters["sameWindow"]=true;var $v_6=null,$v_7=Mscrm.CrmUri.create("");if(!IsNull(parameters["_CreateFromType"])&&!IsNull(parameters["_CreateFromId"])){$v_7.get_query()["_CreateFromType"]=parameters["_CreateFromType"].toString();$v_7.get_query()["_CreateFromId"]=parameters["_CreateFromId"].toString()}if(!IsNull(parameters["pId"])&&!IsNull(parameters["pName"])&&!IsNull(parameters["pType"])){$v_7.get_query()["pId"]=parameters["pId"].toString();$v_7.get_query()["pName"]=parameters["pName"].toString();$v_7.get_query()["pType"]=parameters["pType"].toString()}if(!IsNull(extraParams["partyid"])&&!IsNull(extraParams["partyname"])&&!IsNull(extraParams["partytype"])){$v_7.get_query()["partyid"]=extraParams["partyid"].toString();$v_7.get_query()["partyname"]=extraParams["partyname"].toString();$v_7.get_query()["partytype"]=extraParams["partytype"].toString()}switch($v_0){case 1071:case 1011:case 1013:case 1089:case 1091:case 1083:case 1085:case 1055:var $$dict_1_0=extraParams;for(var $$key_1_1 in $$dict_1_0){var $v_J={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};if($v_J.key!=="etc"&&$v_J.key!=="pagemode")if($v_J.key==="appendqs"){var $v_K=Mscrm.RecordUpdatedHandler.$47_0(extraParams);if($v_K)$v_7.get_query()[$v_K[0]]=$v_K[1]}else $v_7.get_query()[$v_J.key]=extraParams[$v_J.key]}break;case 3234:if(!IsNull(extraParams["connectToMe"]))$v_7.get_query()["connectToMe"]=extraParams["connectToMe"].toString();else if(!IsNull(extraParams["appendqs"])){var $v_L=Mscrm.RecordUpdatedHandler.$47_0(extraParams);if(!IsNull($v_L)&$v_L[0]==="connectToMe")$v_7.get_query()["connectToMe"]=$v_L[1]}break}$v_6=$v_7.get_queryString();openObj($v_0,null,$v_6,null,1,parameters);$v_0===1010&&IsNull(parameters["_CreateFromType"])&&closeWindow();break}}};Mscrm.Display=function(){};Mscrm.Display.get_windowSizeAdjusted=function(){return Mscrm.Display.$2W_0};Mscrm.Display.set_windowSizeAdjusted=function(value){Mscrm.Display.$2W_0=value;return value};Mscrm.Display.$3B=function($p0){var $v_0=$p0;if(!$p0)$p0=window.screen.availWidth>=1e3?820:750;$p0=$p0>=window.screen.availWidth?window.screen.availWidth:$p0;Mscrm.Display.$2W_0=$p0!==$v_0;return $p0};Mscrm.Display.$3A=function($p0){if(!$p0)return window.screen.availHeight>=600?560:510;else return $p0>=window.screen.availHeight?window.screen.availHeight:$p0};Mscrm.Display.$3C=function($p0){var $v_0=0;if(window.screen.availWidth-$p0>0)$v_0=(window.screen.availWidth-$p0)/2;return $v_0};Mscrm.Display.$3E=function($p0){var $v_0=0;if(window.screen.availHeight-$p0>0)$v_0=(window.screen.availHeight-$p0)/2;return $v_0};Mscrm.ErrorInformation=function(oXml){this.$1X_0="";this.$2u_0="Not available";this.$2d_0="Not available";this.$2x_0="";this.$2y_0="";this.$2z_0="";this.$2f_0="";this.$2e_0="";this.$2C_0="";this.$2w_0="";!IsNull(oXml)&&this.$5L_0(oXml)};Mscrm.ErrorInformation.createFromDoc=function(oXml){return new Mscrm.ErrorInformation(oXml)};Mscrm.ErrorInformation.createErrorInfo=function(code,msg,serializedException){var $v_0=new Mscrm.ErrorInformation(null);$v_0.$1U_0=code;$v_0.$1X_0=msg;$v_0.$2C_0=serializedException;return $v_0};Mscrm.ErrorInformation.createExtendedErrorInfo=function(code,msg,serializedException,otherParameters){var $v_0=Mscrm.ErrorInformation.createErrorInfo(code,msg,serializedException);if(otherParameters&&otherParameters.length>0){$v_0.$16_0={};for(var $v_1=0;$v_1<otherParameters.length;$v_1++)$v_0.$16_0[$v_1.toString()]=otherParameters[$v_1]}return $v_0};Mscrm.ErrorInformation.prototype={$1U_0:null,$16_0:null,$5L_0:function($p0){var $v_0=$p0.selectSingleNode("error");if(!IsNull($v_0)){this.$1U_0=Mscrm.XmlUtil.getNodeText($v_0,"code",null);this.$1X_0=CrmEncodeDecode.CrmHtmlEncode(Mscrm.XmlUtil.getNodeText($v_0,"description",""));this.$2u_0=Mscrm.XmlUtil.getNodeText($v_0,"line","Not available");this.$2d_0=Mscrm.XmlUtil.getNodeText($v_0,"details","Not available");this.$2x_0=Mscrm.XmlUtil.getNodeText($v_0,"requesturl","");this.$2y_0=Mscrm.XmlUtil.getNodeText($v_0,"source","");this.$2z_0=Mscrm.XmlUtil.getNodeText($v_0,"stacktrace","");this.$2f_0=Mscrm.XmlUtil.getNodeText($v_0,"displaytitle","");this.$2e_0=Mscrm.XmlUtil.getNodeText($v_0,"displaytext","");this.$2C_0=Mscrm.XmlUtil.getNodeText($v_0,"exception","");this.$2w_0=Mscrm.XmlUtil.getNodeText($v_0,"pathAndQuery","");this.$16_0=this.$54_0($v_0,"parameters")}},$54_0:function($p0,$p1){var $v_0=$p0.selectSingleNode($p1);if(!IsNull($v_0)){for(var $v_1={},$v_2=0;$v_2<$v_0.childNodes.length;$v_2++)$v_1[$v_2.toString()]=$v_0.childNodes[$v_2].text;return $v_1}return null},get_description:function(){return this.$1X_0},get_line:function(){return this.$2u_0},get_details:function(){return this.$2d_0},get_code:function(){return this.$1U_0},get_requesturl:function(){return this.$2x_0},get_source:function(){return this.$2y_0},get_stacktrace:function(){return this.$2z_0},get_displaytitle:function(){return this.$2f_0},get_displaytext:function(){return this.$2e_0},get_pathAndQuery:function(){return this.$2w_0},get_serializedException:function(){return this.$2C_0},get_parameters:function(){return this.$16_0},formatMessage:function(message){if(this.$16_0&&message){var $v_0=[],$$dict_2_0=this.$16_0;for(var $$key_2_1 in $$dict_2_0){var $v_1={key:$$key_2_1,value:$$dict_2_0[$$key_2_1]};if(!IsNull(this.$16_0[$v_1.key]))$v_0[Number.parseInvariant($v_1.key)]=$v_1.value;else break}if($v_0.length===2)message=String.format(message,$v_0[0],$v_0[1]);else if($v_0.length===3)message=String.format(message,$v_0[0],$v_0[1],$v_0[2]);else if($v_0.length===4)message=String.format(message,$v_0[0],$v_0[1],$v_0[2],$v_0[3]);else if($v_0.length===5)message=String.format(message,$v_0[0],$v_0[1],$v_0[2],$v_0[3],$v_0[4]);else message=String.format(message,$v_0)}return message}};Mscrm.EventManager=function(){this.$1C_1={};Mscrm.EventManager.initializeBase(this)};Mscrm.EventManager.prototype={$2h_1:0,isEventing:function(){if(IsNull(this.$N_1))return !!this.$2h_1;else return this.$N_1.isEventing()},subscribeEvent:function(eventCode,controlId){var $v_0="SE"+eventCode.toString();if(IsNull(this.$1C_1[$v_0]))this.$1C_1[$v_0]=[];var $v_1=this.$1C_1[$v_0];$v_1[$v_1.length]=controlId},$1J_1:false,get_isTransient:function(){return this.$1J_1},set_isTransient:function(value){this.$1J_1=value;return value},$1N_1:null,get_transientId:function(){return this.$1N_1},set_transientId:function(value){this.$1N_1=value;return value},$N_1:null,get_parentEventManager:function(){return this.$N_1},set_parentEventManager:function(value){this.$N_1=value;return value},get_parentEventManagerId:function(){if(!IsNull(this.$N_1))return this.$N_1.get_id();else return null},set_parentEventManagerId:function(value){this.$N_1=$find(value);return value},$1S_1:null,get_childEventManagerIds:function(){return this.$1S_1},set_childEventManagerIds:function(value){this.$1S_1=value;return value},get_eventSubscribers:function(){return null},set_eventSubscribers:function(value){for(var $v_0=value,$v_1=0;$v_1<$v_0.length;$v_1++){var $v_2=$v_0[$v_1].split("|"),$v_3=parseInt($v_2[0],10),$v_4=$v_2[1].split(","),$v_5="SE"+$v_3.toString();this.$1C_1[$v_5]=$v_4}return value},$3H_1:function($p0,$p1,$p2,$p3,$p4){var $v_0=[],$v_1="SE"+$p0.toString(),$v_2=this.$1C_1[$v_1];if(!IsNull($v_2))for(var $v_3=0;$v_3<$v_2.length;$v_3++){var $v_4=$v_2[$v_3].trim();if($p3&&($p2&&$v_4===$p2.get_id()))continue;var $v_5=$find($v_4);if($v_5||!Mscrm.PageManager.$15_2)try{var $v_6=$v_5.handleEvent($p0,$p1,$p2);$v_0[$v_0.length]=$v_6}catch($v_7){catchError($v_7.message,window.location.href,0,true,$p4,$v_7.number)}}return $v_0},$3G_1:function($p0,$p1,$p2,$p3,$p4){var $v_0=[];if(!IsNull(this.$1S_1))for(var $v_1=0;$v_1<this.$1S_1.length;$v_1++){var $v_2=this.$1S_1[$v_1].trim();if($p4&&$v_2===$p3)continue;var $v_3=$find($v_2);if($v_3||!Mscrm.PageManager.$15_2){var $v_4=$v_3.propogateEvent($p0,$p1,$p2,this.get_id());$v_0=$v_0.concat($v_4)}}if(!IsNull(this.$t_1)){var $$dict_2_0=this.$t_1;for(var $$key_2_1 in $$dict_2_0){var $v_5={key:$$key_2_1,value:$$dict_2_0[$$key_2_1]},$v_6=$v_5.key;if($p4&&$v_6===$p3)continue;var $v_7=$v_5.value;try{var $v_8=$v_7.propogateEvent($p0,$p1,$p2,this.get_id());$v_0=$v_0.concat($v_8)}catch($$e_4_0){}}}return $v_0},raiseEvent:function(eventCode,parameters,sourceComponent){var $v_0=false;try{if(window.location.href.toUpperCase().indexOf("OUTLOOK://")>=0)$v_0=true}catch($$e_1_0){return []}if(IsNull(this.$N_1))this.$2h_1++;var $v_1=[],$v_2;try{switch(eventCode){case 0:if(!IsNull(this.$t_1)){var $v_4=this.get_id()+" has tcemid = ",$$dict_3_0=this.$t_1;for(var $$key_3_1 in $$dict_3_0){var $v_5={key:$$key_3_1,value:$$dict_3_0[$$key_3_1]};$v_4+=$v_5.key+","}alert($v_4)}break}var $v_3=arguments.caller;$v_2=this.$3H_1(eventCode,parameters,sourceComponent,true,$v_3);$v_1=$v_1.concat($v_2);$v_2=this.$3G_1(eventCode,parameters,sourceComponent,this.get_id(),false);$v_1=$v_1.concat($v_2);if(!$v_0&&!IsNull(this.$N_1)){$v_2=this.$N_1.bubbleEvent(eventCode,parameters,sourceComponent,this.$1J_1?this.$1N_1:this.get_id(),$v_3);$v_1=$v_1.concat($v_2)}}catch($v_6){catchError($v_6.message,window.location.href,0,true,null,$v_6.number)}finally{if(IsNull(this.$N_1))this.$2h_1--}return $v_1},propogateEvent:function(eventCode,parameters,sourceComponent,sourceEventManagerId){var $v_0=[],$v_1;$v_1=this.$3H_1(eventCode,parameters,sourceComponent,false,arguments.caller);$v_0=$v_0.concat($v_1);$v_1=this.$3G_1(eventCode,parameters,sourceComponent,sourceEventManagerId,false);$v_0=$v_0.concat($v_1);return $v_0},bubbleEvent:function(eventCode,parameters,sourceComponent,sourceEventManagerId,caller){var $v_0=[],$v_1;$v_1=this.$3H_1(eventCode,parameters,sourceComponent,true,caller);$v_0=$v_0.concat($v_1);$v_1=this.$3G_1(eventCode,parameters,sourceComponent,sourceEventManagerId,true);$v_0=$v_0.concat($v_1);if(!IsNull(this.$N_1)){$v_1=this.$N_1.bubbleEvent(eventCode,parameters,sourceComponent,this.$1J_1?this.$1N_1:this.get_id(),caller);$v_0=$v_0.concat($v_1)}return $v_0},$4T_1:0,$t_1:null,registerTransientChildEventManager:function(childEventManager){if(IsNull(this.$t_1))this.$t_1={};var $v_0=this.get_id()+"$tcem"+this.$4T_1.toString();this.$4T_1++;this.$t_1[$v_0]=childEventManager;return $v_0},unregisterTransientChildEventManager:function(uniqueRegisteredId){if(IsNull(this.$t_1))return;delete this.$t_1[uniqueRegisteredId]}};Mscrm.Form=function(){};Mscrm.Form.resetFormToVisibleArea=function(){var $v_0=$get("areaForm");if($v_0&&$v_0.scrollTop>0)$v_0.scrollTop=0};Mscrm.Form.setFieldRequiredOrRecommended=function(field,toType,toAlt){if(IsNull(field)||IsNull(field.className))return;if(IsNull(toAlt))toAlt="";var $v_0,$v_1,$v_2,$v_3=null,$v_4=false;switch(toType){case 2:$v_0="ms-crm-Field-Normal";$v_1="ms-crm-Field-Recommended";$v_2="ms-crm-Field-Required";$v_3=Mscrm.CrmUri.create("/_imgs/frm_required.gif");break;case 1:$v_0="ms-crm-Field-Required";$v_1="ms-crm-Field-Normal";$v_2="ms-crm-Field-Recommended";$v_3=Mscrm.CrmUri.create("/_imgs/frm_recommended.gif");break;case 0:default:$v_0="ms-crm-Field-Required";$v_1="ms-crm-Field-Recommended";$v_2="ms-crm-Field-Normal";$v_4=true;break}var $v_5=field.className.replace($v_0,"");$v_5=$v_5.replace($v_1,"");if($v_5.indexOf($v_2)<0)$v_5+=" "+$v_2;field.className=$v_5;var $v_6=field.getElementsByTagName("IMG"),$v_7=0;if(!IsNull($v_6))$v_7=$v_6.length;if($v_4){if($v_7>0)$v_6[$v_7-1].style.display="none"}else if($v_7<=0){var $v_8=field;if(!IsNull(field.firstChild))$v_8=field.firstChild;$v_8.innerHTML+='<img alt="'+CrmEncodeDecode.CrmHtmlAttributeEncode(toAlt)+'" src="'+CrmEncodeDecode.CrmHtmlAttributeEncode($v_3.toString())+'"/>'}else{var $v_9=$v_6[$v_7-1];$v_9.src=$v_3.toString();$v_9.alt=toAlt;$v_9.style.display="inline"}};function SetFieldRequiredOrRecommended(field,toType,toAlt){Mscrm.Form.setFieldRequiredOrRecommended(field,toType,toAlt)}Mscrm.ButtonUtils=function(){};Mscrm.ButtonUtils.hoverOn=function(e){if(!IsNull(e)&&!e.disabled)e.className="ms-crm-Button ms-crm-Button-Hover"};Mscrm.ButtonUtils.hoverOff=function(e){if(!IsNull(e)&&!e.disabled)e.className="ms-crm-Button"};Mscrm.FormEditor=function(){};Mscrm.FormEditor.OpenEditor=function(typeCode,formId,entityId){var $v_0="",$v_1=new RemoteCommand("FormEditorWebService","GetFormAndEntityType",null);$v_1.SetParameter("formId",formId);$v_1.SetParameter("entityId",entityId);var $v_2=$v_1.Execute(null);if($v_2.Success){$v_0=$v_2.ReturnValue.toString();var $v_3=$v_0.split(":");if($v_3.length===2){var $v_4=parseInt($v_3[0],10),$v_5=$v_3[1];switch($v_4){case 2:Mscrm.FormEditor.OpenFormEditor(typeCode,"main",formId,-1);break;case 5:Mscrm.FormEditor.OpenMobileFormEditor($v_5,formId);break}}}};Mscrm.FormEditor.OpenFormEditor=function(typeCode,formType,formId,actionType){var $v_0=Mscrm.CrmUri.create("/main.aspx?pagetype=formeditor");$v_0.get_query()["etc"]=typeCode;if(IsNull(actionType))actionType=-1;if(!isNullOrEmptyString(formId)){formId=formId.replace("{","");formId=formId.replace("}","");$v_0.get_query()["extraqs"]="formtype="+CrmEncodeDecode.CrmNameValueEncode(formType)+"&formId="+CrmEncodeDecode.CrmNameValueEncode(formId)+"&action="+CrmEncodeDecode.CrmNameValueEncode(actionType.toString())}else $v_0.get_query()["extraqs"]="formtype="+CrmEncodeDecode.CrmNameValueEncode(formType)+"&action="+CrmEncodeDecode.CrmNameValueEncode(actionType.toString());var $v_1=String.format("{0}Editor",formType);openStdWin($v_0,$v_1,1024,768,null)};Mscrm.FormEditor.OpenMobileFormEditor=function(logicalName,formId){var $v_0=Mscrm.CrmUri.create("/m/console/entityconfig.aspx");$v_0.get_query()["etn"]=logicalName;if(!isNullOrEmptyString(formId)){formId=formId.replace("{","");formId=formId.replace("}","");$v_0.get_query()["formId"]=formId}var $v_1=String.format("{0}Editor","mobile");openStdWin($v_0,$v_1,1024,768,null)};Mscrm.FormEditor.PublishEntity=function(selEntityTypeCode,primEntityTypeCode){Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/scripts/syscustutil.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/entities/scripts/util.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/scripts/syscustvalidation.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/formeditor/scripts/util.js"));var $v_0=selEntityTypeCode;if(!$v_0)$v_0=primEntityTypeCode;var $v_1=Mscrm.FormEditor.GetPublishXml($v_0);publishEntities($v_1,true,null,null)};Mscrm.FormEditor.PublishAll=function(){Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/scripts/syscustutil.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/entities/scripts/util.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/systemcustomization/scripts/syscustvalidation.js"));Mscrm.CrmHeader.setScriptFile(Mscrm.CrmUri.create("/_static/tools/formeditor/scripts/util.js"));publishEntitiesAll(null,null)};Mscrm.FormEditor.GetPublishXml=function(entityCode){var $v_0=createXmlDoc("publish"),$v_1=addXmlNode($v_0,"entities"),$v_2=Mscrm.FormEditor.getEntityId(entityCode);addTextXmlNode($v_1,"entity",$v_2);return convertXmlDocToString($v_0)};Mscrm.FormEditor.getEntityId=function(entityCode){var $v_0="";try{var $v_1=new RemoteCommand("FormEditorWebService","GetEntityId",null);$v_1.SetParameter("entityCode",entityCode);var $v_2=$v_1.Execute(null);if($v_2.Success)$v_0=$v_2.ReturnValue.toString()}catch($$e_1_0){$v_0=""}return $v_0};Mscrm.Rte=function(){};Mscrm.Rte.AddImage=function(entityTypeCode){switch(entityTypeCode){case 9333:var $v_0=Mscrm.CrmUri.create("/_grid/cmds/dlg_AddItem.aspx?type=image"),$v_1=openStdDlg($v_0,null,700,250);SetItem($v_1);break}};Mscrm.Rte.AddHyperlink=function(entityTypeCode){switch(entityTypeCode){case 9333:var $v_0=Mscrm.CrmUri.create("/_grid/cmds/dlg_AddItem.aspx?type=hyperlink"),$v_1=openStdDlg($v_0,null,700,200);SetItem($v_1);break}};Mscrm.WebResourceUtils=function(){};Mscrm.WebResourceUtils.ShowWebResourceDependencies=function(oid,objectTypecode){var $v_0=Mscrm.CrmUri.create("/tools/dependency/dependencyviewdialog.aspx");$v_0.get_query()["objectid"]=oid;$v_0.get_query()["objecttype"]=objectTypecode;$v_0.get_query()["operationtype"]="showdependency";openStdWin($v_0,"ShowDependency",800,600,null)};Mscrm.ItemObject=function(){};Mscrm.ItemObject.prototype={type:"",name:"",serverUrl:"",altText:""};Mscrm.GlobalEvents=function(){};Mscrm.GlobalEvents.$44_0=function($p0){var $v_0=String.fromCharCode(Mscrm.GlobalEvents.$5X_0($p0.keyCode)).toUpperCase();if($p0.ctrlKey){switch($v_0){case "P":$p0.rawEvent.keyCode=0;$p0.rawEvent.returnValue=false;$p0.stopPropagation();break}if($v_0===window.LOCID_JUMP_TO_RIBBON)setFocusOnRibbon($p0.target);else if($v_0===window.LOCID_JUMP_TO_RIBBON_CONTROL)setFocusOnLastRibbonControl($p0.target);else if($p0.shiftKey&&$v_0==="7")Mscrm.Utilities.raiseKeyPressEvent(58,$p0.target);else if($p0.shiftKey&&$v_0==="#")Mscrm.Utilities.raiseKeyPressEvent(59,$p0.target);else $p0.shiftKey&&$v_0==="5"&&Mscrm.Utilities.raiseKeyPressEvent(67,$p0.target)}};Mscrm.GlobalEvents.$5X_0=function($p0){if(!Mscrm.GlobalEvents.$H_0){Mscrm.GlobalEvents.$H_0={};Mscrm.GlobalEvents.$H_0[219]=91;Mscrm.GlobalEvents.$H_0[221]=93;Mscrm.GlobalEvents.$H_0[51]=35;Mscrm.GlobalEvents.$H_0[186]=59;Mscrm.GlobalEvents.$H_0[187]=61;Mscrm.GlobalEvents.$H_0[188]=44;Mscrm.GlobalEvents.$H_0[189]=45;Mscrm.GlobalEvents.$H_0[190]=46;Mscrm.GlobalEvents.$H_0[191]=47;Mscrm.GlobalEvents.$H_0[222]=39}if(Mscrm.GlobalEvents.$H_0[$p0])return Mscrm.GlobalEvents.$H_0[$p0];return $p0};Mscrm.GlobalEvents.$50_0=function(){var $v_0=window.event,$v_1=$v_0.srcElement;if(!$v_1.tagName)return;var $v_2=$v_1.tagName.toUpperCase();if(!Mscrm.GlobalEvents.$5K_0()&&$v_2!=="INPUT"&&$v_2!=="TEXTAREA"&&!($v_2==="DIV"&&Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Lookup"))&&!Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Field-Data-Print")&&!Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Field-Label-Print")&&!Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Tab-Print")&&!Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Form-Section-Print")&&!Sys.UI.DomElement.containsCssClass($v_1,"ms-crm-Form-Print"))$v_0.returnValue=false};Mscrm.GlobalEvents.$5K_0=function(){if(typeof _UI_TEXT_SELECTABLE!="undefined"&&_UI_TEXT_SELECTABLE==="1")return true;return false};Mscrm.GlobalEvents.get_globalAllowDrag=function(){return Mscrm.GlobalEvents.$2P_0};Mscrm.GlobalEvents.set_globalAllowDrag=function(value){Mscrm.GlobalEvents.$2P_0=value;return value};Mscrm.GlobalEvents.$4z_0=function(){window.event.returnValue=Mscrm.GlobalEvents.$2P_0};Mscrm.GlobalEvents.$4y_0=function(){var $v_0=window.event,$v_1=$v_0.srcElement.tagName.toUpperCase(),$v_2=document.selection.createRange().text;$v_0.returnValue=!$v_0.srcElement.disabled&&(!IsNull($v_2)&&$v_2.length>0||$v_1==="TEXTAREA"||$v_1==="INPUT"&&$v_0.srcElement.type==="text")};Mscrm.Grid=function(){};Mscrm.Grid.auto=function(objectTypeCode,findValue,entityId){if(String===Object.getType(objectTypeCode))objectTypeCode=Number.parseInvariant(objectTypeCode);var $v_0=Mscrm.EntityPropUtil.isActivityTypeCode(objectTypeCode),$v_1=Mscrm.EntityPropUtil.isQueueItemTypeCode(objectTypeCode);if(objectTypeCode===9004)objectTypeCode=4230;var $v_2=window.document;try{var $v_4=window.frameElement;if($v_4)if($v_4.isArea)$v_2=window.parent.document;else if($v_4.className==="ms-crm-Home-Cal-Workplace"){$v_2.location.reload();return}else if($v_4.className==="ms-crm-Home-Cal-Month"){$v_2=window.parent.document;$v_2.location.reload();return}}catch($$e_1_0){}for(var $v_3=$v_2.frames,$v_5=0;$v_5<$v_3.length;$v_5++)try{var $v_6=$v_3[$v_5].frameElement;if($v_6.className==="ms-crm-Home-Cal-Month")!IsNull($v_3[$v_5].Refresh)&&$v_3[$v_5].Refresh(objectTypeCode);else if($v_6.className==="noteData")$v_6.IsParentTabVisible()&&(objectTypeCode===5||!$v_6.IsDirty)&&$v_6.Refresh(true);else if($v_6.className==="ms-crm-Home-Cal-Workplace"){$v_3[$v_5].location.reload();return}else if($v_6.className==="ms-crm-Dialog-Lookup-Results"){if(objectTypeCode.toString()===$get("selObjects").value.toString()){window.search(findValue);return}}else if($v_6.isArea){var $v_7=$v_3[$v_5].frames;if($v_7&&$v_7.length>0){$v_6=$v_7[0].frameElement;$v_6.className==="ms-crm-Home-Cal-Month"&&!IsNull($v_7[0].Refresh)&&$v_7[0].Refresh(objectTypeCode)}var $v_8=$v_3[$v_5].document;Mscrm.Grid.findAndRefreshGrids($v_8.getElementsByTagName("TABLE"),objectTypeCode,$v_0,$v_1,findValue,entityId)}}catch($$e_3_0){}Mscrm.Grid.findAndRefreshGrids($v_2.getElementsByTagName("TABLE"),objectTypeCode,$v_0,$v_1,findValue,entityId)};Mscrm.Grid.findAndRefreshGrids=function(tables,objectTypeCode,isActivity,isQueueable,findValue,entityId){if(String===Object.getType(objectTypeCode))objectTypeCode=Number.parseInvariant(objectTypeCode);for(var $v_0=0;$v_0<tables.length;$v_0++){var $v_1=tables[$v_0];if($v_1.className.indexOf("ms-crm-ListControl")>-1&&$v_1.GetParameter("autorefresh")==="1"&&(Number.parseInvariant($v_1.GetParameter("otc"))===objectTypeCode||isActivity&&(Number.parseInvariant($v_1.GetParameter("otc"))===4200||objectTypeCode===4200)||isQueueable&&(Number.parseInvariant($v_1.GetParameter("otc"))===2029||objectTypeCode===2029)||Number.parseInvariant($v_1.GetParameter("otc"))===7103||$v_1.GetParameter("otc")==="0")){var $v_2=$get("crmGrid_findCriteria"),$v_3=Mscrm.CrmUri.create(window.location.toString().toUpperCase());if(!IsNull(findValue)&&$v_2&&$v_3.get_path().indexOf("LOOKUPINFO.ASPX")>0){$v_2.value=findValue;window.search($v_3.get_query()["LOOKUPSTYLE"]==="MULTI",entityId);return}$v_1.ClearPagingCookie();$v_1.Refresh()}}Mscrm.PageManager.isOutlookProxyPage()&&getOutlookHostedWindow().refreshGrid()};Mscrm.Grid.getGridRecords=function(grid,columns,layoutXml){var $v_0=new Array(1),$v_1=null;if(!IsNull(columns)){$v_1=new Array(0);var $v_7=Mscrm.XmlUtil.loadXmlDocument(layoutXml),$v_8=$v_7.firstChild.childNodes,$v_9=0;while($v_9<$v_8.length){var $v_A=$v_8[$v_9].text,$v_B=0;while($v_B<columns.length){if(columns[$v_B]===$v_A){var $v_C=$v_1.length;if(IsNull($v_1[$v_C]))$v_1[$v_C]={};$v_1[$v_C]["fieldname"]=$v_8[$v_9].attributes.getNamedItem("fieldname").text;$v_1[$v_C]["index"]=$v_9}++$v_B}++$v_9}}var $v_2=0,$v_3=grid.getElementsByTagName("COL");if(!IsNull($v_3)&&$v_3.length>3)for(var $v_D=0;$v_D<3;$v_D++)if($v_3[$v_D].className==="ms-crm-List-PreviewGlyphColumn"||$v_3[$v_D].className==="ms-crm-List-CheckBoxColumn"||$v_3[$v_D].className==="ms-crm-List-RowIconColumn"||$v_3[$v_D].className==="ms-crm-List-NonDataColumn")$v_2++;var $v_4=grid.getElementsByTagName("TBODY"),$v_5=null;if(!IsNull($v_4))$v_5=$v_4[0].getElementsByTagName("TR");else $v_5=grid.getElementsByTagName("TR");for(var $v_6=$v_5.length,$v_E=0;$v_E<$v_6;$v_E++){var $v_F=$v_5[$v_E],$v_G=$v_F.attributes.getNamedItem("oid").value;if(!isNullOrEmptyString($v_G)){var $v_H={};$v_H["oid"]=$v_G;var $v_I=$v_F.attributes.getNamedItem("otype").value;if(!isNullOrEmptyString($v_I))$v_H["otype"]=$v_I;else $v_H["otype"]=grid.attributes.getNamedItem("oname").value;var $v_J=0;while($v_J<$v_1.length){var $v_K=$v_1[$v_J]["index"],$v_L=$v_F.children[$v_K+$v_2].innerText,$v_M=$v_1[$v_J]["fieldname"];$v_H[$v_M]=$v_L;++$v_J}$v_0[$v_E]=$v_H}}return $v_0};function auto(objectTypeCode,findValue,entityId){Mscrm.Grid.auto(objectTypeCode,findValue,entityId)}function findAndRefreshGrids(tables,objectTypeCode,isActivity,findValue,entityId){Mscrm.Grid.findAndRefreshGrids(tables,objectTypeCode,isActivity,false,findValue,entityId)}function getGridRecords(grid,columns,layoutXml){return Mscrm.Grid.getGridRecords(grid,columns,layoutXml)}Mscrm.Help=function(){};Mscrm.Help.loadHelp=function(area){var $v_0="",$v_1=0,$v_2=0,$v_3=285,$v_4;try{$v_4=window.top;var $v_B=$v_4.location.href}catch($$e_1_0){$v_4=window.self}var $v_5=$v_4.screenLeft,$v_6=$v_4.screenTop,$v_7=$v_4.screen,$v_8=$v_4.stage;if(window.LOCID_UI_DIR==="RTL")if($v_5-$v_3-15<3)$v_1=3;else $v_1=$v_5-$v_3-15;else{if($v_5+$v_4.document.body.clientWidth<$v_7.width-$v_3)$v_1=$v_5+$v_4.document.body.clientWidth+3;else $v_1=$v_7.width-300;if(area)$v_1-=280}if($v_6+$v_4.document.body.clientHeight<$v_7.height)$v_2=$v_6-23;else $v_2=$v_7.height-450;var $v_9=Mscrm.CrmUri.create(window.HELP_SERVER_URL.length>0&&Mscrm.SessionInfo.isOnline()?Mscrm.Help.concatenateUrl(window.HELP_SERVER_URL,"/help/default.aspx"):"/help/default.aspx");if(area){$v_9.get_query()["area"]=area;$v_3=565}else{var $v_C=null;if(isRichClient()){var $v_J=getOutlookHostedWindow().getParameter("currentfolderurl");if($v_J!=="")$v_C=Mscrm.CrmUri.create($v_J)}if(!$v_C||$v_C.get_path().toLowerCase()==="/sitemapnavpage.aspx")$v_C=Mscrm.CrmUri.create(window.location.href);if(!IsNull(Mscrm.PageManager)&&!IsNull(Mscrm.PageManager.get_instance())){var $v_K=Mscrm.PageManager.get_instance().raiseEvent(15,null),$v_L=$v_K[0];if(IsNull($v_L)){if(isRichClient()&&$v_C.get_path().toLowerCase()==="/main.aspx"){var $v_M=Number.parseInvariant($v_C.get_query()["etc"]);if(!Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode($v_M)){$v_C=Mscrm.CrmUri.create("/_root/homepage.aspx");$v_C.get_query()["etc"]=$v_M.toString()}else $v_C=Mscrm.CrmUri.create("/_root/stage.aspx")}}else if($v_L.length>0)$v_C=Mscrm.CrmUri.create($v_L)}try{if(!Mscrm.SessionInfo.isOutlookClient()&&$v_C.get_path().toLowerCase()==="/_root/bar_top.aspx"||window.location.protocol==="outlook:")$v_C=Mscrm.CrmUri.create($v_8.location.href)}catch($$e_2_0){return Mscrm.Help.loadHelp("##WHATSNEW##")}var $v_D=$v_C.get_path().toLowerCase();$v_D==="/userdefined/edit.aspx"&&$v_C.set_path($v_D);var $v_E=$v_C;$v_C=Mscrm.CrmUri.create($v_C.get_path());$v_C.set_useOrganizationName(false);Mscrm.SolutionDecorater.removeSolutionIdFromQuerystring($v_C);$v_D=$v_C.get_path().toLowerCase();switch($v_D){case "/userdefined/edit.aspx":if(!IsNull($v_E.get_query()["etc"])){var $v_N=Number.parseInvariant($v_E.get_query()["etc"]);if(!Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode($v_N)){$v_C.get_query()["etc"]=$v_E.get_query()["etc"];if(!IsNull($v_E.get_query()["etn"]))$v_C.get_query()["etn"]=$v_E.get_query()["etn"]}}break;case "/tools/systemcustomization/systemcustomization.aspx":var $v_F=$v_E.get_query()["pid"];if(!IsNull($v_F)&&$v_F!=="0")$v_C.get_query()["pid"]=$v_E.get_query()["pid"];break;case "/_root/homepage.aspx":$v_0="custom_entity_list";$v_C.get_query()["etc"]=$v_E.get_query()["etc"];break;case "/tools/home_tools.aspx":case "/tools/admin/admin.aspx":case "/tools/business/business.aspx":case "/tools/templates/templates.aspx":case "/tools/datamanagement/datamanagement.aspx":case "/tools/productcatalog/productcatalog.aspx":if($v_E.get_query()["web"])delete $v_E.get_query().web;if($v_E.get_query()["sitemappath"])delete $v_E.get_query().sitemappath;$v_C.appendToQuery($v_E.get_queryString());break;case "/tools/formeditor/formeditor.aspx":var $v_O=Mscrm.CrmUri.create($v_4.location.search).get_query()["extraqs"];if(!IsNull($v_O))if($v_O.search(new RegExp("formtype=main"))!==-1)$v_C.get_query()["formtype"]="main";else $v_C.get_query()["formtype"]="preview";else $v_C.get_query()["formtype"]="main";break;case "/tools/regionaloptions/dialogs/regionaloptions.aspx":var $v_P=Mscrm.CrmUri.create($v_4.location.search).get_query()["usersettings"];if(!IsNull($v_P))if($v_P.length>0&&$v_P.toLowerCase()==="true")$v_C.get_query()["context"]="user";else $v_C.get_query()["context"]="sys";break;case "/tools/systemcustomization/relationships/managerelationship.aspx":var $v_Q=Mscrm.CrmUri.create($v_4.location.search).get_query()["entityrole"];if(!IsNull($v_Q))if($v_Q.length>0)$v_C.get_query()["entityrole"]=$v_Q;break;case "/tools/solution/edit.aspx":var $v_G=Mscrm.TreeNavControl.getHelpContextUri();if(!IsNull($v_G)){$v_G.set_useOrganizationName(false);$v_C=$v_G}break;case "/crmreports/viewer/viewer.aspx":var $v_R=Mscrm.CrmUri.create($v_4.location.search).get_query()["helpID"];if(!IsNull($v_R))if($v_R.length>0)$v_C.get_query()["helpID"]=$v_R;$v_0="/crmreports/viewer/viewer.aspx";break;case "/_grid/cmds/dlg_additem.aspx":var $v_S=Mscrm.CrmUri.create($v_4.location.search).get_query()["type"];switch($v_S){case "image":$v_C.get_query()["helpID"]="addImageItem";break;case "hyperlink":$v_C.get_query()["helpID"]="addTextItem";break;default:$v_0="/_grid/cmds/dlg_additem.aspx";break}break;default:try{var $v_T=window.getHelpContext();typeof $v_T==="string"&&$v_C.set_fragment($v_T)}catch($$e_2_0){}break}var $v_H=$v_C.toString(),$v_I=$v_H.toUpperCase();if(Mscrm.Utilities.$3L.test($v_I)){var $v_U=$v_I.indexOf("/WEBRESOURCES/");if($v_U>0)$v_H=$v_H.substr($v_U)}$v_9.get_query()["area"]=$v_H}$v_9.get_query()["user_lcid"]=window.USER_HELP_LCID;if($v_0.length>0)$v_9.get_query()["defaultHelp"]=$v_0;var $v_A=$v_4.document.body.clientHeight-5;if($v_A<300)$v_A=300;$v_9.get_query()["ver"]=CrmEncodeDecode.CrmUrlEncode(window.APPLICATION_FULL_VERSION);try{var $v_V=Mscrm.Utilities.get_ieBrowserVersion()>7?false:true,$v_W="resizable=1,width="+$v_3+",height="+$v_A+",left="+$v_1+",top="+$v_2;if(!IsNull(openStdWinWithFeatures($v_9,"MSCRMHelp",$v_W,$v_V)))return true}catch($$e_1_0){}return false};Mscrm.Help.concatenateUrl=function(url1,url2){if(IsNull(url1)||!url1.length)return url2;if(IsNull(url2)||!url2.length)return url1;if(url1.charAt(url1.length-1)!=="/"&&url2.charAt(0)!=="/")return url1+"/"+url2;if(url1.charAt(url1.length-1)==="/"&&url2.charAt(0)==="/")return url1+url2.substr(1,url2.length-1);return url1+url2};function loadHelp(area){return Mscrm.Help.loadHelp(area)}function ConcatenateUrl(url1,url2){return Mscrm.Help.concatenateUrl(url1,url2)}Mscrm.ImageStrip=function(){};Mscrm.ImageStrip.get_$5D_0=function(){if(!Mscrm.ImageStrip.$1w_0)Mscrm.ImageStrip.$1w_0=Mscrm.ImageStripData.$59();return Mscrm.ImageStrip.$1w_0};Mscrm.ImageStrip.getImage=function(url){var $v_0=Mscrm.ImageStrip.getImageInfo(url),$v_1=document.createElement("IMG");$v_1.src=$v_0.source;$v_1.className=$v_0.cssClass;return $v_1};Mscrm.ImageStrip.getImageInfo=function(url){var $v_0=new Mscrm.ImageInfo,$v_1=Mscrm.ImageStrip.get_$5D_0()[url.get_path().toUpperCase()];if(!$v_1||!window.IMAGE_STRIPS_ENABLED){$v_0.cssClass="";$v_0.source=url.toString()}else{$v_0.cssClass=$v_1;$v_0.source="/_imgs/imagestrips/transparent_spacer.gif"}return $v_0};Mscrm.ImageStrip.getImageStripClassName=function(element){var $v_0=element.className.match(Mscrm.ImageStrip.$4F_0);if($v_0&&$v_0.length>2)return $v_0[2];else return null};Mscrm.ImageStrip.replaceExistingImageStripClass=function(source,newClassValue){for(var $v_0=source,$v_1=$v_0.split(" "),$v_2="",$v_3="",$v_4=0;$v_4<$v_1.length;$v_4++){$v_3=$v_1[$v_4].trim();if($v_3.startsWith("ms-crm-ImageStrip-"))$v_3="";if($v_3==="")continue;$v_2+=$v_3+" "}$v_2+=newClassValue;return $v_2};Mscrm.ImageStrip.changeImage=function(imageToChange,newUrl){var $v_0=Mscrm.ImageStrip.getImageInfo(Mscrm.CrmUri.create(newUrl));imageToChange.src=$v_0.source;imageToChange.className=Mscrm.ImageStrip.replaceExistingImageStripClass(imageToChange.className,$v_0.cssClass)};function IsNull(o){return typeof o==="undefined"||typeof o==="unknown"||o==null}function isArray(item){return item&&(Array.isInstanceOfType(item)||typeof item.splice==="function")}function isInstanceOfTypeAcrossFrames(item,type){try{return IsNull(item)||IsNull(type)?false:Object.getType(item).getName()===type.getName()}catch($$e_1_0){return false}}function isNullOrEmptyString(str){return IsNull(str)||typeof str==="string"&&!str.length}Mscrm.TypeNames=function(){};Mscrm.NumberUtility=function(){};Mscrm.NumberUtility.addFormatting=function(value,precision,noTrailingZeroes){var $v_0=IsNull(precision)||precision<0?10:precision;if(noTrailingZeroes&&$v_0>0){var $v_2=value.toString(10);$v_0=Mscrm.NumberUtility.$38_0($v_2,true)}var $v_1=value.localeFormat("n"+$v_0.toString());try{if(value!==Number.parseLocale($v_1)){var $v_3=value.toString(10),$v_4=Mscrm.NumberUtility.$38_0($v_3,true),$v_5=Mscrm.NumberUtility.$38_0($v_1,false),$v_6="",$v_7=Sys.CultureInfo.CurrentCulture.numberFormat["NumberDecimalSeparator"].toString().charAt(Sys.CultureInfo.CurrentCulture.numberFormat["NumberDecimalSeparator"].toString().length-1);if($v_4<=$v_5){for(var $v_9=$v_5-$v_4,$v_8=0;$v_8<$v_1.length;$v_8++){var $v_A=$v_1.length-1-$v_8;if($v_1.charAt($v_A)===$v_7)break;if($v_8>=$v_9)$v_6=$v_3.charAt($v_3.length-1-$v_8+$v_9)+$v_6;else $v_6="0"+$v_6}$v_6=$v_1.substring(0,$v_1.length-$v_8)+$v_6}if(value===Number.parseLocale($v_6))$v_1=$v_6}}catch($$e_1_0){}return $v_1};Mscrm.NumberUtility.$38_0=function($p0,$p1){for(var $v_0=$p1?Sys.CultureInfo.InvariantCulture:Sys.CultureInfo.CurrentCulture,$v_1=$v_0.numberFormat["NumberDecimalSeparator"].toString().charAt($v_0.numberFormat["NumberDecimalSeparator"].toString().length-1),$v_2=$p0.length-1;$v_2>=0;$v_2--)if($p0.charAt($v_2)===$v_1)return $p0.length-$v_2-1;return 0};Mscrm.NumberUtility.fullWidthToHalfWidth=function(value){if(!isNullOrEmptyString(value))for(var $v_0=0;$v_0<Mscrm.NumberUtility.$2l_0.length;$v_0++)value.replace(new RegExp(Mscrm.NumberUtility.$2l_0[$v_0],"g"),Mscrm.NumberUtility.$3j_0[$v_0]);return value};Mscrm.NumberUtility.locStringToFloat=function(value){try{return Number.parseLocale(Mscrm.NumberUtility.$4I_0(value))}catch($$e_1_0){return Number.NaN}};Mscrm.NumberUtility.locStringToInt=function(value){try{return Math.floor(Number.parseLocale(Mscrm.NumberUtility.$4I_0(value)))}catch($$e_1_0){return Number.NaN}};Mscrm.NumberUtility.$4I_0=function($p0){if(typeof $p0!=="string"||isNullOrEmptyString($p0))return "";var $v_0=Mscrm.NumberUtility.fullWidthToHalfWidth($p0);return $v_0.replace(new RegExp("[\\s\u00a0]*","g"),"")};Mscrm.PagePreloadInfo=function(){this.$27_0=(new Date).getTime()};Mscrm.PagePreloadInfo.prototype={$2r_0:false,$27_0:0,$26_0:0,get_isLoaded:function(){return this.$2r_0},set_isLoaded:function(value){this.$2r_0=value;if(this.$2r_0)this.$26_0=(new Date).getTime();return value},get_preloadEndTime:function(){return this.$26_0},set_preloadEndTime:function(value){this.$26_0=value;return value},get_preloadStartTime:function(){return this.$27_0},set_preloadStartTime:function(value){this.$27_0=value;return value}};Mscrm.PerformanceTracing=function(){};Mscrm.PerformanceTracing.get_$4i_0=function(){return window._perfTraceBuffer};Mscrm.PerformanceTracing.get_$4o_0=function(){return !!Mscrm.PerformanceTracing.get_$40_0()};Mscrm.PerformanceTracing.get_$40_0=function(){if(!Mscrm.PerformanceTracing.$1u_0){var $v_0=window.self,$v_1=null;while($v_0){var $v_2=Mscrm.PerformanceTracing.$57_0($v_0);if(!$v_2)break;$v_1=$v_2;if($v_0.parent!==$v_0.self)$v_0=$v_0.parent;else $v_0=$v_0.opener}Mscrm.PerformanceTracing.$1u_0=$v_1}return Mscrm.PerformanceTracing.$1u_0};Mscrm.PerformanceTracing.onDocumentReady=function(e){document.readyState==="complete"&&Mscrm.PerformanceTracing.write("ReadyState_Complete")};Mscrm.PerformanceTracing.onApplicationLoad=function(sender,e){window.setTimeout(Mscrm.PerformanceTracing.$5O_0,0)};Mscrm.PerformanceTracing.write=function(id,url,message){var $v_0=Mscrm.PerformanceTracing.get_$4i_0();if($v_0){var $v_1=new Mscrm.TraceEntry(id,message,(new Date).getTime(),url);Array.add($v_0,$v_1);Mscrm.PerformanceTracing.get_$4o_0()&&Mscrm.PerformanceTracing.$53_0($v_0)}};Mscrm.PerformanceTracing.$53_0=function($p0){for(var $v_0=Mscrm.CrmUri.create(window.location.href),$v_1=$p0.length,$v_2=0;$v_2<$v_1;$v_2++){var $v_3=$p0[$v_2],$v_4=$v_3.url?Mscrm.CrmUri.create($v_3.url):$v_0,$v_5=String.format("{0} {1} {2}{3} {4}",$v_3.timestamp,$v_3.id,$v_4.get_path(),$v_4.get_queryString(),$v_3.message);Mscrm.PerformanceTracing.get_$40_0().trace($v_5)}Array.clear($p0)};Mscrm.PerformanceTracing.$57_0=function($p0){var $v_0=null;try{$v_0=$p0.Sys}catch($$e_1_0){return null}if($v_0){var $v_1=$v_0.Debug;if($v_1&&$v_1.trace&&$p0.document.getElementById("TraceConsole"))return $v_1}return null};Mscrm.PerformanceTracing.$5O_0=function(){Mscrm.PerformanceTracing.write("After_ApplicationLoad")};Mscrm.OutlookUtil=function(){};Mscrm.OutlookUtil.get_uiUtil=function(){if(IsNull(Mscrm.OutlookUtil.$2G_0)){var $v_0=$get("crmRcUtil");if($v_0)Mscrm.OutlookUtil.$2G_0=$v_0}return Mscrm.OutlookUtil.$2G_0};Mscrm.CacheScope=function(){};Mscrm.PageManager=function(){this.$3N=Function.createDelegate(this,this.$4f_2);this.$3M=Function.createDelegate(this,this.applicationLoadHandler);Mscrm.PageManager.initializeBase(this)};Mscrm.PageManager.get_instance=function(){return $find("crmPageManager")};Mscrm.PageManager.isOutlookProxyPage=function(){try{var $v_0;try{$v_0=Mscrm.CrmUri.create(window.top.location.href)}catch($$e_2_0){$v_0=Mscrm.CrmUri.create(window.location.href)}if($v_0.get_path().toLowerCase()==="/_grid/outlookribboncontextgrid.aspx")return true}catch($$e_1_0){}return false};Mscrm.PageManager.isFlatUIPage=function(){try{var $v_0,$v_1=false;try{$v_0=Mscrm.CrmUri.create(window.top.location.href)}catch($v_3){var $v_4=$v_3.number;if($v_4===-2146828218)$v_1=true;$v_0=Mscrm.CrmUri.create(window.location.href)}var $v_2=Mscrm.CrmUri.create(window.location.href);if($v_0.get_scheme().toUpperCase()==="OUTLOOK"||$v_0.get_path().toUpperCase().endsWith("/STAGE.ASPX")||$v_1){var $v_5=window.self;do{$v_0=Mscrm.CrmUri.create($v_5.location.href);$v_5=$v_5.parent}while($v_5!==$v_5.parent&&!$v_0.get_path().endsWith("/main.aspx"))}if($v_0.get_path().endsWith("main.aspx")&&(window.self===window.parent||$v_2.get_query()["pagemode"]==="iframe")&&typeof _ISFLATUIPAGE!="undefined"&&_ISFLATUIPAGE)return true;else return false}catch($$e_1_0){}return false};Mscrm.PageManager.isFlatObject=function(etc){var $v_0=false;switch(etc){case 4406:case 1:case 2:case 1080:case 1013:case 4:case 3:case 9600:case 9603:case 9604:case 9602:case 112:case 4300:case 4400:case 4402:case 4401:case 123:case 3234:case 1010:case 1011:case 1022:case 1026:case 1038:case 1083:case 1071:case 2029:case 1084:case 1085:case 1088:case 1089:case 8:case 1090:case 1091:case 9100:case 9:case 1024:case 1055:case 1056:case 2013:case 4200:case 4210:case 4201:case 4214:case 4001:case 4212:case 4207:case 4204:case 4202:case 9502:case 9508:case 4412:$v_0=true;break;default:$v_0=etc>=1e4;break}return $v_0};Mscrm.PageManager.isFlatUrl=function(url){var $v_0=Mscrm.CrmUri.create(url);switch($v_0.get_path().toLowerCase()){case "/advancedfind/advfind.aspx":case "/advancedfind/fetchdata.aspx":case "/import/edit.aspx":case "/sfa/accts/edit.aspx":case "/sfa/conts/edit.aspx":case "/sfa/opps/edit.aspx":case "/sfa/comps/edit.aspx":case "/sfa/saleslit/edit.aspx":case "/sfa/opportunityproduct/edit.aspx":case "/sfa/customeraddress/edit.aspx":case "/sfa/leads/edit.aspx":case "/sfa/quotes/edit.aspx":case "/sfa/quotedetail/edit.aspx":case "/sfa/salesorder/edit.aspx":case "/sfa/salesorderdetail/edit.aspx":case "/sfa/invoice/edit.aspx":case "/sfa/invoicedetail/edit.aspx":case "/cs/cases/edit.aspx":case "/cs/contracts/edit.aspx":case "/cs/contractdetails/edit.aspx":case "/cs/home_managekb.aspx":case "/tools/admin/admin.aspx":case "/tools/productcatalog/productcatalog.aspx":case "/tools/documentmanagement/documentmanagement.aspx":case "/tools/datamanagement/datamanagement.aspx":case "/tools/business/business.aspx":case "/products/pricelevel/edit.aspx":case "/products/productpricelevel/edit.aspx":case "/products/discounttype/edit.aspx":case "/products/discounttypeitem/edit.aspx":case "/products/product/edit.aspx":case "/products/uom/edit.aspx":case "/products/uomschedule/edit.aspx":case "ma/camps/edit.aspx":case "ma/campaignactivity/edit.aspx":case "ma/campaignresponse/edit.aspx":case "ma/lists/edit.aspx":case "ma/bulkoperations/edit.aspx":case "/workplace/home_dashboards.aspx":case "/workplace/home_workplace.aspx":case "/workplace/home_activities.aspx":case "/sm/sites/edit.aspx":case "/biz/teams/edit.aspx":case "/biz/users/edit.aspx":case "/tools/queueitem/edit.aspx":case "/activities/phone/edit.aspx":case "/activities/appointment/edit.aspx":case "/activities/serviceappointment/edit.aspx":case "/activities/task/edit.aspx":case "/activities/letter/edit.aspx":case "/activities/email/edit.aspx":case "/activities/fax/edit.aspx":case "/userdefined/edit.aspx":case "/_root/homepage.aspx":case "/main.aspx":return true}return false};Mscrm.PageManager.get_isUnloading=function(){return Mscrm.PageManager.$15_2};Mscrm.PageManager.prototype={mode:null,$1K_2:null,get_parentPageManager:function(){return this.$1K_2},get_parentWindowPageManager:function(){var $v_0=null;try{$v_0=window.top.opener.Sys.Application.findComponent("crmPageManager")}catch($$e_1_0){}return $v_0},uniqueId:null,$1W_2:null,get_deferredActionList:function(){return this.$1W_2},set_deferredActionList:function(value){this.$1W_2=value;return value},$2i_2:false,get_executeDeferredActionsOnDemand:function(){return this.$2i_2},set_executeDeferredActionsOnDemand:function(value){this.$2i_2=value;return value},$2c_2:null,get_deferredActionParameters:function(){return this.$2c_2},set_deferredActionParameters:function(value){this.$2c_2=value;return value},$1g_2:null,get_pageOnLoadScriptList:function(){return this.$1g_2},set_pageOnLoadScriptList:function(value){this.$1g_2=value;return value},initialize:function(){Mscrm.PageManager.callBaseMethod(this,"initialize");Sys.Application.add_load(this.$3M);Sys.Application.add_unload(this.$3N)},executeDeferredActions:function(parameters){this.$45_2(parameters)},applicationLoadHandler:function(sender,args){if(this.mode==="iframe"&&Mscrm.PageManager.isFlatUIPage()&&Mscrm.PageManager.isFlatUrl(window.parent.location.href)){try{this.$1K_2=window.parent.Sys.Application.findComponent("crmPageManager");if(IsNull(this.$1K_2))return}catch($$e_2_0){return}var $v_1=this.$1K_2.$6_1,$v_2=$v_1.registerTransientChildEventManager(this.$6_1);this.$6_1.$1J_1=true;this.$6_1.$1N_1=$v_2;this.$6_1.$N_1=$v_1}var $v_0={};$v_0["uri"]=window.location.href;this.raiseEvent(57,$v_0);if(!document.body.offsetHeight||!document.body.offsetWidth)return;this.raiseEvent(9,$v_0);this.$52_2();!this.$2i_2&&window.setTimeout(Function.createDelegate(this,function(){this.$45_2(null)}),0);Mscrm.PageManager.isPageLoaded=true},$52_2:function(){if(this.$1g_2)for(var $v_0=0;$v_0<this.$1g_2.length;$v_0++)eval(this.$1g_2[$v_0])},$45_2:function($p0){if(this.$1W_2){var $v_0=Mscrm.CrmUri.create("");$v_0.appendToQuery(this.$2c_2.join("&"));var $v_1=$v_0.get_query(),$$dict_2_0=$p0;for(var $$key_2_1 in $$dict_2_0){var $v_2={key:$$key_2_1,value:$$dict_2_0[$$key_2_1]};$v_1[$v_2.key]=$v_2.value}for(var $v_3=0;$v_3<this.$1W_2.length;$v_3++){var $v_4=this.$1W_2[$v_3],$v_5={};$v_5["key"]=$v_4;var $v_6=this.raiseEvent(10,$v_5);if(!$v_6||!$v_6.length)continue;var $v_7=$v_6[0],$v_8=Mscrm.DeferredActionHandlerFactory.create($v_7["handlerId"]);$v_8.handleDeferredAction($v_7,$v_1)}}},$4f_2:function($p0,$p1){this.unload()},unload:function(){if(Mscrm.PageManager.$15_2)return;else Mscrm.PageManager.$15_2=true;if(this.mode==="iframe")if(!IsNull(this.$1K_2)&&this.$6_1.$1J_1){var $v_0=this.$1K_2.$6_1;!IsNull($v_0)&&$v_0.unregisterTransientChildEventManager(this.$6_1.$1N_1)}this.raiseEvent(29,null)}};Mscrm.ReportViewType=function(){};Mscrm.ReportUtil=function(){};Mscrm.ReportUtil.downloadReport=function(id){var $v_0=Mscrm.CrmUri.create("/CRMReports/download.aspx");$v_0.get_query()["id"]=id;var $v_1="frmRptDownload",$v_2=$get($v_1);if(IsNull($v_2)){$v_2=window.document.createElement("iframe");$v_2.style.display="none";$v_2.id=$v_1;$v_2.src=Mscrm.CrmUri.create("/_static/blank.htm").toString();window.document.body.insertBefore($v_2);var $v_3=String.format("$get({0}).src = {1}",CrmEncodeDecode.CrmJavaScriptEncode($v_1),CrmEncodeDecode.CrmJavaScriptEncode($v_0.toString()));window.setTimeout($v_3,10)}else $v_2.src=$v_0.toString()};Mscrm.ReportUtil.handleReportDoubleClick=function(e){var $v_0=e.ObjectRow;Mscrm.ReportUtil.viewReport(parseInt($v_0.reporttypecode,10),$v_0.oid,$v_0.filename,"dblclick",null);e.returnValue=false};Mscrm.ReportUtil.isValidReportName=function(reportName){if(IsNull(reportName)||!reportName.length)return false;var $v_0=new RegExp('[;\\?:@&=\\+\\$,\\\\\\*<>\\|"\\/]'),$v_1=new RegExp("[^ .]");return !$v_0.test(reportName)&&$v_1.test(reportName)};Mscrm.ReportUtil.runReportWizard=function(reportId,createOrgReport){var $v_0=800,$v_1=530,$v_2=Mscrm.CrmUri.create("/WebWizard/WizardContainer.aspx");$v_2.get_query()["WizardId"]="FD24E63E-421A-4b25-9E28-274B4B7A2263";if(!IsNull(reportId))$v_2.get_query()["WizardInput"]=reportId;var $v_3={};$v_3["isOrgReport"]=createOrgReport;return openStdDlg($v_2,$v_3,$v_0,$v_1,true,false,null)};Mscrm.ReportUtil.viewReport=function(reportViewType,reportId,fileName,action,snapshotId){switch(reportViewType){case 1:if(action==="dblclick")action="filter";var $v_0=Mscrm.CrmUri.create("");$v_0.get_query()["helpID"]=fileName;$v_0.get_query()["action"]=action;if(!IsNull(snapshotId))$v_0.get_query()["snapshotID"]=snapshotId;openObj(9100,reportId,$v_0.toString(),"",0,null);break;case 3:if(action==="filter"||action==="editfilter"){alert(window.LOCID_NON_SRS_FILTERSCHEDULE);return}Mscrm.ReportUtil.downloadReport(reportId);break;case 2:case 4:if(action==="filter"||action==="editfilter"){alert(window.LOCID_NON_SRS_FILTERSCHEDULE);return}var $v_1=Mscrm.WindowInformation.getWindowInformation(9100);$v_1.Url.get_query()["id"]=reportId;openStdWin($v_1.Url,buildWinName(null),$v_1.Width,$v_1.Height,"scrollbars=1,toolbar=1,menubar=1,location=1");break}};Mscrm.ReportUtil.getReportCopySuffix=function(formatString){var $v_0=Mscrm.DateTimeUtility.localDateTimeNow(),$v_1=String.format(window.LOCID_DATE_TIME_ORDER_FORMAT,Mscrm.DateTimeUtility.formatDate($v_0),timeToString($v_0,0)),$v_2=String.format(formatString,"{0}",$v_1);return $v_2.replace(new RegExp('[;\\?:@&=\\+\\$,\\\\\\*<>\\|"\\/]',"g"),"_")};Mscrm.ReportUtil.get_reportInformation=function(){return Mscrm.ReportUtil.$29_0};Mscrm.ReportUtil.generateReportMenuXml=function(commandProperties,entityLogicalName,isForm,ribbonSelectionControl){if(!Mscrm.ReportUtil.$1c_0||!Mscrm.ReportUtil.$21_0||entityLogicalName!==Mscrm.ReportUtil.$21_0){Mscrm.ReportUtil.$29_0={};Mscrm.ReportUtil.$21_0=entityLogicalName;var $v_1=Mscrm.ReportUtil.$4w_0(entityLogicalName,isForm,ribbonSelectionControl),$v_2=new RemoteCommand("Reports","GenerateReportMenuXml",null);$v_2.SetParameter("entityLogicalName",entityLogicalName);$v_2.SetParameter("menuId",$v_1);$v_2.SetParameter("isForm",isForm.toString());$v_2.SetParameter("ribbonContext",ribbonSelectionControl.get_ribbonContextType());$v_2.SetParameter("ribbonRelationshipType",ribbonSelectionControl.get_ribbonRelationshipType());var $v_3=$v_2.Execute();Mscrm.ReportUtil.$1c_0=$v_3.ReturnValue}var $v_0=Mscrm.ReportUtil.$1c_0.Reports.ReportInformation;if(!IsNull($v_0)){var $v_4;if(isArray($v_0))$v_4=$v_0;else $v_4=[$v_0];for(var $v_5=0;$v_5<$v_4.length;$v_5++){var $v_6=$v_4[$v_5];Mscrm.ReportUtil.$29_0[$v_6.ID]=$v_6}}commandProperties["PopulationXML"]=Mscrm.ReportUtil.$1c_0.MenuXml;commandProperties["SuppressCommandIncludes"]=true};Mscrm.ReportUtil.$4w_0=function($p0,$p1,$p2){var $v_0="NoRelationship";switch($p2.get_ribbonRelationshipType()){case 1:$v_0="OneToMany";break;case 2:$v_0="ManyToMany";break}var $v_1;if($p1)$v_1="Form";else if($p2.get_ribbonContextType()==="HomePageGrid")$v_1="HomepageGrid";else $v_1="SubGrid";var $v_2=String.format("{0}|{1}|{2}|Mscrm.{3}.{0}.{4}",$p0,$v_0,$p2.get_ribbonContextType(),$v_1,$p1?"Reports":"RunReport");return $v_2};function refreshRibbon(){Mscrm.RibbonUtility.$X(32,null,null)}function isRibbonControlVisible(command,id){return Mscrm.RibbonUtility.$3y(34,command,id)}function isRibbonControlEnabled(command,id){return Mscrm.RibbonUtility.$3y(33,command,id)}function executeRibbonCommand(command){var $v_0={};$v_0["command"]=command;Mscrm.RibbonUtility.$X(31,$v_0,null)}function getXmlFromExecuteRibbonCommand(command){var $v_0={};$v_0["command"]=command;$v_0["getRibbonXmlForOutlookClient"]=true;Mscrm.RibbonUtility.$X(31,$v_0,null);return $v_0["RibbonXmlForOutlookClientResult"]}function unloadRibbonData(rd){Mscrm.RibbonUtility.$X(36,null,rd)}function loadRibbonData(rd,initialTabId){var $v_0={};if(!isNullOrEmptyString(initialTabId))$v_0["initialTabId"]=initialTabId;Mscrm.RibbonUtility.$X(35,$v_0,rd)}function raiseTabSwitchEvent(tabSwitchData){Mscrm.RibbonUtility.$X(39,tabSwitchData,null)}function raiseRibbonRootEvent(rootEventData){Mscrm.RibbonUtility.$X(37,rootEventData,null)}function setSelectedControl(control){var $v_0={};$v_0["selectedControl"]=control;Mscrm.RibbonUtility.$X(38,$v_0,null)}function setFocusOnRibbon(keyPressEventTarget){var $v_0=new Mscrm.RibbonKeyPressParameters;$v_0.eventElement=keyPressEventTarget;Mscrm.RibbonUtility.$X(55,$v_0,null)}function setFocusOnLastRibbonControl(keyPressEventTarget){var $v_0=new Mscrm.RibbonKeyPressParameters;$v_0.eventElement=keyPressEventTarget;Mscrm.RibbonUtility.$X(56,$v_0,null)}function ribbonDebugAlert(value){}Mscrm.RibbonUtility=function(){};Mscrm.RibbonUtility.$3y=function($p0,$p1,$p2){var $v_0={};$v_0["command"]=$p1;$v_0["id"]=$p2;for(var $v_1=Mscrm.RibbonUtility.$X($p0,$v_0,null),$v_2=false,$v_3=0;$v_3<$v_1.length;$v_3++)if($v_1[$v_3])$v_2=true;return $v_2};Mscrm.RibbonUtility.$X=function($p0,$p1,$p2){var $v_0=Mscrm.RibbonUtility.$5B_0();if(!IsNull($v_0)){var $v_1=$v_0.$6_1;if(!IsNull($v_1))return $v_1.raiseEvent($p0,$p1,$p2)}return []};Mscrm.RibbonUtility.$5B_0=function(){var $v_0=Mscrm.PageManager.get_instance();if(!IsNull($v_0))return $v_0;var $v_1=window.parent;while(!IsNull($v_1)&&IsNull($v_0)){var $v_2=$v_1.Mscrm.PageManager;if(!IsNull($v_2))$v_0=$v_2.get_instance();var $v_3=$v_1.parent;$v_1=$v_3===$v_1?null:$v_3}return $v_0};function storeScriptCrashData(crashData){Mscrm.ScriptErrorReporting.$4S(crashData)}function promptAndReportScriptErrors(){Mscrm.ScriptErrorReporting.$2R(null)}function reportScriptError(crashData,addServerInformation,synchronous){Mscrm.ScriptErrorReporting.$4O(crashData,addServerInformation,synchronous)}function catchError(message,url,line,reportToWatson,caller,exceptionNumber){if(Sys.Browser.agent!==Sys.Browser.InternetExplorer)reportToWatson=false;try{if(window._DebugOnScriptError)debugger;if(!Mscrm.ScriptErrorReporting.$5g()&&(window.ScriptErrorReportingPreference===1||window.ScriptErrorReportingPreference===2)){window.status=window.LOCID_SCRIPT_ERROR_STATUS_BAR;var $v_0="",$v_1="";if(!caller)caller=arguments.caller;if(typeof caller!=="undefined"&&caller){var $v_3=caller.callee,$v_4=0;while($v_3&&$v_4<20){var $v_5=new RegExp("\\s","g"),$v_6=$v_3.toString().substr(8).replace($v_5,""),$v_7=$v_6.substring(0,$v_6.indexOf("(")),$v_8=$v_6.substring($v_6.indexOf("("),$v_6.indexOf(")")+1);if(IsNull($v_7)||!$v_7.length||$v_7==="anonymous")$v_7="anonymous"+$v_6;else $v_7+=$v_8;if(!$v_4)$v_1=$v_7.substring(0,255);$v_0+="    <Function>"+CrmEncodeDecode.CrmXmlEncode($v_7)+"</Function>\r\n";$v_3=$v_3.caller;$v_4++}}var $v_2=Mscrm.ScriptErrorReporting.$4q(message,url,line,$v_1,$v_0,reportToWatson,exceptionNumber);isOutlookHostedWindow()&&getOutlookHostedWindow().reportCrash(message,url,line,$v_1,$v_0,reportToWatson);if(window.ScriptErrorReportingPreference===1)exceptionNumber!==-2146823277&&message!=="Can't execute code from a freed script"&&Mscrm.ScriptErrorReporting.$4S($v_2);else{Mscrm.ScriptErrorReporting.$4O($v_2,true,false);window.status=""}return true}}catch($$e_1_0){}return false}Mscrm.ScriptErrorReporting=function(){Mscrm.ScriptErrorReporting.initializeBase(this)};Mscrm.ScriptErrorReporting.$4S=function($p0){if(window.parent!==window.self&&window.parent.storeScriptCrashData){window.parent.storeScriptCrashData($p0);return}if(!Mscrm.ScriptErrorReporting.$p_2)Mscrm.ScriptErrorReporting.$p_2=new Array(0);if(Mscrm.ScriptErrorReporting.$p_2.length<7)Mscrm.ScriptErrorReporting.$p_2[Mscrm.ScriptErrorReporting.$p_2.length]=$p0};Mscrm.ScriptErrorReporting.$2R=function($p0){if(Sys.Browser.agent!==Sys.Browser.InternetExplorer)return;try{try{if(window.parent!==window.self&&window.parent.promptAndReportScriptErrors){window.parent.promptAndReportScriptErrors();return}}catch($$e_2_0){return}if(Mscrm.ScriptErrorReporting.$p_2&&window.ScriptErrorReportingPreference===1){var $v_0=Mscrm.WindowInformation.getWindowInformation(9200);openStdDlg(Mscrm.CrmUri.create("/_common/error/dlg_scriptError.aspx"),Mscrm.ScriptErrorReporting.$p_2,$v_0.Width,$v_0.Height,true,false,null);Mscrm.ScriptErrorReporting.$p_2=null;window.status=""}}catch($$e_1_0){}};Mscrm.ScriptErrorReporting.$4q=function($p0,$p1,$p2,$p3,$p4,$p5,$p6){var $v_0=new Mscrm.CrashData;$v_0.lineNumber=$p2;$v_0.func=$p3;$v_0.reportToWatson=IsNull($p5)?true:$p5;var $v_1=Mscrm.CrmUri.create($p1),$v_2=Mscrm.CrmUri.create(window.location.href);$v_1.set_scheme($v_2.set_scheme(""));$v_1.set_host($v_2.set_host(""));$v_1.set_port($v_2.set_port(-1));$v_1.set_useOrganizationName($v_2.set_useOrganizationName(false));$v_0.fileName=$v_1.get_path();var $v_3="Web";if(Mscrm.SessionInfo.isOutlookLaptopClient())$v_3="Outlook Laptop - "+(Mscrm.SessionInfo.isOnline()?"Online":"Offline");else if(Mscrm.SessionInfo.isOutlookWorkstationClient())$v_3="Outlook Desktop";$v_0.report="<CrmScriptErrorReport>\r\n  <ReportVersion>1.0</ReportVersion>\r\n  <ScriptErrorDetails>\r\n   <Message>"+CrmEncodeDecode.CrmXmlEncode($p0)+"</Message>\r\n"+(!IsNull($p6)?"   <ExceptionNumber>"+CrmEncodeDecode.CrmXmlEncode($p6.toString())+"</ExceptionNumber>\r\n":"")+"   <Line>"+$p2+"</Line>\r\n   <URL>"+CrmEncodeDecode.CrmXmlEncode($v_1.toString())+"</URL>\r\n   <PageURL>"+CrmEncodeDecode.CrmXmlEncode($v_2.toString())+"</PageURL>\r\n   <Function>"+CrmEncodeDecode.CrmXmlEncode($p3)+"</Function>\r\n   <CallStack>\r\n"+$p4+"   </CallStack>\r\n  </ScriptErrorDetails>\r\n  <ClientInformation>\r\n   <BrowserUserAgent>"+CrmEncodeDecode.CrmXmlEncode(window.navigator.userAgent)+"</BrowserUserAgent>\r\n   <BrowserLanguage>"+CrmEncodeDecode.CrmXmlEncode(window.navigator.browserLanguage)+"</BrowserLanguage>\r\n   <SystemLanguage>"+CrmEncodeDecode.CrmXmlEncode(window.navigator.systemLanguage)+"</SystemLanguage>\r\n   <UserLanguage>"+CrmEncodeDecode.CrmXmlEncode(window.navigator.userLanguage)+"</UserLanguage>\r\n   <ScreenResolution>"+window.screen.width+"x"+window.screen.height+"</ScreenResolution>\r\n   <ClientName>"+$v_3+"</ClientName>\r\n   <ClientTime>"+CrmEncodeDecode.CrmXmlEncode(FormatDateTime(new Date))+"</ClientTime>\r\n  </ClientInformation>\r\n</CrmScriptErrorReport>\r\n";return $v_0};Mscrm.ScriptErrorReporting.$4O=function($p0,$p1,$p2){var $v_0=new RemoteCommand("ScriptError","SendScriptErrorReport",null);$v_0.SetParameter("fileName",$p0.fileName);$v_0.SetParameter("lineNumber",$p0.lineNumber.toString());$v_0.SetParameter("function",$p0.func);$v_0.SetParameter("errorReport",$p0.report);$v_0.SetParameter("addServerInformation",$p1.toString());$v_0.SetParameter("errorReportingPreference",Mscrm.ReportingPreference.toString(window.ScriptErrorReportingPreference));$v_0.SetParameter("reportToWatson",$p0.reportToWatson.toString());$v_0.ErrorHandler=function(){};if($p2)$v_0.Execute(null);else $v_0.Execute(Mscrm.ScriptErrorReporting.$51_2)};Mscrm.ScriptErrorReporting.$5g=function(){var $v_0=window.SUPPRESS_SCRIPT_ERRORS;return !!$v_0};Mscrm.ScriptErrorReporting.$51_2=function($p0,$p1){};Mscrm.ScriptErrorReporting.prototype={handleEvent:function($p0,$p1,$p2){switch($p0){case 29:Mscrm.ScriptErrorReporting.$2R(null);break}return Mscrm.ScriptErrorReporting.callBaseMethod(this,"handleEvent",[$p0,$p1,$p2])},dispose:function(){Mscrm.ScriptErrorReporting.$2R(null);Mscrm.ScriptErrorReporting.callBaseMethod(this,"dispose")}};Mscrm.SessionInfo=function(){};Mscrm.SessionInfo.isOutlookClient=function(){return window.IS_OUTLOOK_CLIENT};Mscrm.SessionInfo.isOutlook14Client=function(){return window.IS_OUTLOOK_14_CLIENT};Mscrm.SessionInfo.getClientMajorVersion=function(){var $v_0=window.CLIENT_MAJOR_VERSION;if(!$v_0)return null;else return $v_0};Mscrm.SessionInfo.getOutlookMajorVersion=function(){var $v_0=window.OUTLOOK_MAJOR_VERSION;if(!$v_0)return null;else return $v_0};Mscrm.SessionInfo.isOutlookWorkstationClient=function(){return Mscrm.SessionInfo.isOutlookClient()&&document.cookie.indexOf("LightClient")!==-1};Mscrm.SessionInfo.isOutlookLaptopClient=function(){return window.IS_OUTLOOK_LAPTOP_CLIENT};Mscrm.SessionInfo.isOnline=function(){return window.IS_ONLINE};Mscrm.SessionInfo.isHelpContext=function(){return !(IsNull(window.HELP_CONTEXT)||window.HELP_CONTEXT!==1)};function IsOutlookClient(){return Mscrm.SessionInfo.isOutlookClient()}function IsOutlook14Client(){return Mscrm.SessionInfo.isOutlook14Client()}function getOutlookMajorVersion(){return Mscrm.SessionInfo.getOutlookMajorVersion()}function IsOutlookWorkstationClient(){return Mscrm.SessionInfo.isOutlookWorkstationClient()}function IsOutlookLaptopClient(){return Mscrm.SessionInfo.isOutlookLaptopClient()}function IsOnline(){return Mscrm.SessionInfo.isOnline()}function IsHelpContext(){return Mscrm.SessionInfo.isHelpContext()}Mscrm.Shortcuts=function(){};Mscrm.Shortcuts.getViewUrl=function(){var $v_0=null;if(!Mscrm.SessionInfo.isOnline()){var $v_2=window.location.href,$v_3=window.location.pathname;$v_0=Mscrm.CrmUri.create(Mscrm.Help.concatenateUrl(window.WEB_APP_URL,$v_2.substr($v_2.indexOf($v_3))));$v_0.set_useOrganizationName(false)}else $v_0=Mscrm.CrmUri.create(window.location.href);$v_0=Mscrm.Utilities.getPageUrl($v_0,"entitylist");var $v_1=window._homepageParameterInfo;if(!IsNull($v_1)){for(var $v_5=0;$v_5<$v_1.length;$v_5++){var $v_6=$v_1[$v_5],$v_7=$get($v_6.controlId);if(!IsNull($v_7)&&!IsNull($v_7.DataValue))$v_0.get_query()[$v_6.parameterName]=$v_7.DataValue}var $v_4=$get("crmGrid_SavedQuerySelector");if(!IsNull($v_4))$v_0.get_query()["viewtype"]=getViewType($v_4)}return $v_0};Mscrm.Shortcuts.openEmailForm=function(to,subject,body){var $v_0=new Sys.StringBuilder;$v_0.append("mailto:");$v_0.append(CrmEncodeDecode.CrmUrlEncode(to));$v_0.append("?");if(!IsNull(subject)&&subject.length>0){$v_0.append("subject=");$v_0.append(CrmEncodeDecode.CrmUrlEncode(subject));$v_0.append("&")}if(!IsNull(body)){$v_0.append("body=");$v_0.append(CrmEncodeDecode.CrmUrlEncode(body))}var $v_1=$v_0.toString();if($v_1.length>2020)openErrorDlg("0x80044331",null,null,0,0);else window.open($v_1)};Mscrm.Shortcuts.copyTextToClipboard=function(text,successMessage,failMessage){var $v_0=window.clipboardData;$v_0.clearData(null);var $v_1=2,$v_2=null;while($v_1>0&&!$v_2){$v_0.setData("Text",text);$v_2=$v_0.getData("Text");$v_1--}if(!IsNull($v_2)&&$v_2.length>0)!IsNull(successMessage)&&successMessage.length>0&&alert(successMessage);else!IsNull(failMessage)&&failMessage.length>0&&alert(failMessage)};Mscrm.SolutionDecorater=function(){};Mscrm.SolutionDecorater.setSolutionIdInRequestHeader=function(xmlHttp){var $v_0=$get("crmFormSubmit");if(!IsNull($v_0))!IsNull($v_0.appSolutionId)&&$v_0.appSolutionId.value!==""&&xmlHttp.setRequestHeader($v_0.appSolutionId.id,$v_0.appSolutionId.value);else!IsNull(window.APP_SOLUTION_ID)&&window.APP_SOLUTION_ID!==""&&xmlHttp.setRequestHeader(Mscrm.SolutionDecorater.solutionId,window.APP_SOLUTION_ID)};Mscrm.SolutionDecorater.setSolutionIdInQuerystring=function(url){if(!Mscrm.SolutionDecorater.$5J_0(url.get_path()))return;var $v_0=$get("crmFormSubmit");if(!IsNull($v_0)){if(!IsNull($v_0.appSolutionId)&&$v_0.appSolutionId.value!=="")url.get_query()[$v_0.appSolutionId.id]=$v_0.appSolutionId.value}else if(!IsNull(window.APP_SOLUTION_ID)&&window.APP_SOLUTION_ID!=="")url.get_query()[Mscrm.SolutionDecorater.solutionId]=window.APP_SOLUTION_ID};Mscrm.SolutionDecorater.removeSolutionIdFromQuerystring=function(url){if(!IsNull(url)&&!IsNull(url.get_query()))delete url.get_query()[Mscrm.SolutionDecorater.solutionId]};Mscrm.SolutionDecorater.$5J_0=function($p0){var $v_0=$p0.toUpperCase();!Mscrm.SolutionDecorater.$1_0&&Mscrm.SolutionDecorater.$5E_0();for(var $v_1=0;$v_1<Mscrm.SolutionDecorater.$1k_0.length;$v_1++)if($v_0.startsWith(Mscrm.SolutionDecorater.$1k_0[$v_1]))return false;for(var $v_2=0;$v_2<Mscrm.SolutionDecorater.$1_0.length;$v_2++)if($v_0.startsWith(Mscrm.SolutionDecorater.$1_0[$v_2]))return true;return false};Mscrm.SolutionDecorater.$5E_0=function(){Mscrm.SolutionDecorater.$1_0=new Array(48);Mscrm.SolutionDecorater.$1_0[0]="/TOOLS/CONTRACTTYPEMANAGER/";Mscrm.SolutionDecorater.$1_0[1]="/TOOLS/EMAILTEMPLATEEDITOR/";Mscrm.SolutionDecorater.$1_0[2]="/TOOLS/EMAILTEMPLATEMANAGER/";Mscrm.SolutionDecorater.$1_0[3]="/TOOLS/FORMEDITOR/";Mscrm.SolutionDecorater.$1_0[4]="/TOOLS/KBTEMPLATEEDITOR/";Mscrm.SolutionDecorater.$1_0[5]="/TOOLS/KBTEMPLATEMANAGER/";Mscrm.SolutionDecorater.$1_0[6]="/TOOLS/MAILMERGE/";Mscrm.SolutionDecorater.$1_0[7]="/TOOLS/MANAGEMAPS/";Mscrm.SolutionDecorater.$1_0[8]="/TOOLS/MUIPROVISIONING/";Mscrm.SolutionDecorater.$1_0[9]="/TOOLS/PUBLISHER/";Mscrm.SolutionDecorater.$1_0[10]="/TOOLS/RELATIONSHIPROLEEDITOR/";Mscrm.SolutionDecorater.$1_0[11]="/TOOLS/RELATIONSHIPROLEMANAGER/";Mscrm.SolutionDecorater.$1_0[12]="/TOOLS/SOLUTION/";Mscrm.SolutionDecorater.$1_0[13]="/TOOLS/SYSTEMCUSTOMIZATION/";Mscrm.SolutionDecorater.$1_0[14]="/TOOLS/TEMPLATES/";Mscrm.SolutionDecorater.$1_0[15]="/TOOLS/VIEWEDITOR/";Mscrm.SolutionDecorater.$1_0[16]="/SFA/WORKFLOW/";Mscrm.SolutionDecorater.$1_0[17]="/REPORTS/";Mscrm.SolutionDecorater.$1_0[18]="/BIZ/ROLES/";Mscrm.SolutionDecorater.$1_0[19]="/BIZ/USERS/";Mscrm.SolutionDecorater.$1_0[20]="/_GRID/CMDS/DLG_ACTIVATE";Mscrm.SolutionDecorater.$1_0[21]="/_GRID/CMDS/DLG_CONFIRM_DELETE";Mscrm.SolutionDecorater.$1_0[22]="/_GRID/CMDS/DLG_DEACTIVATE";Mscrm.SolutionDecorater.$1_0[23]="/_GRID/CMDS/DLG_DELETE";Mscrm.SolutionDecorater.$1_0[24]="/_GRID/CMDS/DLG_PUBLISHMAILMERGETEMPLATE";Mscrm.SolutionDecorater.$1_0[25]="/_GRID/CMDS/DLG_PUBLISHSOLUTION";Mscrm.SolutionDecorater.$1_0[26]="/_GRID/CMDS/DLG_ROLE";Mscrm.SolutionDecorater.$1_0[27]="/_GRID/CMDS/DLG_UNPUBLISH";Mscrm.SolutionDecorater.$1_0[28]="/_GRID/CMDS/DLG_UNPUBLISHMAILMERGETEMPLATE";Mscrm.SolutionDecorater.$1_0[29]="/_GRID/CMDS/DLG_WEBMAILMERGE";Mscrm.SolutionDecorater.$1_0[30]="/_GRID/CMDS/DLG_DELETEIMPORTEDRECORDS";Mscrm.SolutionDecorater.$1_0[31]="/_GRID/CMDS/DLG_UNPUBLISH";Mscrm.SolutionDecorater.$1_0[32]="/MAIN";Mscrm.SolutionDecorater.$1_0[33]="/_GRID/CMDS/DLG_ADDSOLUTIONCOMPONENT.ASPX";Mscrm.SolutionDecorater.$1_0[34]="/MAIN";Mscrm.SolutionDecorater.$1_0[35]="/CONNECTIONS/CONNECTIONROLES/";Mscrm.SolutionDecorater.$1_0[36]="/TOOLS/DEPENDENCY/";Mscrm.SolutionDecorater.$1_0[37]="/TOOLS/WEBRESOURCEEDITOR/WEBRESOURCEEDITOR";Mscrm.SolutionDecorater.$1_0[38]="/_CONTROLS/LOOKUP/LOOKUPINFO";Mscrm.SolutionDecorater.$1_0[39]="/_GRID/CMDS/DLG_ADDITEM";Mscrm.SolutionDecorater.$1_0[40]="/TOOLS/SOLUTION/MANAGEDPROPERTY/MANAGEDPROPERTYEDITOR.ASPX";Mscrm.SolutionDecorater.$1_0[41]="/TOOLS/DASHBOARDEDITOR/DASHBOARDEDITOR.ASPX";Mscrm.SolutionDecorater.$1_0[42]="/CRMREPORTS/REPORTPROPERTY.ASPX";Mscrm.SolutionDecorater.$1_0[43]="/TOOLS/VISUALIZATIONDESIGNER/VISUALIZATIONDESIGNER.ASPX";Mscrm.SolutionDecorater.$1_0[44]="/VISUALIZATION/CMDS/DLG_IMPORTVISUALIZATION.ASPX";Mscrm.SolutionDecorater.$1_0[45]="/VISUALIZATION/SAVEVISUALIZATION.ASPX";Mscrm.SolutionDecorater.$1_0[46]="/BIZ/FIELDSECURITYPROFILES/";Mscrm.SolutionDecorater.$1_0[47]="/WEBWIZARD/WIZARDCONTAINER.ASPX";Mscrm.SolutionDecorater.$1_0[48]="/_GRID/CMDS/DLG_EDITATTRIBUTE";Mscrm.SolutionDecorater.$1k_0=new Array(1);Mscrm.SolutionDecorater.$1k_0[0]="/TOOLS/SOLUTION/HOME_SOLUTION.ASPX"};function GetWindowInformation(objectTypeCode){return Mscrm.WindowInformation.getWindowInformation(objectTypeCode)}Mscrm.WindowInformation=function(){};Mscrm.WindowInformation.getWindowInformation=function(objectTypeCode){var $v_0=Mscrm.CrmUri.create("/_common/windowinformation/windowinformation.js.aspx");$v_0.set_useCssLcid(true);Mscrm.CrmHeader.setScriptFile($v_0);var $v_1=Mscrm.Imported.WindowInformationImplementation.getWindowInformationInternal(objectTypeCode);if(!$v_1.Height)$v_1.Height=parseInt(window.screen.availHeight*.9);return $v_1};Mscrm.WrpcTokenFuncs=function(){};Mscrm.WrpcTokenFuncs.setTokenInHeader=function(xmlHttp,url){url=Mscrm.WrpcTokenFuncs.formatUrlForToken(url);var $v_0=Mscrm.WrpcTokenFuncs.getCrmWrpcToken(url);if($v_0){xmlHttp.setRequestHeader("CRMWRPCToken",$v_0.Token);xmlHttp.setRequestHeader("CRMWRPCTokenTimeStamp",$v_0.Timestamp.toString())}};Mscrm.WrpcTokenFuncs.getTokenAsQS=function(url){url=Mscrm.WrpcTokenFuncs.formatUrlForToken(url);var $v_0=Mscrm.WrpcTokenFuncs.getCrmWrpcToken(url);if($v_0)return "CRMWRPCToken="+CrmEncodeDecode.CrmUrlEncode($v_0.Token)+"&CRMWRPCTokenTimeStamp="+CrmEncodeDecode.CrmUrlEncode($v_0.Timestamp.toString());return ""};Mscrm.WrpcTokenFuncs.setCrmWrpcToken=function(url,token,timestamp){for(var $v_0=false,$v_1=0;$v_1<window._aWrpcTokens.length;$v_1++){var $v_2=window._aWrpcTokens[$v_1];if($v_2.Timestamp===timestamp){$v_0=true;$v_2[url.toString().toUpperCase()]=token}}if(!$v_0){var $v_3={};$v_3.Timestamp=timestamp;$v_3[url.toString().toUpperCase()]=token;window._aWrpcTokens[window._aWrpcTokens.length]=$v_3}};Mscrm.WrpcTokenFuncs.getCrmWrpcToken=function(url){if(IsNull(url))return null;for(var $v_0=0;$v_0<window._aWrpcTokens.length;$v_0++){var $v_1=window._aWrpcTokens[$v_0],$v_2=$v_1[url.toString().toUpperCase()];if(!IsNull($v_2)){var $v_3=new Mscrm.WrpcToken;$v_3.Token=$v_2;$v_3.Timestamp=$v_1.Timestamp;$v_3.Url=url;return $v_3}}return null};Mscrm.WrpcTokenFuncs.formatUrlForToken=function(url){var $v_0=IsNull(url)?"":url.toString();if(!$v_0.length){$v_0=window.location.pathname;if($v_0.length<1||$v_0.charAt(0)!=="/")$v_0="/"+$v_0}var $v_1=Mscrm.CrmUri.create($v_0);$v_1.clearQuery();return $v_1};function SetTokenInHeader(xmlHttp,url){Mscrm.WrpcTokenFuncs.setTokenInHeader(xmlHttp,url)}function GetTokenAsQS(url){return Mscrm.WrpcTokenFuncs.getTokenAsQS(url)}function SetCrmWrpcToken(url,token,timestamp){Mscrm.WrpcTokenFuncs.setCrmWrpcToken(url,token,timestamp)}function GetCrmWrpcToken(url){return Mscrm.WrpcTokenFuncs.getCrmWrpcToken(url)}function formatUrlForToken(url){return Mscrm.WrpcTokenFuncs.formatUrlForToken(url)}Mscrm.WrpcToken=function(){};Mscrm.WrpcToken.prototype={Timestamp:0,Token:null,Url:null};Mscrm.ContextMenuAction=function(){};Mscrm.Utilities=function(){};Mscrm.Utilities.isMainApplicationPage=function(){var $v_0=false,$v_1=Mscrm.CrmUri.create(window.location.href);if(isNullOrEmptyString($v_1.get_query()["pagetype"]))$v_0=true;return $v_0};Mscrm.Utilities.compareGuids=function(guidA,guidB){if(!IsNull(guidA)&&guidA.length===36&&guidA.charAt(0)!=="{"&&guidA.charAt(35)!=="}")guidA="{"+guidA+"}";if(!IsNull(guidB)&&guidB.length===36&&guidB.charAt(0)!=="{"&&guidB.charAt(35)!=="}")guidB="{"+guidB+"}";return guidA.toUpperCase()===guidB.toUpperCase()};Mscrm.Utilities.getHomePageQueryStringParams=function(){var $v_0=["etc","etn","viewid","viewtype"];return $v_0};Mscrm.Utilities.getRecordPageQueryStringParams=function(){var $v_0=["etc","etn","id"];return $v_0};Mscrm.Utilities.getPageUrl=function(pageUrl,pageType){if(!Mscrm.PageManager.isOutlookProxyPage()&&!Mscrm.Utilities.isNewPageModel(pageUrl))return pageUrl;if(IsNull(pageType))return pageUrl;var $v_0=null;switch(pageType.toUpperCase()){case "ENTITYLIST":$v_0=Mscrm.Utilities.getHomePageQueryStringParams();break;case "ENTITYRECORD":$v_0=Mscrm.Utilities.getRecordPageQueryStringParams();break;default:return pageUrl}var $v_1=Mscrm.Utilities.removeExtraQSParameters(pageUrl,$v_0);$v_1.set_path("/main.aspx");$v_1.get_query()["pagetype"]=pageType;delete $v_1.get_query().pagemode;delete pageUrl.get_query().pagetype;var $v_2=pageUrl.get_queryString();if($v_2.length>0)$v_1.get_query()["extraqs"]=$v_2;return $v_1};Mscrm.Utilities.removeExtraQSParameters=function(pageUrl,qsParams){for(var $v_0=Mscrm.CrmUri.create(pageUrl.toString().split("?")[0]),$v_1=0;$v_1<qsParams.length;$v_1++){var $v_2=qsParams[$v_1];if(!IsNull(pageUrl.get_query()[$v_2])){$v_0.get_query()[$v_2]=pageUrl.get_query()[$v_2];delete pageUrl.get_query()[$v_2]}}return $v_0};Mscrm.Utilities.getHomePageUrlForRecordPage=function(homepage,defaultUrl){var $v_0=defaultUrl;switch(homepage.get_path()){case "/sfa/accts/edit.aspx":$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx?etc=1");break;case "/sfa/conts/edit.aspx":$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx?etc=2");break;case "/sfa/leads/edit.aspx":$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx?etc=4");break;case "/sfa/opps/edit.aspx":$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx?etc=3");break;case "/cs/cases/edit.aspx":$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx?etc=112");break;case "/userdefined/edit.aspx":var $v_1=homepage.get_query()["etc"];$v_0=Mscrm.CrmUri.create("/_root/homepage.aspx");$v_0.get_query()["etc"]=$v_1;break;case "/ma/camps/edit.aspx":$v_0=Mscrm.CrmUri.create("homepage.aspx?etc=4400");break;default:break}return $v_0};Mscrm.Utilities.getResourceCenterUrlAndParams=function(strFwLink,httpsFwLink){var $v_0,$v_1;if(window.location.protocol==="http:"){$v_0="http://";$v_1=strFwLink}else{$v_0="https://";$v_1=httpsFwLink}var $v_2=Mscrm.CrmUri.create($v_0+"go.microsoft.com/fwlink/");$v_2.get_query()["LinkID"]=$v_1;$v_2.get_query()["clcid"]="0x409";$v_2.get_query()["LangCode"]=window.USER_HELP_LCID;$v_2.get_query()["SkuType"]=window.HELP_CRM_SKU;$v_2.get_query()["Ver"]=window.APPLICATION_FULL_VERSION;if(!isNullOrEmptyString(window.ONLINE_TRANSACTION_TYPE))$v_2.get_query()["tt"]=window.ONLINE_TRANSACTION_TYPE;return $v_2.toString()};Mscrm.Utilities.isNewPageModel=function(uri){var $v_0=false;if(uri.get_path().toUpperCase().endsWith("/HOMEPAGE.ASPX"))$v_0=true;else if(uri.get_path().toUpperCase().endsWith("/USERDEFINED/EDIT.ASPX")){var $v_1=0,$v_2=uri.get_query()["etc"];if(!IsNull($v_2))$v_1=parseInt($v_2,10);switch($v_1){case 1:case 2:case 3:case 4:case 112:$v_0=true;break;default:$v_0=$v_1>=1e4;break}}return $v_0};Mscrm.Utilities.isValidForStickyViews=function(areaId,subAreaId){if(isNullOrEmptyString(areaId)||isNullOrEmptyString(subAreaId))return false;var $v_0=false;switch(areaId.toUpperCase()){case "WORKPLACE":case "SFA":case "MA":case "CS":case "SETTINGS":$v_0=true;break;default:$v_0=false;break}if($v_0)switch(subAreaId.toUpperCase()){case "NAV_MINICAMPS":$v_0=false;break;case "NAV_DASHBOARDS":$v_0=false;break;default:$v_0=true;break}return $v_0};Mscrm.Utilities.isDigit=function(s){var $v_0=false;if(s.length===1){var $v_1=s.charCodeAt(0);$v_0=$v_1>=48&&$v_1<=57}return $v_0};Mscrm.Utilities.getMainPageManager=function(){var $v_0=null;try{var $v_1=Mscrm.CrmUri.create(window.location.href),$v_2=window.self;while($v_2!==$v_2.parent){$v_2=$v_2.parent;var $v_3=Mscrm.CrmUri.create($v_2.location.href);if($v_3.get_path().toUpperCase().endsWith("/MAIN.ASPX")){$v_0=$v_2.Sys.Application.findComponent("crmPageManager");break}}}catch($$e_1_0){$v_0=null}return $v_0};Mscrm.Utilities.createGuid=function(){for(var $v_0="",$v_1=0;$v_1<8;$v_1++)$v_0+=Math.floor(Math.random()*15).toString(15);$v_0+="-";for(var $v_2=0;$v_2<4;$v_2++)$v_0+=Math.floor(Math.random()*15).toString(15);$v_0+="-";for(var $v_3=0;$v_3<4;$v_3++)$v_0+=Math.floor(Math.random()*15).toString(15);$v_0+="-";for(var $v_4=0;$v_4<4;$v_4++)$v_0+=Math.floor(Math.random()*15).toString(15);$v_0+="-";for(var $v_5=0;$v_5<12;$v_5++)$v_0+=Math.floor(Math.random()*15).toString(15);return "{"+$v_0+"}"};Mscrm.Utilities.getEventElement=function(e,tagName){var $v_0=e.srcElement;while($v_0&&$v_0.tagName!==tagName)$v_0=$v_0.parentNode;return $v_0};Mscrm.Utilities.getDomEventElement=function(e,tagName){var $v_0=e.target;while($v_0&&$v_0.tagName!==tagName)$v_0=$v_0.parentNode;return $v_0};Mscrm.Utilities.getXYPos=function(obj,rtl){var $v_0={},$v_1=0,$v_2=0,$v_3=0;while(!IsNull(obj)){if(rtl){if(obj.scrollWidth>=obj.clientWidth+obj.scrollLeft)$v_3=obj.scrollWidth-obj.clientWidth-obj.scrollLeft;else $v_3=obj.clientWidth+obj.scrollLeft-obj.scrollWidth;$v_1+=obj.offsetLeft+$v_3}else $v_1+=obj.offsetLeft-obj.scrollLeft;$v_2+=obj.offsetTop-obj.scrollTop;obj=obj.offsetParent}$v_0["x"]=$v_1;$v_0["y"]=$v_2;return $v_0};Mscrm.Utilities.getIconPath=function(entityTypeCode){return Mscrm.IconUtil.getIconPath(entityTypeCode,0).toString()};Mscrm.Utilities.decorateAccessKey=function(text){var $v_0=Mscrm.Utilities.getAccessKey(text);if(isNullOrEmptyString($v_0))return text;var $v_1=text.indexOf("&");if(text.length>$v_1+1){var $v_2=CrmEncodeDecode.CrmHtmlEncode(text.substring(0,$v_1))+"<u>"+CrmEncodeDecode.CrmHtmlEncode(text.charAt($v_1+1).toString())+"</u>";if(text.length>$v_1+2)$v_2=$v_2+CrmEncodeDecode.CrmHtmlEncode(text.substring($v_1+2,text.length));return $v_2}return text};Mscrm.Utilities.getAccessKey=function(text){if(isNullOrEmptyString(text))return "";var $v_0=text.indexOf("&");if($v_0!==text.length-1)if($v_0>=0)return text.substring($v_0+1,$v_0+2);return ""};Mscrm.Utilities.getGridId=function(window){if(!IsNull(window)){var $v_0=window.GRID_ID;if(!isNullOrEmptyString($v_0))return $v_0;return "crmGrid"}return null};Mscrm.Utilities.getCrmGrid=function(){var $v_0=Mscrm.Utilities.getGridId(window.self);if(!IsNull($v_0))return $get($v_0);return null};Mscrm.Utilities.getViewURL=function(entityTypeCode,viewId,qsParam){if(Mscrm.EntityPropUtil.isActivityTypeCode(entityTypeCode))entityTypeCode=4200;return String.format("_root/homepage.aspx?etc={0}&viewid={1}&{2}",CrmEncodeDecode.CrmUrlEncode(entityTypeCode.toString(10)),CrmEncodeDecode.CrmUrlEncode(viewId),qsParam)};Mscrm.Utilities.refreshCurrentGrid=function(entityTypeCode){if(!Mscrm.PageManager.isFlatUIPage())Mscrm.Grid.auto(entityTypeCode,null);else{var $v_0={};$v_0["etc"]=entityTypeCode;Mscrm.PageManager.get_instance().raiseEvent(50,$v_0)}};Mscrm.Utilities.refreshParentGrid=function(entityTypeCode,displayName,entityID){try{if(isOutlookHostedWindow()){var $v_0=getOutlookHostedWindow();$v_0.notifyItemChanged(entityTypeCode,entityID)}if(!IsNull(Mscrm.PageManager.get_instance())&&!IsNull(Mscrm.PageManager.get_instance().get_parentWindowPageManager())){var $v_1={};$v_1["etc"]=entityTypeCode;Mscrm.PageManager.get_instance().get_parentWindowPageManager().raiseEvent(50,$v_1)}else window.top.opener.auto(entityTypeCode,displayName,entityID)}catch($$e_1_0){}};Mscrm.Utilities.closeCurrentWindow=function(){if(!IsNull(Mscrm.PageManager.get_instance())){var $v_0=Mscrm.NavigationMode.DefaultNavigationMode===1?18:23;Mscrm.PageManager.get_instance().raiseEvent($v_0,null)}else closeWindow()};Mscrm.Utilities.raiseKeyPressEvent=function(eventCode,keyPressEventTarget){if(!IsNull(Mscrm.PageManager.get_instance())){var $v_0={};$v_0["EventElement"]=keyPressEventTarget;Mscrm.PageManager.get_instance().raiseEvent(eventCode,$v_0)}};Mscrm.Utilities.isHomepageUrl=function(uri){var $v_0=false,$v_1=uri.get_path().toUpperCase();if($v_1.endsWith("/HOMEPAGE.ASPX")||$v_1.endsWith("/HOME_APPTBOOK.ASPX")||$v_1.endsWith("/HOME_RESOURCE.ASPX")||$v_1.endsWith("/HOME_SITE.ASPX")||$v_1.endsWith("/HOME_CAMPS.ASPX")||$v_1.endsWith("/HOME_TERRITORY.ASPX")||$v_1.endsWith("/HOME_USER.ASPX")||$v_1.endsWith("/HOME_TEAM.ASPX")||$v_1.endsWith("/HOME_ROLE.ASPX")||$v_1.endsWith("/HOME_DUPLICATEDETECTIONJOBS.ASPX")||$v_1.endsWith("/HOME.ASPX")||$v_1.endsWith("/HOME_PRODUCT.ASPX")||$v_1.endsWith("/HOME_ACTIVITIES.ASPX")||$v_1.endsWith("/HOME_IMPORT.ASPX")||$v_1.endsWith("/HOME_ANSWERS.ASPX")||$v_1.endsWith("/HOME_SOLUTION.ASPX")||$v_1.endsWith("/HOME_DASHBOARDS.ASPX"))$v_0=true;return $v_0};Mscrm.Utilities.setElementSize=function(domElement,sizeMode,desiredHeight,desiredWidth){switch(sizeMode){case "StretchToFit":domElement.style.height="100%";domElement.style.width="100%";break;case "StretchMaintainAspectRatio":Mscrm.Utilities.setSizeMaintainRatio(domElement);break;case "Specific":domElement.style.height=desiredHeight;domElement.style.width=desiredWidth;break}domElement.style.visibility="visible"};Mscrm.Utilities.setSizeMaintainRatio=function(domElement){var $v_0=domElement.clientHeight,$v_1=domElement.clientWidth;domElement.style.width="0px";domElement.style.height="0px";var $v_2=domElement.parentNode,$v_3=$v_2.offsetWidth,$v_4=$v_2.offsetHeight;if(!$v_3||!$v_4){var $v_7=$v_2.parentNode;$v_3=$v_7.offsetWidth;$v_4=$v_7.offsetHeight}var $v_5=$v_0/$v_4,$v_6=$v_1/$v_3;if($v_5>$v_6){domElement.style.height=$v_4.toString()+"px";domElement.style.width=($v_1/$v_5).toString()+"px"}else{domElement.style.width=$v_3.toString()+"px";domElement.style.height=($v_0/$v_6).toString()+"px"}};Mscrm.Utilities.sendSelectedRecordsUrl=function(useEmail,records,entityTypeCode,writeUrlOnly){if(IsNull(records)||!records.length){alert(window.LOCID_ACTION_NOITEMSELECTED);return}if(records.length>10){alert(window.LOCID_MAX_RECORDS_ERROR);return}var $v_0=window.location.href;if(!Mscrm.SessionInfo.isOnline())$v_0=window.WEB_APP_URL;else $v_0=$v_0.substring(0,$v_0.indexOf(window.location.pathname));if(IsNull(writeUrlOnly))writeUrlOnly=!useEmail&&records.length===1;for(var $v_1=new Sys.StringBuilder,$v_2=0;$v_2<records.length;$v_2++){var $v_3=records[$v_2],$v_4=null;if($v_3.TypeCode){var $v_6=Mscrm.WindowInformation.getWindowInformation($v_3.TypeCode);$v_4=IsNull($v_6)?null:$v_6.Url}else $v_4=Mscrm.CrmUri.create(IsNull($v_3.Action)?"":$v_3.Action);$v_4=Mscrm.Utilities.getPageUrl($v_4,"entityrecord");if(IsNull($v_4))continue;if(!writeUrlOnly){$v_2>0&&$v_1.append("\r\n\r\n");$v_1.append($v_3.Name);$v_1.append("\r\n");$v_1.append("<")}switch($v_3.TypeCode){case 4230:var $v_5=GetQueryData($v_3.TypeCode,$v_3.Id);if(!IsNull($v_5))$v_4.get_query()["etn"]=$v_5.ReturnType;$v_4.get_query()["QueryId"]=$v_3.Id;$v_4.get_query()["ViewType"]=$v_3.TypeCode;$v_4.get_query()["AutoRun"]="true";break;default:if(!isNullOrEmptyString($v_3.Id)){$v_4.get_query()["id"]=$v_3.Id;if(Mscrm.EtcUtil.isUserDefinedEntityObjectTypeCode($v_3.TypeCode))$v_4.get_query()["etc"]=$v_3.TypeCode}break}$v_1.append(Mscrm.Help.concatenateUrl($v_0,$v_4.toString()));!writeUrlOnly&&$v_1.append(">")}if(useEmail){var $v_7=records.length===1?records[0].Name:"";Mscrm.Shortcuts.openEmailForm("",$v_7,$v_1.toString())}else Mscrm.Shortcuts.copyTextToClipboard($v_1.toString(),"",window.LOCID_COPY_SHORTCUT_ERROR)};Mscrm.Utilities.sendViewUrl=function(useEmail,viewUri,viewTitle,viewId,viewTypeCode){var $v_0=[],$v_1=[];Array.add($v_0,"viewid");Array.add($v_1,viewId);if(!isNullOrEmptyString(viewTypeCode)){Array.add($v_0,"viewtype");Array.add($v_1,viewTypeCode)}viewUri=Mscrm.Utilities.getPageUrl(viewUri,"entitylist");Mscrm.Utilities.sendCustomViewUrl(useEmail,viewUri,viewTitle,$v_0,$v_1)};Mscrm.Utilities.sendCustomViewUrl=function(useEmail,uri,title,paramKey,paramValue){var $v_0=new Sys.StringBuilder;$v_0.append(title);$v_0.append(" <");delete uri.get_query().pagemode;for(var $v_1=0;$v_1<paramKey.length;$v_1++)if(!isNullOrEmptyString(paramKey[$v_1])&&!isNullOrEmptyString(paramValue[$v_1]))uri.get_query()[paramKey[$v_1]]=paramValue[$v_1];$v_0.append(uri.toString());$v_0.append(">");if(useEmail)Mscrm.Shortcuts.openEmailForm("",title,$v_0.toString());else Mscrm.Shortcuts.copyTextToClipboard($v_0.toString(),"",window.LOCID_COPY_SHORTCUT_ERROR)};Mscrm.Utilities.get_isStandardsMode=function(){if(IsNull(Mscrm.Utilities.$1z_0))Mscrm.Utilities.$1z_0=document.compatMode!=="BackCompat";return Mscrm.Utilities.$1z_0};Mscrm.Utilities.get_ieBrowserVersion=function(){if(Sys.Browser.agent!==Sys.Browser.InternetExplorer)return 0;if(!Mscrm.Utilities.$v_0){Mscrm.Utilities.$v_0=7;if(Sys.Browser.version>=8){Mscrm.Utilities.$v_0=Sys.Browser.version;return Mscrm.Utilities.$v_0}var $v_0=window.navigator.userAgent,$v_1=new RegExp("Trident\\/([0-9]{1,}[\\.0-9]{0,})");if($v_1.test($v_0)){var $v_2=$v_1.exec($v_0),$v_3=$v_2.length>=2?Number.parseInvariant($v_2[1]):3;Mscrm.Utilities.$v_0=$v_3>=4?$v_3+4:7}else Mscrm.Utilities.$v_0=Sys.Browser.version}return Mscrm.Utilities.$v_0};Mscrm.Utilities.get_isLeftToRight=function(){if(IsNull(Mscrm.Utilities.$1y_0))Mscrm.Utilities.$1y_0=window.LOCID_UI_DIR!=="RTL";return Mscrm.Utilities.$1y_0};Mscrm.Utilities.parseInt=function(s,defaultValue){var $v_0=parseInt(s,10);return isNaN($v_0)?IsNull(defaultValue)?0:defaultValue:$v_0};Mscrm.Utilities.setInnerHeight=function(e,height){e.style.height=(Mscrm.Utilities.get_isStandardsMode()?height:height+Mscrm.Utilities.getVerticalBoxPadding(e))+"px"};Mscrm.Utilities.getNonHiddenInnerText=function(e){var $v_0="",$v_1=false;if(IsNull(e))return $v_0;if(e.children.length===2)for(var $v_2=0;$v_2<e.children.length;$v_2++){if(e.children[$v_2].tagName!=="LABEL"){$v_1=false;break}if(e.children[$v_2].className!=="ms-crm-Hidden-NoBehavior")$v_0+=e.children[$v_2].innerText;else $v_1=true}if(!$v_1)$v_0=e.innerText;return $v_0};Mscrm.Utilities.setOuterHeight=function(e,height){e.style.height=(Mscrm.Utilities.get_isStandardsMode()?height-Mscrm.Utilities.getVerticalBoxPadding(e):height)+"px"};Mscrm.Utilities.setInnerWidth=function(e,width){e.style.width=(Mscrm.Utilities.get_isStandardsMode()?width:width+Mscrm.Utilities.getHorizontalBoxPadding(e))+"px"};Mscrm.Utilities.setOuterWidth=function(e,width){e.style.width=(Mscrm.Utilities.get_isStandardsMode()?width-Mscrm.Utilities.getHorizontalBoxPadding(e):width)+"px"};Mscrm.Utilities.getVerticalBoxPadding=function(e){var $v_0=e.currentStyle;return Mscrm.Utilities.parseInt($v_0.borderTopWidth)+Mscrm.Utilities.parseInt($v_0.borderBottomWidth)+Mscrm.Utilities.parseInt($v_0.paddingTop)+Mscrm.Utilities.parseInt($v_0.paddingBottom)};Mscrm.Utilities.getHorizontalBoxPadding=function(e){var $v_0=e.currentStyle;return Mscrm.Utilities.parseInt($v_0.borderLeftWidth)+Mscrm.Utilities.parseInt($v_0.borderRightWidth)+Mscrm.Utilities.parseInt($v_0.paddingLeft)+Mscrm.Utilities.parseInt($v_0.paddingRight)};Mscrm.Utilities.handleHttpErr=function(httpStatusCode){if(httpStatusCode!==200){var $v_0=Mscrm.ErrorInformation.createErrorInfo(httpStatusCode.toString(),"","");openErrorDlg(httpStatusCode.toString(),"",$v_0,0,0);return false}return true};Mscrm.Utilities.safeHttpSend=function(httpRequest,xmlDoc){var $v_0=true;try{httpRequest.send(xmlDoc.xml)}catch($$e_1_0){$v_0=Mscrm.Utilities.handleHttpErr(httpRequest.status)}if($v_0)$v_0=Mscrm.Utilities.handleHttpErr(httpRequest.status);return $v_0};Mscrm.Utilities.getChildElementsByClassName=function(parent,className,onlyGetFirst){if(!IsNull(parent.getElementsByClassName)){var $v_0=parent.getElementsByClassName(className);if(onlyGetFirst){if(IsNull($v_0)||$v_0.length<=1)return $v_0;var $v_1=[];$v_1[0]=$v_0[0];return $v_1}return $v_0}if(!IsNull(parent.querySelectorAll)){if(onlyGetFirst){var $v_2=parent.querySelector("."+className),$v_3=[];if(!IsNull($v_2))$v_3[0]=$v_2;return $v_3}return parent.querySelectorAll("."+className)}else return Mscrm.Utilities.$4C_0(parent,className,onlyGetFirst)};Mscrm.Utilities.validateVersion=function(version){var $v_0=version,$v_1=new RegExp("^[0-9]+$"),$v_2=$v_1.test(version);if(!$v_2){$v_1=new RegExp("^[0-9]+([.][0-9]+){1,3}$");$v_2=$v_1.test(version);if(!$v_2){alert(window.LOCID_INVALID_VERSION_FORMAT);$v_0=""}}else $v_0=$v_0+".0.0.0";return $v_0};Mscrm.Utilities.$4C_0=function($p0,$p1,$p2){for(var $v_0=[],$v_1=0,$v_2,$v_3=0;$v_3<$p0.childNodes.length;$v_3++){$v_2=$p0.childNodes[$v_3];if(!IsNull($v_2.className)&&$v_2.className.indexOf($p1)>=0){$v_0[$v_1++]=$v_2;if($p2)break}$v_0=$v_0.concat(Mscrm.Utilities.$4C_0($v_2,$p1,$p2));if($v_0.length>0&&$p2)break}return $v_0};Mscrm.Utilities.trim=function(s,extraChars){return Mscrm.Utilities.trimChars(s,extraChars,true,true)};Mscrm.Utilities.trimStart=function(s,extraChars){return Mscrm.Utilities.trimChars(s,extraChars,true,false)};Mscrm.Utilities.trimEnd=function(s,extraChars){return Mscrm.Utilities.trimChars(s,extraChars,false,true)};Mscrm.Utilities.trimChars=function(s,extraChars,begin,end){var $v_0="\\u0085|\\u00A0|\\u2028|\\u2029|\\u1680|\\u180E|\\u2000|\\u2001|\\u2002|\\u2003|\\u2004|\\u2005|\\u2006|\\u2007|\\u2008|\\u2009|\\u200A|\\u202F|\\u205F|\\u3000";if(!IsNull(extraChars))for(var $v_2=0;$v_2<extraChars.length;$v_2++){$v_0+="|\\u";var $v_3=extraChars[$v_2].charCodeAt(0);if($v_3<256)$v_0+="00";else if($v_3<4096)$v_0+="0";$v_0+=$v_3.toString(16)}var $v_1=null;if(begin&&end){s=s.trim();$v_1="^("+$v_0+")+|("+$v_0+")+$"}else if(begin){s=s.trimStart();$v_1="^("+$v_0+")+"}else if(end){s=s.trimEnd();$v_1="("+$v_0+")+$"}if(!IsNull($v_1)){var $v_4=new RegExp($v_1,"g");s=s.replace($v_4,"")}return s};Mscrm.Utilities.trimSpaces=function(s){if(!IsNull(s)){s=Mscrm.Utilities.trim(s,null);return s.replace(new RegExp("\\s+","g")," ")}return null};Mscrm.Utilities.isUserUsingBaseLanguage=function(){if(window.ORG_LANGUAGE_CODE===window.USER_LANGUAGE_CODE)return true;else return false};Mscrm.Utilities.isIE7=function(){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){if(Sys.Browser.version===7&&!window.document.documentMode)return true;return false}else return false};Mscrm.Utilities.destroyElement=function(element){if(IsNull(element))return;if(IsNull(Mscrm.Utilities.$z_0)){Mscrm.Utilities.$z_0=document.createElement("DIV");Mscrm.Utilities.$z_0.id="__trash";Mscrm.Utilities.$z_0.style.display="none";document.body.appendChild(Mscrm.Utilities.$z_0)}Mscrm.Utilities.$z_0.appendChild(element);Mscrm.Utilities.$z_0.innerHTML=""};function compareGuids(guidA,guidB){return Mscrm.Utilities.compareGuids(guidA,guidB)}function getHomePageQueryStringParams(){return Mscrm.Utilities.getHomePageQueryStringParams()}function getRecordPageQueryStringParams(){return Mscrm.Utilities.getRecordPageQueryStringParams()}function getPageUrl(pageUrl,pageType){return Mscrm.Utilities.getPageUrl(pageUrl,pageType)}function getHomePageUrlForRecordPage(homepage,defaultUrl){return Mscrm.Utilities.getHomePageUrlForRecordPage(homepage,defaultUrl)}function isNewPageModel(uri){return Mscrm.Utilities.isNewPageModel(uri)}function isValidForStickyViews(areaId,subAreaId){return Mscrm.Utilities.isValidForStickyViews(areaId,subAreaId)}function isDigit(s){return Mscrm.Utilities.isDigit(s)}function getMainPageManager(){return Mscrm.Utilities.getMainPageManager()}function createGuid(){return Mscrm.Utilities.createGuid()}function getEventElement(e,tagName){return Mscrm.Utilities.getEventElement(e,tagName)}function getDomEventElement(e,tagName){return Mscrm.Utilities.getDomEventElement(e,tagName)}function getXYPos(obj,rtl){return Mscrm.Utilities.getXYPos(obj,rtl)}function getIconPath(entityTypeCode){return Mscrm.Utilities.getIconPath(entityTypeCode)}function getGridId(window){return Mscrm.Utilities.getGridId(window)}function getCrmGrid(){return Mscrm.Utilities.getCrmGrid()}function getViewURL(entityTypeCode,viewId,qsParam){return Mscrm.Utilities.getViewURL(entityTypeCode,viewId,qsParam)}function refreshParentGrid(entityTypeCode,entityId){Mscrm.Utilities.refreshParentGrid(entityTypeCode,entityId)}function refreshCurrentGrid(entityTypeCode){Mscrm.Utilities.refreshCurrentGrid(entityTypeCode)}function closeCurrentWindow(){Mscrm.Utilities.closeCurrentWindow()}function isHomepageUrl(uri){return Mscrm.Utilities.isHomepageUrl(uri)}function setElementSize(domElement,sizeMode,desiredHeight,desiredWidth){Mscrm.Utilities.setElementSize(domElement,sizeMode,desiredHeight,desiredWidth)}function setSizeMaintainRatio(domElement){Mscrm.Utilities.setSizeMaintainRatio(domElement)}function Trim(s){return Mscrm.Utilities.trim(s,null)}function TrimSpaces(s){return Mscrm.Utilities.trimSpaces(s)}Mscrm.XmlUtil=function(){};Mscrm.XmlUtil.createXmlDocument=function(freeThreaded){if(IsNull(freeThreaded))freeThreaded=false;var $v_0=new ActiveXObject(freeThreaded?"Msxml2.FreeThreadedDOMDocument":"Msxml2.DOMDocument");$v_0.async=false;$v_0.resolveExternals=false;return $v_0};Mscrm.XmlUtil.loadXmlDocument=function(xml){var $v_0=Mscrm.XmlUtil.createXmlDocument(false);$v_0.loadXML(xml);return $v_0};Mscrm.XmlUtil.loadXmlDocumentAsFreeThreaded=function(xml){var $v_0=Mscrm.XmlUtil.createXmlDocument(true);$v_0.loadXML(xml);return $v_0};Mscrm.XmlUtil.createXslTemplateByXml=function(xslString){var $v_0=new Mscrm.XslTemplate;$v_0.stylesheet=Mscrm.XmlUtil.loadXmlDocumentAsFreeThreaded(xslString);return $v_0};Mscrm.XmlUtil.createXslTemplate=function(){return new Mscrm.XslTemplate};Mscrm.XmlUtil.createXmlHttp=function(){return new XMLHttpRequest};Mscrm.XmlUtil.handleXMLErr=function(xml,shouldContinue){if(IsNull(shouldContinue))shouldContinue=false;if(xml.parseError.errorCode){alert(window.LOCID_XML_PROCESS_ERROR);return shouldContinue?2:0}var $v_0=xml.selectSingleNode("/error");if(!IsNull($v_0))if(!shouldContinue){var $v_1=Mscrm.ErrorInformation.createFromDoc(xml);openErrorDlg(!IsNull($v_1.$1U_0)?$v_1.$1U_0:"",$v_1.$1X_0,$v_1,0,0);return 0}else return 2;return 1};Mscrm.XmlUtil.getNodeText=function(rootNode,nodeName,defaultValue){var $v_0=rootNode.selectSingleNode(nodeName);if(!IsNull($v_0))return $v_0.text;return defaultValue};Mscrm.XmlUtil.viewXml=function(xml){};Mscrm.XmlUtil.downloadXml=function(xml,fileName){var $v_0=Mscrm.CrmUri.create("/tools/_common/xmlviewer.aspx");$v_0.get_query()["download"]="true";$v_0.get_query()["fileName"]=fileName;var $v_1="downloadXmlFrame",$v_2=$get($v_1);if(IsNull($v_2)){$v_2=document.createElement("iframe");$v_2.style.display="none";$v_2.id=$v_1;$v_2.src=Mscrm.CrmUri.create("/_static/blank.htm").toString();window.document.body.insertBefore($v_2)}var $v_3="downloadXmlForm",$v_4=$get($v_3);if(IsNull($v_4)){$v_4=document.createElement("form");$v_4.id=$v_3;$v_4.innerHTML='<input id="xml" name="xml" type="hidden">';window.document.body.insertBefore($v_4)}var $v_5=$get("xml",$v_4);$v_5.value=xml;$v_4.target=$v_1;$v_4.method="post";$v_4.action=$v_0.toString();$v_4.submit()};function CreateXmlDocument(freeThreaded){return Mscrm.XmlUtil.createXmlDocument(freeThreaded)}function loadXmlDocument(xml){return Mscrm.XmlUtil.loadXmlDocument(xml)}function loadXmlDocumentAsFreeThreaded(xml){return Mscrm.XmlUtil.loadXmlDocumentAsFreeThreaded(xml)}function createXslTemplateByXml(xslString){return Mscrm.XmlUtil.createXslTemplateByXml(xslString)}function CreateXslTemplate(){return Mscrm.XmlUtil.createXslTemplate()}function CreateXmlHttp(){return Mscrm.XmlUtil.createXmlHttp()}function handleXMLErr(xml,shouldContinue){return Mscrm.XmlUtil.handleXMLErr(xml,shouldContinue)}function getNodeText(rootNode,nodeName,defaultValue){return Mscrm.XmlUtil.getNodeText(rootNode,nodeName,defaultValue)}function ViewXml(xml){Mscrm.XmlUtil.viewXml(xml)}Mscrm.XslTemplate=function(){};Mscrm.XslTemplate.prototype={stylesheet:null,createProcessor:function(){if(window.XSLTProcessor)return new Mscrm.XslProcessor(this.stylesheet);else return new Mscrm.InternetExplorerXslProcessor(this.stylesheet)}};Mscrm.XslProcessor=function(stylesheet){this._parameters={};this._stylesheet=stylesheet};Mscrm.XslProcessor.prototype={input:null,output:null,_stylesheet:null,addParameter:function(name,value){this._parameters[name]=value},transform:function(){var $v_0=new XSLTProcessor;$v_0.importStylesheet(this._stylesheet);var $$dict_1_0=this._parameters;for(var $$key_1_1 in $$dict_1_0){var $v_2={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};$v_0.setParameter(null,$v_2.key,$v_2.value)}var $v_1=$v_0.transformToFragment(this.input,this.input);this.output=$v_1.xml;return this.output}};Mscrm.InternetExplorerXslProcessor=function(stylesheet){Mscrm.InternetExplorerXslProcessor.initializeBase(this,[stylesheet])};Mscrm.InternetExplorerXslProcessor.prototype={transform:function(){var $v_0=new ActiveXObject("Msxml2.XSLTemplate");$v_0.stylesheet=this._stylesheet;var $v_1=$v_0.createProcessor();$v_1.input=this.input;var $$dict_1_0=this._parameters;for(var $$key_1_1 in $$dict_1_0){var $v_2={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};$v_1.addParameter($v_2.key,$v_2.value)}$v_1.transform();this.output=$v_1.output;return this.output}};Type.registerNamespace("Xrm");Xrm.Page=function(){};Type.registerNamespace("Mscrm.Imported");Type.registerNamespace("Mscrm.Obsolete");function getBrowserMajorVersion(){return Sys.Browser.version}function getObjUrl(objectType){var $v_0=Mscrm.WindowInformation.getWindowInformation(objectType);if(!IsNull($v_0))return $v_0.Url;return null}function formatString(){var $v_0=arguments.length;if(!$v_0)return "";var $v_1=arguments[0],$v_2;if($v_0>1&&isArray(arguments[1]))$v_2=arguments[1];else{$v_2=new Array($v_0-1);for(var $v_3=1;$v_3<$v_0;$v_3++)$v_2[$v_3-1]=arguments[$v_3]}for(var $v_4=0;$v_4<$v_2.length;$v_4++)$v_1=$v_1.replace(new RegExp("\\{"+$v_4+"\\}","g"),$v_2[$v_4].toString());return $v_1}var StringBuilder=function(){this.$2A_0=new Sys.StringBuilder};StringBuilder.prototype={Append:function(s){this.$2A_0.append(s)},Reset:function(){this.$2A_0.clear()},ToString:function(){return this.$2A_0.toString()}};Mscrm.Obsolete.RenderVariables=function(){};Mscrm.ImageStripData.registerClass("Mscrm.ImageStripData");Mscrm.RibbonCommandDefinition.registerClass("Mscrm.RibbonCommandDefinition");Mscrm.ActionAttributes.registerClass("Mscrm.ActionAttributes");Mscrm.RibbonSelectionDataType.registerClass("Mscrm.RibbonSelectionDataType");Mscrm.NavigationMode.registerClass("Mscrm.NavigationMode");Mscrm.RecordSetNavigation.registerClass("Mscrm.RecordSetNavigation");Mscrm.ScriptEvents.registerClass("Mscrm.ScriptEvents");Mscrm.IconUtil.registerClass("Mscrm.IconUtil");Mscrm.RibbonConstants.registerClass("Mscrm.RibbonConstants");Mscrm.RuleAppliesTo.registerClass("Mscrm.RuleAppliesTo");Mscrm.RibbonRuleRelationshipType.registerClass("Mscrm.RibbonRuleRelationshipType");Mscrm.RibbonContexts.registerClass("Mscrm.RibbonContexts");Mscrm.GlobalContext.registerClass("Mscrm.GlobalContext");Mscrm.EntityTypeCode.registerClass("Mscrm.EntityTypeCode");Mscrm.EtcUtil.registerClass("Mscrm.EtcUtil");Mscrm.SolutionComponentType.registerClass("Mscrm.SolutionComponentType");Mscrm.WebResourceConstants.registerClass("Mscrm.WebResourceConstants");Mscrm.CrmHeader.registerClass("Mscrm.CrmHeader");Mscrm.IncludeLoader.registerClass("Mscrm.IncludeLoader");Mscrm.ScriptLoader.registerClass("Mscrm.ScriptLoader",Mscrm.IncludeLoader);Mscrm.StyleLoader.registerClass("Mscrm.StyleLoader",Mscrm.IncludeLoader);Mscrm.CrmUIComponent.registerClass("Mscrm.CrmUIComponent",Sys.Component,Mscrm.ICrmEventableComponent);Mscrm.Dialog.registerClass("Mscrm.Dialog",Mscrm.CrmUIComponent,Mscrm.IDialog);Mscrm.Menu.registerClass("Mscrm.Menu",Mscrm.CrmUIComponent,Mscrm.IMenu,Mscrm.IMenuItem);Mscrm.MenuItem.registerClass("Mscrm.MenuItem",Mscrm.CrmUIComponent,Mscrm.IMenuItem);Mscrm.MenuItemSeparator.registerClass("Mscrm.MenuItemSeparator",Mscrm.MenuItem);Mscrm.MenuStyles.registerClass("Mscrm.MenuStyles");Mscrm.AddActivity.registerClass("Mscrm.AddActivity");Mscrm.RecentlyViewedItem.registerClass("Mscrm.RecentlyViewedItem");Mscrm.CrmUIControl.registerClass("Mscrm.CrmUIControl",Sys.UI.Control,Mscrm.ICrmEventableComponent,Mscrm.ICrmResizeableControl);Mscrm.CrmUIBehavior.registerClass("Mscrm.CrmUIBehavior",Sys.UI.Behavior,Mscrm.ICrmEventableComponent);Mscrm.CurrencyValidator.registerClass("Mscrm.CurrencyValidator");Mscrm.CrmUri.registerClass("Mscrm.CrmUri");Mscrm.CrmOneNoteUri.registerClass("Mscrm.CrmOneNoteUri",Mscrm.CrmUri);Mscrm.CrmWindow.registerClass("Mscrm.CrmWindow");Mscrm.DateTimeUtility.registerClass("Mscrm.DateTimeUtility");Mscrm.CrmDebug.registerClass("Mscrm.CrmDebug");Mscrm.DeferredActionHandlerFactory.registerClass("Mscrm.DeferredActionHandlerFactory");Mscrm.DefaultDeferredActionHandler.registerClass("Mscrm.DefaultDeferredActionHandler",null,Mscrm.ICrmDeferredActionHandler);Mscrm.RecordUpdatedHandler.registerClass("Mscrm.RecordUpdatedHandler",null,Mscrm.ICrmDeferredActionHandler);Mscrm.Display.registerClass("Mscrm.Display");Mscrm.ErrorInformation.registerClass("Mscrm.ErrorInformation");Mscrm.EventManager.registerClass("Mscrm.EventManager",Sys.Component);Mscrm.Form.registerClass("Mscrm.Form");Mscrm.ButtonUtils.registerClass("Mscrm.ButtonUtils");Mscrm.FormEditor.registerClass("Mscrm.FormEditor");Mscrm.Rte.registerClass("Mscrm.Rte");Mscrm.WebResourceUtils.registerClass("Mscrm.WebResourceUtils");Mscrm.ItemObject.registerClass("Mscrm.ItemObject");Mscrm.GlobalEvents.registerClass("Mscrm.GlobalEvents");Mscrm.Grid.registerClass("Mscrm.Grid");Mscrm.Help.registerClass("Mscrm.Help");Mscrm.ImageStrip.registerClass("Mscrm.ImageStrip");Mscrm.TypeNames.registerClass("Mscrm.TypeNames");Mscrm.NumberUtility.registerClass("Mscrm.NumberUtility");Mscrm.PagePreloadInfo.registerClass("Mscrm.PagePreloadInfo");Mscrm.PerformanceTracing.registerClass("Mscrm.PerformanceTracing");Mscrm.OutlookUtil.registerClass("Mscrm.OutlookUtil");Mscrm.CacheScope.registerClass("Mscrm.CacheScope");Mscrm.PageManager.registerClass("Mscrm.PageManager",Mscrm.CrmUIComponent);Mscrm.ReportViewType.registerClass("Mscrm.ReportViewType");Mscrm.ReportUtil.registerClass("Mscrm.ReportUtil");Mscrm.RibbonUtility.registerClass("Mscrm.RibbonUtility");Mscrm.ScriptErrorReporting.registerClass("Mscrm.ScriptErrorReporting",Mscrm.CrmUIComponent);Mscrm.SessionInfo.registerClass("Mscrm.SessionInfo");Mscrm.Shortcuts.registerClass("Mscrm.Shortcuts");Mscrm.SolutionDecorater.registerClass("Mscrm.SolutionDecorater");Mscrm.WindowInformation.registerClass("Mscrm.WindowInformation");Mscrm.WrpcTokenFuncs.registerClass("Mscrm.WrpcTokenFuncs");Mscrm.WrpcToken.registerClass("Mscrm.WrpcToken");Mscrm.ContextMenuAction.registerClass("Mscrm.ContextMenuAction");Mscrm.Utilities.registerClass("Mscrm.Utilities");Mscrm.XmlUtil.registerClass("Mscrm.XmlUtil");Mscrm.XslTemplate.registerClass("Mscrm.XslTemplate");Mscrm.XslProcessor.registerClass("Mscrm.XslProcessor");Mscrm.InternetExplorerXslProcessor.registerClass("Mscrm.InternetExplorerXslProcessor",Mscrm.XslProcessor);Xrm.Page.registerClass("Xrm.Page");StringBuilder.registerClass("StringBuilder");Mscrm.Obsolete.RenderVariables.registerClass("Mscrm.Obsolete.RenderVariables");Mscrm.RibbonSelectionDataType.recordCount=0;Mscrm.RibbonSelectionDataType.selectedRecordCount=1;Mscrm.RibbonSelectionDataType.allRecords=2;Mscrm.RibbonSelectionDataType.allRecordIds=3;Mscrm.RibbonSelectionDataType.selectedRecords=4;Mscrm.RibbonSelectionDataType.selectedIds=5;Mscrm.RibbonSelectionDataType.unselectedRecords=6;Mscrm.RibbonSelectionDataType.unselectedIds=7;Mscrm.RibbonSelectionDataType.gridXml=8;Mscrm.RibbonSelectionDataType.entityDisplayName=9;Mscrm.RibbonSelectionDataType.entityDisplayPluralName=10;Mscrm.RibbonSelectionDataType.viewTitle=11;Mscrm.RibbonSelectionDataType.viewIsUserOwned=12;Mscrm.RibbonSelectionDataType.totalRecordCount=13;Mscrm.RibbonSelectionDataType.pageNumber=14;Mscrm.RibbonSelectionDataType.pageSize=15;Mscrm.NavigationMode.NavigationModeNewWindow=0;Mscrm.NavigationMode.NavigationModeInline=1;Mscrm.NavigationMode.DefaultNavigationMode=0;Mscrm.RecordSetNavigation.PrimaryFieldName="primaryFieldColumnName";Mscrm.RecordSetNavigation.PrimaryFieldColumnIndex="primaryFieldColumnIndex";Mscrm.RecordSetNavigation.DisplayFieldName="displayFieldColumnName";Mscrm.RecordSetNavigation.DisplayFieldLabel="displayFieldColumnLabel";Mscrm.RecordSetNavigation.DisplayFieldColumnIndex="displayFieldColumnIndex";Mscrm.RecordSetNavigation.PageNumber="pageNumber";Mscrm.RecordSetNavigation.LayoutXml="layoutXml";Mscrm.RecordSetNavigation.ViewName="viewName";Mscrm.RecordSetNavigation.RecordPosition="rpos";Mscrm.RecordSetNavigation.RecordsMask="page_{0}_Records";Mscrm.RecordSetNavigation.MoreRecordsMask="page_{0}_moreRecords";Mscrm.RecordSetNavigation.GridXmlMask="page_{0}_gridXml";Mscrm.RecordSetNavigation.RemoteCommandMask="page_{0}_RemoteCommand";Mscrm.RecordSetNavigation.RefreshDataMask="page_{0}_RefreshData";Mscrm.ScriptEvents.ShowEvents=0;Mscrm.ScriptEvents.AppNavGoTo=1;Mscrm.ScriptEvents.CacheInitializedCallback=2;Mscrm.ScriptEvents.GetSelectedAreaSubAreaIds=3;Mscrm.ScriptEvents.GetPageInfo=4;Mscrm.ScriptEvents.InsertCacheData=5;Mscrm.ScriptEvents.NavigateSaveState=6;Mscrm.ScriptEvents.NavigateRestoreState=7;Mscrm.ScriptEvents.Navigate=8;Mscrm.ScriptEvents.PageLoaded=9;Mscrm.ScriptEvents.RetrieveCacheData=10;Mscrm.ScriptEvents.SyncCache=11;Mscrm.ScriptEvents.ShowAppNav=12;Mscrm.ScriptEvents.UpdateViewUrl=13;Mscrm.ScriptEvents.WindowResize=14;Mscrm.ScriptEvents.GetContentUrl=15;Mscrm.ScriptEvents.NavigateBack=16;Mscrm.ScriptEvents.NavigateForward=17;Mscrm.ScriptEvents.NavigateBackCheckpoint=18;Mscrm.ScriptEvents.NavigateRetrieveDetails=19;Mscrm.ScriptEvents.RequestResize=20;Mscrm.ScriptEvents.NavigateRequest=21;Mscrm.ScriptEvents.NavigateRefresh=22;Mscrm.ScriptEvents.NavigateClose=23;Mscrm.ScriptEvents.SignOut=24;Mscrm.ScriptEvents.OnClick=25;Mscrm.ScriptEvents.OnGridReset=26;Mscrm.ScriptEvents.OnGridRefresh=27;Mscrm.ScriptEvents.OnGridResetComplete=28;Mscrm.ScriptEvents.PageUnloaded=29;Mscrm.ScriptEvents.RibbonSelectionChanged=30;Mscrm.ScriptEvents.RibbonExecuteCommand=31;Mscrm.ScriptEvents.RibbonRefresh=32;Mscrm.ScriptEvents.RibbonRequestEnabledState=33;Mscrm.ScriptEvents.RibbonRequestVisibleState=34;Mscrm.ScriptEvents.RibbonDataLoad=35;Mscrm.ScriptEvents.RibbonDataUnload=36;Mscrm.ScriptEvents.RibbonRootEvent=37;Mscrm.ScriptEvents.SetRibbonSelectedControl=38;Mscrm.ScriptEvents.RibbonTabSwitch=39;Mscrm.ScriptEvents.OnDocumentReady=40;Mscrm.ScriptEvents.OnKeyDown=41;Mscrm.ScriptEvents.ViewSelectorChanged=42;Mscrm.ScriptEvents.UpdatePageInformation=43;Mscrm.ScriptEvents.GetWindowSize=44;Mscrm.ScriptEvents.SelectionChanged=45;Mscrm.ScriptEvents.NavigateConfirm=46;Mscrm.ScriptEvents.GridViewChanged=47;Mscrm.ScriptEvents.GetStickyViewIdForSubAreaPage=48;Mscrm.ScriptEvents.RetrieveRecentData=49;Mscrm.ScriptEvents.RefreshGrid=50;Mscrm.ScriptEvents.RecordUpdated=51;Mscrm.ScriptEvents.RecentlyViewedAddItem=52;Mscrm.ScriptEvents.OnDashboardRefresh=53;Mscrm.ScriptEvents.OnPaneRefresh=54;Mscrm.ScriptEvents.RibbonSetFocusToSelf=55;Mscrm.ScriptEvents.RibbonSetFocusToLastControl=56;Mscrm.ScriptEvents.BeforePageLoaded=57;Mscrm.ScriptEvents.RecentlyViewedSetFocusOnViewedPagesIcon=58;Mscrm.ScriptEvents.SiteMapSetFocusOnFirstItem=59;Mscrm.ScriptEvents.UpdateVisualizationUrl=60;Mscrm.ScriptEvents.UpdateDashboardsUrl=61;Mscrm.ScriptEvents.NewViewCreated=62;Mscrm.ScriptEvents.RetrieveLookupMruData=63;Mscrm.ScriptEvents.AddLookupMruItems=64;Mscrm.ScriptEvents.UpdateLookupMruItems=65;Mscrm.ScriptEvents.RemoveLookupMruItems=66;Mscrm.ScriptEvents.RibbonMinimizeToggle=67;Mscrm.ScriptEvents.SignOutRequested=68;Mscrm.ScriptEvents.RibbonTabScalingComplete=69;Mscrm.ScriptEvents.TabExpended=70;Mscrm.IconUtil.maxIconSize=10240;Mscrm.IconUtil.defaultIcon="/_imgs/ico_16.gif";Mscrm.IconUtil.genericCustomEntityRibbonIconSuffix="Custom.png";Mscrm.RibbonConstants.jewelId="Mscrm.Jewel";Mscrm.RuleAppliesTo.none=0;Mscrm.RuleAppliesTo.primaryEntity=1;Mscrm.RuleAppliesTo.selectedEntity=2;Mscrm.RibbonRuleRelationshipType.noRelationship=0;Mscrm.RibbonRuleRelationshipType.oneToMany=1;Mscrm.RibbonRuleRelationshipType.manyToMany=2;Mscrm.RibbonContexts.form="Form";Mscrm.RibbonContexts.homepageGrid="HomePageGrid";Mscrm.RibbonContexts.subGridStandard="SubGridStandard";Mscrm.RibbonContexts.subGridAssociated="SubGridAssociated";Mscrm.EntityTypeCode.None=0;Mscrm.EntityTypeCode.Account=1;Mscrm.EntityTypeCode.ActivityMimeAttachment=1001;Mscrm.EntityTypeCode.ActivityParty=135;Mscrm.EntityTypeCode.ActivityPointer=4200;Mscrm.EntityTypeCode.Annotation=5;Mscrm.EntityTypeCode.AnnualFiscalCalendar=2e3;Mscrm.EntityTypeCode.Appointment=4201;Mscrm.EntityTypeCode.AsyncOperation=4700;Mscrm.EntityTypeCode.AttributeMap=4601;Mscrm.EntityTypeCode.Audit=4567;Mscrm.EntityTypeCode.BulkDeleteFailure=4425;Mscrm.EntityTypeCode.BulkDeleteOperation=4424;Mscrm.EntityTypeCode.BulkOperation=4406;Mscrm.EntityTypeCode.BulkOperationLog=4405;Mscrm.EntityTypeCode.BusinessUnit=10;Mscrm.EntityTypeCode.BusinessUnitNewsArticle=132;Mscrm.EntityTypeCode.Calendar=4003;Mscrm.EntityTypeCode.CalendarRule=4004;Mscrm.EntityTypeCode.Campaign=4400;Mscrm.EntityTypeCode.CampaignActivity=4402;Mscrm.EntityTypeCode.CampaignResponse=4401;Mscrm.EntityTypeCode.Competitor=123;Mscrm.EntityTypeCode.ResourceGroup=4007;Mscrm.EntityTypeCode.ConstraintBasedGroup=4007;Mscrm.EntityTypeCode.Connection=3234;Mscrm.EntityTypeCode.ConnectionRole=3231;Mscrm.EntityTypeCode.Contact=2;Mscrm.EntityTypeCode.Contract=1010;Mscrm.EntityTypeCode.ContractDetail=1011;Mscrm.EntityTypeCode.ContractTemplate=2011;Mscrm.EntityTypeCode.CustomerAddress=1071;Mscrm.EntityTypeCode.CustomerOpportunityRole=4503;Mscrm.EntityTypeCode.CustomerRelationship=4502;Mscrm.EntityTypeCode.Dependency=7105;Mscrm.EntityTypeCode.Discount=1013;Mscrm.EntityTypeCode.DiscountType=1080;Mscrm.EntityTypeCode.DisplayString=4102;Mscrm.EntityTypeCode.DocumentIndex=126;Mscrm.EntityTypeCode.DuplicateRule=4414;Mscrm.EntityTypeCode.Email=4202;Mscrm.EntityTypeCode.Equipment=4e3;Mscrm.EntityTypeCode.Fax=4204;Mscrm.EntityTypeCode.FieldSecurityProfile=1200;Mscrm.EntityTypeCode.FieldPermission=1201;Mscrm.EntityTypeCode.FixedMonthlyFiscalCalendar=2004;Mscrm.EntityTypeCode.Goal=9600;Mscrm.EntityTypeCode.Metric=9603;Mscrm.EntityTypeCode.RollupField=9604;Mscrm.EntityTypeCode.GoalRollupQuery=9602;Mscrm.EntityTypeCode.ImportEntity=4410;Mscrm.EntityTypeCode.ImportFile=4412;Mscrm.EntityTypeCode.ImportJob=9107;Mscrm.EntityTypeCode.ImportLog=4423;Mscrm.EntityTypeCode.ImportMap=4411;Mscrm.EntityTypeCode.Incident=112;Mscrm.EntityTypeCode.IncidentResolution=4206;Mscrm.EntityTypeCode.Invoice=1090;Mscrm.EntityTypeCode.InvoiceDetail=1091;Mscrm.EntityTypeCode.KbArticle=127;Mscrm.EntityTypeCode.KbArticleComment=1082;Mscrm.EntityTypeCode.KbArticleTemplate=1016;Mscrm.EntityTypeCode.Lead=4;Mscrm.EntityTypeCode.Letter=4207;Mscrm.EntityTypeCode.List=4300;Mscrm.EntityTypeCode.ListMember=4301;Mscrm.EntityTypeCode.MailMergeTemplate=9106;Mscrm.EntityTypeCode.MonthlyFiscalCalendar=2003;Mscrm.EntityTypeCode.Opportunity=3;Mscrm.EntityTypeCode.OpportunityClose=4208;Mscrm.EntityTypeCode.OpportunityProduct=1083;Mscrm.EntityTypeCode.OrderClose=4209;Mscrm.EntityTypeCode.Organization=1019;Mscrm.EntityTypeCode.PhoneCall=4210;Mscrm.EntityTypeCode.PluginAssembly=4605;Mscrm.EntityTypeCode.PluginType=4602;Mscrm.EntityTypeCode.PluginTypeStatistic=4603;Mscrm.EntityTypeCode.Post=8e3;Mscrm.EntityTypeCode.PostFollow=8003;Mscrm.EntityTypeCode.PostLike=8006;Mscrm.EntityTypeCode.PriceLevel=1022;Mscrm.EntityTypeCode.Privilege=1023;Mscrm.EntityTypeCode.Product=1024;Mscrm.EntityTypeCode.ProductPriceLevel=1026;Mscrm.EntityTypeCode.Publisher=7101;Mscrm.EntityTypeCode.QuarterlyFiscalCalendar=2002;Mscrm.EntityTypeCode.Queue=2020;Mscrm.EntityTypeCode.QueueItem=2029;Mscrm.EntityTypeCode.Quote=1084;Mscrm.EntityTypeCode.QuoteClose=4211;Mscrm.EntityTypeCode.QuoteDetail=1085;Mscrm.EntityTypeCode.RecurringAppointmentMaster=4251;Mscrm.EntityTypeCode.RelationshipRole=4500;Mscrm.EntityTypeCode.RelationshipRoleMap=4501;Mscrm.EntityTypeCode.Report=9100;Mscrm.EntityTypeCode.ResourceSpec=4006;Mscrm.EntityTypeCode.RibbonCommand=1116;Mscrm.EntityTypeCode.RibbonContextGroup=1115;Mscrm.EntityTypeCode.RibbonCustomization=1120;Mscrm.EntityTypeCode.RibbonDiff=1130;Mscrm.EntityTypeCode.RibbonRule=1117;Mscrm.EntityTypeCode.RibbonTabToCommandMap=1113;Mscrm.EntityTypeCode.SharePointSite=9502;Mscrm.EntityTypeCode.SharePointDocumentLocation=9508;Mscrm.EntityTypeCode.SystemForm=1030;Mscrm.EntityTypeCode.UserForm=1031;Mscrm.EntityTypeCode.Role=1036;Mscrm.EntityTypeCode.SalesLiterature=1038;Mscrm.EntityTypeCode.SalesLiteratureItem=1070;Mscrm.EntityTypeCode.SalesOrder=1088;Mscrm.EntityTypeCode.SalesOrderDetail=1089;Mscrm.EntityTypeCode.SavedQuery=1039;Mscrm.EntityTypeCode.SavedQueryVisualization=1111;Mscrm.EntityTypeCode.SdkMessageProcessingStep=4608;Mscrm.EntityTypeCode.SdkMessageProcessingStepImage=4615;Mscrm.EntityTypeCode.SemiAnnualFiscalCalendar=2001;Mscrm.EntityTypeCode.Service=4001;Mscrm.EntityTypeCode.ServiceAppointment=4214;Mscrm.EntityTypeCode.ServiceEndpoint=4618;Mscrm.EntityTypeCode.Site=4009;Mscrm.EntityTypeCode.SiteMap=4709;Mscrm.EntityTypeCode.Solution=7100;Mscrm.EntityTypeCode.SolutionComponent=7103;Mscrm.EntityTypeCode.Subject=129;Mscrm.EntityTypeCode.SystemUser=8;Mscrm.EntityTypeCode.Task=4212;Mscrm.EntityTypeCode.Team=9;Mscrm.EntityTypeCode.Template=2010;Mscrm.EntityTypeCode.Territory=2013;Mscrm.EntityTypeCode.TransactionCurrency=9105;Mscrm.EntityTypeCode.UnresolvedAddress=2012;Mscrm.EntityTypeCode.UoM=1055;Mscrm.EntityTypeCode.UoMSchedule=1056;Mscrm.EntityTypeCode.UserFiscalCalendar=1086;Mscrm.EntityTypeCode.UserQuery=4230;Mscrm.EntityTypeCode.UserQueryVisualization=1112;Mscrm.EntityTypeCode.UserSettings=150;Mscrm.EntityTypeCode.Workflow=4703;Mscrm.EntityTypeCode.WebResource=9333;Mscrm.EntityTypeCode.ServiceRestrictionCalendarRule=5003;Mscrm.EntityTypeCode.TimeOffCalendarRule=5004;Mscrm.EntityTypeCode.HolidayCalendarRule=5005;Mscrm.EntityTypeCode.OccurrenceCalendarRule=5006;Mscrm.EntityTypeCode.RecurrenceCalendarRule=5007;Mscrm.EntityTypeCode.OccurringWorkShift=5008;Mscrm.EntityTypeCode.RecurringWorkShift=5009;Mscrm.EntityTypeCode.NotWorkingWorkShift=5010;Mscrm.EntityTypeCode.ActivityScheduling=5011;Mscrm.EntityTypeCode.AppLicense=9002;Mscrm.EntityTypeCode.AppSalesPerson=9003;Mscrm.EntityTypeCode.AppOfflineFilter=9004;Mscrm.EntityTypeCode.AppWorkflowInstance=9005;Mscrm.EntityTypeCode.ReportPropertyDialog=9099;Mscrm.EntityTypeCode.ScriptErrorDialog=9200;Mscrm.EntityTypeCode.ScriptErrorDetailsDialog=9201;Mscrm.EntityTypeCode.DuplicateDetectionDialog=9203;Mscrm.EntityTypeCode.BulkDeleteWizardDialog=9204;Mscrm.EntityTypeCode.ImportWizardDialog=9205;Mscrm.EntityTypeCode.UnresolvedEmailParty=9206;Mscrm.EntityTypeCode.SolutionExportWizard=9207;Mscrm.EntityTypeCode.SolutionImportWizard=9208;Mscrm.EntityTypeCode.AccountAddress=1e3;Mscrm.EntityTypeCode.ContactAddress=1008;Mscrm.EntityTypeCode.NewKbArticle=9202;Mscrm.EntityTypeCode.Entity=9801;Mscrm.EntityTypeCode.Attribute=9802;Mscrm.EntityTypeCode.Relationship=9803;Mscrm.EntityTypeCode.OptionSet=9804;Mscrm.EntityTypeCode.EntityRelationship=9805;Mscrm.EntityTypeCode.AttributePicklistValue=9806;Mscrm.EntityTypeCode.EntityRelationshipRole=9807;Mscrm.EntityTypeCode.RolePrivileges=9808;Mscrm.EntityTypeCode.LocalizedLabel=9809;Mscrm.EntityTypeCode.ViewAttribute=9810;Mscrm.EntityTypeCode.RoleTemplatePrivileges=9811;Mscrm.EntityTypeCode.BaseAddEntityObjectTypeCode=1e4;Mscrm.EntityTypeCode.InternalAddress=1003;Mscrm.EntityTypeCode.CompetitorAddress=1004;Mscrm.EntityTypeCode.LeadAddress=1017;Mscrm.EntityTypeCode.OrganizationUI=1021;Mscrm.EntityTypeCode.RoleTemplate=1037;Mscrm.EntityTypeCode.License=2027;Mscrm.EntityTypeCode.IntegrationStatus=3e3;Mscrm.EntityTypeCode.SubscriptionSyncInfo=33;Mscrm.EntityTypeCode.EntityMap=4600;Mscrm.EntityTypeCode.Notification=4110;Mscrm.EntityTypeCode.BusinessUnitMap=6;Mscrm.EntityTypeCode.DisplayStringMap=4101;Mscrm.EntityTypeCode.Subscription=29;Mscrm.EntityTypeCode.FilterTemplate=30;Mscrm.EntityTypeCode.SubscriptionClients=1072;Mscrm.EntityTypeCode.ColumnMapping=4417;Mscrm.EntityTypeCode.SubscriptionManuallyTrackedObject=34;Mscrm.EntityTypeCode.DuplicateRecord=4415;Mscrm.EntityTypeCode.DuplicateRuleCondition=4416;Mscrm.EntityTypeCode.EmailHash=4023;Mscrm.EntityTypeCode.ImportData=4413;Mscrm.EntityTypeCode.IsvConfig=4705;Mscrm.EntityTypeCode.LookUpMapping=4419;Mscrm.EntityTypeCode.OwnerMapping=4420;Mscrm.EntityTypeCode.PickListMapping=4418;Mscrm.EntityTypeCode.SdkMessage=4606;Mscrm.EntityTypeCode.SdkMessageFilter=4607;Mscrm.EntityTypeCode.SdkMessagePair=4613;Mscrm.EntityTypeCode.SdkMessageRequest=4609;Mscrm.EntityTypeCode.SdkMessageRequestField=4614;Mscrm.EntityTypeCode.SdkMessageResponse=4610;Mscrm.EntityTypeCode.SdkMessageResponseField=4611;Mscrm.EntityTypeCode.TransformationMapping=4426;Mscrm.EntityTypeCode.WorkflowWaitSubscription=4702;Mscrm.EntityTypeCode.SystemUserPrincipals=14;Mscrm.EntityTypeCode.WorkflowDependency=4704;Mscrm.EntityTypeCode.TransformationParameterMapping=4427;Mscrm.EntityTypeCode.ApplicationFile=4707;Mscrm.EntityTypeCode.PrivilegeObjectTypeCodes=31;Mscrm.EntityTypeCode.ClientUpdate=36;Mscrm.EntityTypeCode.OrganizationStatistic=4708;Mscrm.EntityTypeCode.ResourceGroupExpansion=4010;Mscrm.EntityTypeCode.InterProcessLock=4011;Mscrm.EntityTypeCode.SdkMessageProcessingStepSecureConfig=4616;Mscrm.EntityTypeCode.TimeZoneDefinition=4810;Mscrm.EntityTypeCode.TimeZoneLocalizedName=4812;Mscrm.EntityTypeCode.TimeZoneRule=4811;Mscrm.EntityTypeCode.WebWizard=4800;Mscrm.EntityTypeCode.WizardAccessPrivilege=4803;Mscrm.EntityTypeCode.WizardPage=4802;Mscrm.EntityTypeCode.WorkflowLog=4706;Mscrm.EntityTypeCode.ProcessSession=4710;Mscrm.SolutionComponentType.None=0;Mscrm.SolutionComponentType.Entity=1;Mscrm.SolutionComponentType.Attribute=2;Mscrm.SolutionComponentType.Relationship=3;Mscrm.SolutionComponentType.OptionSet=9;Mscrm.SolutionComponentType.EntityRelationship=10;Mscrm.SolutionComponentType.EntityRelationshipRelationships=12;Mscrm.SolutionComponentType.Role=20;Mscrm.SolutionComponentType.Organization=25;Mscrm.SolutionComponentType.SavedQuery=26;Mscrm.SolutionComponentType.Workflow=29;Mscrm.SolutionComponentType.Template=36;Mscrm.SolutionComponentType.ContractTemplate=37;Mscrm.SolutionComponentType.KbArticleTemplate=38;Mscrm.SolutionComponentType.MailMergeTemplate=39;Mscrm.SolutionComponentType.DuplicateRule=44;Mscrm.SolutionComponentType.EntityMap=46;Mscrm.SolutionComponentType.AttributeMap=47;Mscrm.SolutionComponentType.SavedQueryVisualization=59;Mscrm.SolutionComponentType.SystemForm=60;Mscrm.SolutionComponentType.WebResource=61;Mscrm.SolutionComponentType.ConnectionRole=63;Mscrm.WebResourceConstants.sizeModeStretchToFit="StretchToFit";Mscrm.WebResourceConstants.sizeModeStretchMaintainAspectRatio="StretchMaintainAspectRatio";Mscrm.WebResourceConstants.sizeModeSpecific="Specific";Mscrm.CrmHeader.$2B_0=null;Mscrm.CrmHeader.$2E_0=null;Mscrm.Dialog.auto=-1;Mscrm.Dialog.numZLevels=4;Mscrm.Dialog.$4H_2=0;Mscrm.Menu.$s_2=-1;Mscrm.MenuItem.$3F_2=0;Mscrm.MenuItem.defaultStylePrefix="";Mscrm.MenuItem.formaT_IMAGE_SEP_TITLE_AUX=0;Mscrm.MenuItem.formaT_AUX_IMAGE_SEP_TITLE=1;Mscrm.MenuItem.$37_2={};Mscrm.MenuStyles.defaultStylePrefix="";Mscrm.MenuStyles.recentlyViewedStylePrefix="RV";Mscrm.MenuStyles.recordSelectorStylePrefix="RS";Mscrm.MenuStyles.contextMenuStylePrefix="CM";Mscrm.MenuStyles.activityViewSelectorStylePrefix="AVS";Mscrm.MenuStyles.viewSelectorStylePrefix="VS";Mscrm.MenuStyles.formSelectorStylePrefix="FS";Mscrm.MenuStyles.multiSelectStylePrefix="MS";Mscrm.MenuStyles.lookupMruStylePrefix="LK";Mscrm.MenuStyles.notification="Ntfc";Mscrm.MenuStyles.quirksSuffix="-qrk";crmCreate=Mscrm.CrmUIComponent.crmCreate;Mscrm.CurrencyValidator.$4Y_0=4;Mscrm.CurrencyValidator.$4Z_0=1;Mscrm.CurrencyValidator.$4W_0=100;Mscrm.CurrencyValidator.$4X_0=1;Mscrm.CurrencyValidator.$2J_0=null;Mscrm.CurrencyValidator.$2M_0=null;Mscrm.CurrencyValidator.$2K_0=null;Mscrm.CurrencyValidator.$2N_0=null;Mscrm.CurrencyValidator.$e_0=null;Mscrm.CurrencyValidator.$g_0=null;Mscrm.CurrencyValidator.$f_0=null;Mscrm.CurrencyValidator.$2T_0=null;Mscrm.CurrencyValidator.$2O_0=null;Mscrm.CurrencyValidator.$1P_0=null;Mscrm.CurrencyValidator.$2L_0=null;Mscrm.CurrencyValidator.$2S_0=null;Mscrm.CrmUri.versionStampParameterName="ver";Mscrm.CrmUri.cssLcidParameterName="lcid";Mscrm.CrmUri.$4c_0=new RegExp("\\.bmp$|\\.css$|\\.css\\.aspx$|\\.gif$|\\.htc$|\\.htc\\.aspx$|\\.ico$|\\.jpg$|\\.js$|\\.js\\.aspx$|\\.png$|\\.xsl$|global\\.ashx$","i");Mscrm.CrmWindow.onBeforeUnloadHandler=null;Mscrm.CrmWindow.onUnloadHandler=null;Mscrm.CrmWindow.dialogRetryReturnValue="___RETRY___";Mscrm.CrmWindow.$1f_0={};Mscrm.DateTimeUtility.$3p_0=new Date(9999,11,30);Mscrm.DateTimeUtility.$3q_0=new Date(1900,0,1);Mscrm.Display.$2W_0=false;Mscrm.GlobalEvents.$H_0=null;Mscrm.GlobalEvents.$2P_0=false;$addHandler(document,"keypress",Mscrm.GlobalEvents.$44_0);$addHandler(document,"keydown",Mscrm.GlobalEvents.$44_0);document.onselectstart=Mscrm.GlobalEvents.$50_0;document.ondragstart=Mscrm.GlobalEvents.$4z_0;document.oncontextmenu=Mscrm.GlobalEvents.$4y_0;Mscrm.ImageStrip.$1w_0=null;Mscrm.ImageStrip.$4F_0=new RegExp("(\\s|^)(ms-crm-ImageStrip-\\S+)(\\s|$)");Mscrm.TypeNames.numberType="number";Mscrm.TypeNames.stringType="string";Mscrm.TypeNames.booleanType="boolean";Mscrm.TypeNames.objectType="object";Mscrm.TypeNames.functionType="function";Mscrm.TypeNames.undefinedType="undefined";Mscrm.TypeNames.unknownType="unknown";Mscrm.NumberUtility.$2l_0=["\uff41","\uff4d","\uff50","\uff21","\uff2d","\uff30","\u2019","\u3000","\uff1a","\u3001","\uff0c","\uff0d","\u30fc","\u2015","\u2010","\uff0e","\u3002","\uff0f","\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"];Mscrm.NumberUtility.$3j_0=["a","m","p","A","M","P","'"," ",":",",",",","-","-","-","-",".",".","/","0","1","2","3","4","5","6","7","8","9"];Mscrm.PerformanceTracing.$1u_0=null;Mscrm.OutlookUtil.$2G_0=null;Mscrm.CacheScope.Local=0;Mscrm.CacheScope.Global=1;Mscrm.CacheScope.ChildOnly=2;Mscrm.PageManager.isPageLoaded=false;Mscrm.PageManager.$15_2=false;Mscrm.ReportViewType.none=0;Mscrm.ReportViewType.viewInSrs=1;Mscrm.ReportViewType.viewAtServer=2;Mscrm.ReportViewType.viewInApp=3;Mscrm.ReportViewType.viewLinked=4;Mscrm.ReportUtil.$29_0={};Mscrm.ReportUtil.$21_0=null;Mscrm.ReportUtil.$1c_0=null;Mscrm.ScriptErrorReporting.$p_2=null;var $v_0={};$v_0["subscribedEvents"]=[29];$create(Mscrm.ScriptErrorReporting,$v_0,null,null,null);window.onerror=window.catchError;$addHandler(window,"beforeunload",Mscrm.ScriptErrorReporting.$2R);Mscrm.SolutionDecorater.$1_0=null;Mscrm.SolutionDecorater.$1k_0=null;Mscrm.SolutionDecorater.solutionId="appSolutionId";Mscrm.ContextMenuAction.open=0;Mscrm.ContextMenuAction.openInNewWindow=1;Mscrm.ContextMenuAction.copyShortcut=2;Mscrm.ContextMenuAction.sendShortcut=3;Mscrm.ContextMenuAction.pinItem=4;Mscrm.ContextMenuAction.unpinItem=5;Mscrm.Utilities.$3L=new RegExp("(^/WEBRESOURCES/)|(^/(%7B|\\{)[0-9]{15,22}(%7D|\\})/WEBRESOURCES/)","i");Mscrm.Utilities.emptyString="";Mscrm.Utilities.$1z_0=null;Mscrm.Utilities.$v_0=0;Mscrm.Utilities.$1y_0=null;Mscrm.Utilities.$z_0=null;Xrm.Page.data=null;Xrm.Page.ui=null;Xrm.Page.context=new Mscrm.GlobalContext;var $$dict_1_0=Mscrm.EntityTypeCode;for(var $$key_1_1 in $$dict_1_0){var $v_0={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};window[$v_0.key]=$v_0.value}window.Import=4410;var $$dict_1_0=new Mscrm.FormFieldType;for(var $$key_1_1 in $$dict_1_0){var $v_1={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};window[$v_1.key]=$v_1.value}var $$dict_1_0=new Mscrm.KeyCode;for(var $$key_1_1 in $$dict_1_0){var $v_2={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};window[$v_2.key]=$v_2.value}var $$dict_1_0=new Mscrm.XmlError;for(var $$key_1_1 in $$dict_1_0){var $v_3={key:$$key_1_1,value:$$dict_1_0[$$key_1_1]};window[$v_3.key]=$v_3.value}function _crmUrlDecode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();s=s.replace(/%u[a-fA-F0-9]{4}/g,function($1){return String.fromCharCode(parseInt($1.substr(2,$1.length-2),16))});return decodeURIComponent(s)}function _crmUrlEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();s=_UrlEncode(s);s=s.replace(/%u[dD][89aAbB][a-fA-F0-9]{2}%u[dD][cCdDeEfF][a-fA-F0-9]{2}/g,function($1){return encodeURIComponent(String.fromCharCode(parseInt($1.substring(2,6),16))+String.fromCharCode(parseInt($1.substring(8),16)))});s=s.replace(/%u[a-fA-F0-9]{4}/g,function($1){return encodeURIComponent(String.fromCharCode(parseInt($1.substr(2,$1.length-2),16)))});return s}function _crmNameValueEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return CrmEncodeDecode.CrmUrlEncode(s)}function _crmNameValueDecode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return CrmEncodeDecode.CrmUrlDecode(s)}function _crmXmlDecode(s,charToDecode){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();if(typeof charToDecode!="undefined"&&charToDecode!=null){if(charToDecode.length>1)charToDecode=charToDecode.charAt(0);var sEncodedChar=_XmlEncode(charToDecode),rex=new RegExp(sEncodedChar,"g");s=s.replace(rex,charToDecode);switch(charToDecode){case "<":s=s.replace(/&lt;/g,"<");break;case ">":s=s.replace(/&gt;/g,">");break;case "&":s=s.replace(/&amp;/g,"&");break;case '"':s=s.replace(/&quot;/g,'"');break;case "'":s=s.replace(/&apos;/g,"'");break}return s}s=s.replace(/&[^;]+;/g,function($1){switch($1){case "&lt;":return "<";case "&gt;":return ">";case "&amp;":return "&";case "&quot;":return '"';case "&apos;":return "'"}if($1.match(/&#[0-9]+;/g))return _crmCharCodeToChar($1.substr(2,$1.length-3));if($1.match(/&#x[a-fA-F0-9]+;/g))return _crmCharCodeToChar(parseInt($1.substr(3,$1.length-4),16));return $1});return s}function _crmCharCodeToChar(charCode){if(charCode>65535&&charCode<1114112){charCode-=65536;return String.fromCharCode(55296+(charCode>>10),56320+(charCode&1023))}else return String.fromCharCode(charCode)}function _crmXmlEncode(s,charToEncode){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();if(typeof charToEncode!="undefined"&&charToEncode!=null){if(charToEncode.length>1)charToEncode=charToEncode.charAt(0);var sEncodedChar=_XmlEncode(charToEncode),rex=new RegExp(charToEncode,"g");return s.replace(rex,sEncodedChar)}return _surrogateAmpersandWorkaround(s,_XmlEncode)}function _crmHtmlEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return _surrogateAmpersandWorkaround(s,_HtmlEncode)}function _crmHtmlEncodeForFormatString(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();s=_surrogateAmpersandWorkaround(s,_HtmlEncode);return s.replace(/&#123;/g,"{").replace(/&#125;/g,"}")}function _crmPluginTraceHtmlEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();s=_crmHtmlEncode(s);s=s.replace(/ /g,"&nbsp;");s=s.replace(/&#9;/g,"&nbsp;&nbsp;&nbsp;&nbsp;");s=s.replace(/&#10;/g,"<br/>");s=s.replace(/&#20;/g,"&nbsp;");return s}function _crmHtmlAttributeEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return _surrogateAmpersandWorkaround(s,_HtmlAttributeEncode)}function _crmXmlAttributeEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return _surrogateAmpersandWorkaround(s,_XmlAttributeEncode)}function _crmJavaScriptEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return _JavaScriptEncode(s)}function _crmVisualBasicScriptEncode(s){if(IsNull(s))return s;else if(typeof s!="string")s=s.toString();return _VisualBasicScriptEncode(s)}function _surrogateAmpersandWorkaround(s,encodingFunction){s=s.replace(new RegExp("([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])","g"),function($1){return "CRMEntityReferenceOpen"+(($1.charCodeAt(0)-55296)*1024+($1.charCodeAt(1)&1023)+65536).toString(16)+"CRMEntityReferenceClose"});s=s.replace(new RegExp("[\\uD800-\\uDFFF]","g"),"\ufffd");s=encodingFunction(s);s=s.replace(/CRMEntityReferenceOpen/g,"&#x");s=s.replace(/CRMEntityReferenceClose/g,";");return s}function CrmEncodeDecodeLibrary(){this.CrmHtmlEncode=_crmHtmlEncode;this.CrmHtmlAttributeEncode=_crmHtmlAttributeEncode;this.CrmXmlEncode=_crmXmlEncode;this.CrmXmlAttributeEncode=_crmXmlAttributeEncode;this.CrmJavaScriptEncode=_crmJavaScriptEncode;this.CrmVisualBasicScriptEncode=_crmVisualBasicScriptEncode;this.CrmUrlEncode=_crmUrlEncode;this.CrmNameValueEncode=_crmNameValueEncode;this.CrmHtmlEncodeForFormatString=_crmHtmlEncodeForFormatString;this.CrmPluginTraceHtmlEncode=_crmPluginTraceHtmlEncode;this.CrmXmlDecode=_crmXmlDecode;this.CrmHtmlDecode=_crmXmlDecode;this.CrmUrlDecode=_crmUrlDecode;this.CrmNameValueDecode=_crmNameValueDecode}var CrmEncodeDecode=new CrmEncodeDecodeLibrary;function _HtmlEncode(strInput){var c,HtmlEncode="",buffer="",bufferLength=500,count=0;if(strInput==null)return null;if(strInput=="")return "";for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c==32||c>47&&c<58||c==46||c==44||c==45||c==95)buffer+=String.fromCharCode(c);else buffer+="&#"+c+";";if(++count==bufferLength){HtmlEncode+=buffer;buffer="";count=0}}if(buffer.length)HtmlEncode+=buffer;return HtmlEncode}function _HtmlAttributeEncode(strInput){var c,HtmlAttributeEncode="";if(strInput==null)return null;if(strInput=="")return "";for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c>47&&c<58||c==46||c==44||c==45||c==95)HtmlAttributeEncode=HtmlAttributeEncode+String.fromCharCode(c);else HtmlAttributeEncode=HtmlAttributeEncode+"&#"+c+";"}return HtmlAttributeEncode}function _XmlEncode(strInput){return _HtmlEncode(strInput)}function _XmlAttributeEncode(strInput){return _HtmlAttributeEncode(strInput)}function _JavaScriptEncode(strInput){var c,EncodeJs="";if(strInput==null)return null;if(strInput=="")return "";for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c==32||c>47&&c<58||c==46||c==44||c==45||c==95)EncodeJs=EncodeJs+String.fromCharCode(c);else if(c>127)EncodeJs=EncodeJs+"\\u"+OutputEncoder_TwoByteHex(c);else EncodeJs=EncodeJs+"\\x"+OutputEncoder_SingleByteHex(c)}return "'"+EncodeJs+"'"}function _VisualBasicScriptEncode(strInput){var c,EncodeVbs="",bInQuotes=false;if(strInput==null)return null;if(strInput=="")return "";for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c==32||c>47&&c<58||c==46||c==44||c==45||c==95){if(!bInQuotes){EncodeVbs=EncodeVbs+'&"';bInQuotes=true}EncodeVbs=EncodeVbs+String.fromCharCode(c)}else{if(bInQuotes){EncodeVbs=EncodeVbs+'"';bInQuotes=false}EncodeVbs=EncodeVbs+"&chrw("+c+")"}}if(EncodeVbs.charAt(0)=="&")EncodeVbs=EncodeVbs.substring(1);if(EncodeVbs.length==0)EncodeVbs='""';if(bInQuotes)EncodeVbs=EncodeVbs+'"';return EncodeVbs}function _UrlEncode(strInput){var c,EncodeUrl="";if(strInput==null)return null;if(strInput=="")return "";for(var cnt=0;cnt<strInput.length;cnt++){c=strInput.charCodeAt(cnt);if(c>96&&c<123||c>64&&c<91||c>47&&c<58||c==46||c==45||c==95)EncodeUrl=EncodeUrl+String.fromCharCode(c);else if(c>127)EncodeUrl=EncodeUrl+"%u"+OutputEncoder_TwoByteHex(c);else EncodeUrl=EncodeUrl+"%"+OutputEncoder_SingleByteHex(c)}return EncodeUrl}function OutputEncoder_SingleByteHex(charC){if(charC==null)return "";for(var SingleByteHex=charC.toString(16),cnt=SingleByteHex.length;cnt<2;cnt++)SingleByteHex="0"+SingleByteHex;return SingleByteHex}function OutputEncoder_TwoByteHex(charC){if(charC==null)return "";for(var TwoByteHex=charC.toString(16),cnt=TwoByteHex.length;cnt<4;cnt++)TwoByteHex="0"+TwoByteHex;return TwoByteHex}function AntiXss(){this.HtmlEncode=_HtmlEncode;this.HtmlAttributeEncode=_HtmlAttributeEncode;this.XmlEncode=_XmlEncode;this.XmlAttributeEncode=_XmlAttributeEncode;this.JavaScriptEncode=_JavaScriptEncode;this.VisualBasicScriptEncode=_VisualBasicScriptEncode;this.UrlEncode=_UrlEncode}var AntiXssLibrary=new AntiXss;function RemoteCommand(sObject,sCommand,sUrlBase){this.Command=sCommand;this.GetParameter=getParameter;this.ErrorHandler=RemoteCommandDefaultErrorHandler;this.Reference=null;this.Aborted=false;this.IgnoreCurrentSolutionContext=false;var sXmlDocumentStart="",sXmlDocumentEnd="",oXmlHttp=CreateXmlHttp(),aParameters=[],sCommandNamespace=_sWebServicesNamespace;if(IsNull(sUrlBase))sUrlBase="/AppWebServices/";var sUrl=Mscrm.CrmUri.create(sUrlBase+sObject+".asmx").toString();sXmlDocumentStart+='<?xml version="1.0" encoding="utf-8" ?>';sXmlDocumentStart+='<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">';sXmlDocumentStart+="<soap:Body>";sXmlDocumentStart+="<"+CrmEncodeDecode.CrmXmlEncode(sCommand)+' xmlns="'+sCommandNamespace+'">';sXmlDocumentEnd+="</"+CrmEncodeDecode.CrmXmlEncode(sCommand)+">";sXmlDocumentEnd+="</soap:Body>";sXmlDocumentEnd+="</soap:Envelope>";this.Execute=execute;this.SetParameter=setParameter;this.SetXmlParameter=setXmlParameter;this.Abort=abort;function getParameter(sName){var i=aParameters[sName];if(!IsNull(i))return aParameters[i];return null}function setParameter(sName,oValue){var sValue;if(IsNull(oValue))sValue="";else if(isArray(oValue)){var sType=oValue.type;if(IsNull(sType)&&oValue.length>0)sType="object";sValue="";for(var i=0;i<oValue.length;i++)sValue+="<"+CrmEncodeDecode.CrmXmlEncode(sType)+">"+CrmEncodeDecode.CrmXmlEncode(oValue[i])+"</"+CrmEncodeDecode.CrmXmlEncode(sType)+">"}else sValue=CrmEncodeDecode.CrmXmlEncode(oValue);var oParameter=new CommandParameter(sName,sValue);pushCommandParameter(oParameter)}function setXmlParameter(sName,sXmlValue){var oParameter=new CommandParameter(sName,IsNull(sXmlValue)?"":sXmlValue);pushCommandParameter(oParameter)}function pushCommandParameter(oParameter){if(!IsNull(aParameters[oParameter.Name]))aParameters[aParameters[oParameter.Name]]=oParameter;else{aParameters[oParameter.Name]=aParameters.length;aParameters.push(oParameter)}}function abort(){this.Aborted=true;oXmlHttp.abort()}function execute(funAsyncCallbackFunction){var sXmlDocument=sXmlDocumentStart;oXmlHttp.readyState>0&&oXmlHttp.readyState<4&&abort();for(var i=0;i<aParameters.length;i++)sXmlDocument+=aParameters[i].GetXml();sXmlDocument+=sXmlDocumentEnd;var async=!IsNull(funAsyncCallbackFunction);if(async){var oAsyncResultHandler=new AsyncResultHandler(this,oXmlHttp,funAsyncCallbackFunction);oXmlHttp.onreadystatechange=oAsyncResultHandler.ReadyStateChanged}var bTryAgain,remoteCmdResult=null;do{bTryAgain=false;oXmlHttp.open("POST",sUrl,async);oXmlHttp.setRequestHeader("SOAPAction",sCommandNamespace+"/"+sCommand);oXmlHttp.setRequestHeader("Content-Type","text/xml; charset=utf-8");oXmlHttp.setRequestHeader("Content-Length",sXmlDocument.length);SetTokenInHeader(oXmlHttp,Mscrm.CrmUri.create(sUrl));!this.IgnoreCurrentSolutionContext&&Mscrm.SolutionDecorater.setSolutionIdInRequestHeader(oXmlHttp);try{oXmlHttp.send(sXmlDocument);if(!async){remoteCmdResult=new RemoteCommandResult(this,oXmlHttp,false);if(remoteCmdResult.Success==false)bTryAgain=remoteCmdResult.Retry}}catch(e){var sErrorText=LOCID_REMOTECOMMAND_ERROR;bTryAgain=window.confirm(sErrorText)}if(bTryAgain)oXmlHttp=CreateXmlHttp()}while(bTryAgain);if(!async)return remoteCmdResult}}function RemoteCommandDefaultErrorHandler(sHResult,oXmlNode){if(sHResult==null)sHResult="Not available";var sErrMessage="";if(oXmlNode!=null){var oDescription=oXmlNode.selectSingleNode("error/description");if(!IsNull(oDescription))sErrMessage=oDescription.text}var errInfo=Mscrm.ErrorInformation.createFromDoc(oXmlNode);openErrorDlg(sHResult,sErrMessage,errInfo)}function AsyncResultHandler(oRemoteCommand,oXmlHttp,functionCallback){this.ReadyStateChanged=readyStateChanged;function readyStateChanged(){if(oXmlHttp.readyState==4)if(oXmlHttp.status!=0){var result=new RemoteCommandResult(oRemoteCommand,oXmlHttp,true);functionCallback(result,oRemoteCommand);oXmlHttp.abort()}}}function CommandParameter(sName,sValue){this.Name=sName;this.Value=sValue;this.GetXml=getParameterXml;function getParameterXml(){var sXml="<"+CrmEncodeDecode.CrmXmlEncode(this.Name)+">";sXml+=this.Value;sXml+="</"+CrmEncodeDecode.CrmXmlEncode(this.Name)+">";return sXml}}function RemoteCommandResult(oRemoteCommand,oXmlHttp,bIsAsync){var sCommand=oRemoteCommand.Command,oXml=oXmlHttp.responseXML,sNamespace="";if(oXml.childNodes.length>0)sNamespace=oXml.childNodes[oXml.childNodes.length-1].prefix+":";this.RemoteCommand=oRemoteCommand;this.RawResponse=oXml;this.Xml=oXml.selectSingleNode("/"+sNamespace+"Envelope/"+sNamespace+"Body/"+sCommand+"Response/"+sCommand+"Result");this.ReturnValue=ReadXml(this.Xml);var oResult=handleSoapResponse(oXmlHttp,bIsAsync);this.Success=oResult.Success;this.Retry=oResult.Retry;this.ConvertToObject=ReadXml;function handleSoapResponse(oXmlHttp,bAsyncRequest){var sHResult=null,oXmlNode=null,oErrorNode,bSuccess=true,oXml=oXmlHttp.responseXML,sNamespace="";if(oXml.childNodes.length>0)sNamespace=oXml.childNodes[oXml.childNodes.length-1].prefix+":";if(oXml.parseError.errorCode!=0){sHResult="XmlParseError";bSuccess=false}else if(oXmlHttp.status==401){sHResult="0x80040277";bSuccess=false}else if(oXmlHttp.status!=200){oXmlNode=oXml.selectSingleNode("/"+sNamespace+"Envelope/"+sNamespace+"Body/"+sNamespace+"Fault");if(oXmlNode){oErrorNode=oXmlNode.selectSingleNode("error/code");if(!IsNull(oErrorNode))sHResult=oErrorNode.text;else{oErrorNode=oXmlNode.selectSingleNode("detail/error/code");if(!IsNull(oErrorNode))sHResult=oErrorNode.text}}else sHResult="ServerError";bSuccess=false}if(bSuccess){oXmlNode=oXml.selectSingleNode("/"+sNamespace+"Envelope/"+sNamespace+"Body/"+sCommand+"Response");if(IsNull(oXmlNode)){sHResult="SoapError";bSuccess=false}}if(!bSuccess){var bRetry=false;if(sHResult==ERRORCODE_ETM){if(!bAsyncRequest)bRetry=window.confirm(LOCID_ERRMSG_ETM_RETRY)}else oRemoteCommand.ErrorHandler&&oRemoteCommand.ErrorHandler(sHResult,oXmlNode)}return {Success:bSuccess,Retry:bRetry}}function ReadXml(oXml){var oReturnValue={};if(IsNull(oXml))return oReturnValue;for(var childNodes=oXml.childNodes,i=0;i<childNodes.length;i++){var oChildNode=childNodes.item(i);switch(oChildNode.nodeType){case 1:var oChildObject=ReadXml(oChildNode);if(IsNull(oReturnValue[oChildNode.baseName]))oReturnValue[oChildNode.baseName]=oChildObject;else{if(!isArray(oReturnValue[oChildNode.baseName])){var property=oReturnValue[oChildNode.baseName];oReturnValue[oChildNode.baseName]=[];oReturnValue[oChildNode.baseName].push(property)}oReturnValue[oChildNode.baseName].push(oChildObject)}break;case 3:return fromString(oChildNode.nodeValue);case 4:return oChildNode.text;default:break}}if(IsNull(oReturnValue.xmlAttributes)){var attributes=oXml.attributes;if(attributes.length>0){oReturnValue.xmlAttributes={};for(var i=0;i<attributes.length;i++)oReturnValue.xmlAttributes[attributes.item(i).baseName]=fromString(attributes.item(i).nodeValue)}}return oReturnValue}function fromString(sValue){if(sValue.toLowerCase()=="true")return true;else if(sValue.toLowerCase()=="false")return false;var intValue=parseInt(sValue,10);if(!isNaN(intValue)&&intValue.toString()==sValue)return intValue;var floatValue=parseFloat(sValue);if(!isNaN(floatValue)&&floatValue.toString()==sValue)return floatValue;var dateValue=new Date(sValue);if(!isNaN(dateValue))return dateValue;return sValue}}function ConvertUserTypeToLike(searchValue){for(var s="",sChar="",iLength=searchValue.length,i=0;i<iLength;i++){sChar=searchValue.charAt(i);switch(sChar){case "%":s+="[%]";break;case "_":s+="[_]";break;case "[":s+="[[]";break;case "*":s+="%";break;default:s+=sChar;break}}return s}function GetNodeValue(input,searchName,bNoDecode){if(!input||!searchName)return "";var rootStart=input.indexOf("<"+searchName+">");if(rootStart==-1){rootStart=input.indexOf("<"+searchName+" ");if(rootStart==-1)return ""}var startIndex=input.indexOf(">",rootStart)+1,endIndex=input.indexOf("</"+searchName+">",startIndex);if(endIndex==-1)return "";else return bNoDecode?input.substring(startIndex,endIndex):CrmEncodeDecode.CrmXmlDecode(input.substring(startIndex,endIndex))}function GetCachedSetting(settingName,defaultValue){if(window.top.oSettingsCache!=null){var stateValue=window.top.oSettingsCache[settingName];if(stateValue!=null)return stateValue}return defaultValue}function SetCachedSetting(settingName,stateValue){if(window.top.oSettingsCache==null)window.top.oSettingsCache={};window.top.oSettingsCache[settingName]=stateValue}function ScrollVerticalList(oContainer,oSelected,iSelectedIndex,iNumItems,bAlignToTop){(oContainer.scrollTop>iSelectedIndex/iNumItems*oContainer.scrollHeight||oContainer.scrollTop+oContainer.clientHeight<(iSelectedIndex+1)/iNumItems*oContainer.scrollHeight)&&oSelected.scrollIntoView(bAlignToTop)}function getNumDigits(iVal){if(isNaN(iVal))return -1;if(iVal==null)return 0;var tempVal=iVal,countDigits=0;while(tempVal!=0){tempVal=tempVal/10;tempVal=parseInt(tempVal,10);countDigits++}return countDigits}function GetEntityIdAndDisplayName(entityData){var resultsXmlDoc=CreateXmlDocument(false),entityId="",displayName="";try{resultsXmlDoc.loadXML(entityData);var entityIdNode=resultsXmlDoc.selectSingleNode("//EntityId"),displayNameNode=resultsXmlDoc.selectSingleNode("//DisplayName");entityId=IsNull(entityIdNode)?"":entityIdNode.text;displayName=IsNull(displayNameNode)?"":displayNameNode.text}catch(e){}return {EntityId:entityId,DisplayName:displayName}}function toBool(sValue){return sValue.toLowerCase()=="true"}function QualifyLeadSuppressDeDup(leadQualifyData){var leadQualifyDataXmlDoc=CreateXmlDocument(false);leadQualifyDataXmlDoc.loadXML(leadQualifyData);var oShowNew=toBool(leadQualifyDataXmlDoc.selectSingleNode("//qlShowNew").text),oCreateAccount=toBool(leadQualifyDataXmlDoc.selectSingleNode("//qlCreateAccount").text),oCreateContact=toBool(leadQualifyDataXmlDoc.selectSingleNode("//qlCreateContact").text),oCreateOpportunity=toBool(leadQualifyDataXmlDoc.selectSingleNode("//qlCreateOpportunity").text),oNewStatus=leadQualifyDataXmlDoc.selectSingleNode("//ulNewStatus").text,oOppCurrencyId=leadQualifyDataXmlDoc.selectSingleNode("//qlOppCurrencyId").text,oOpportunityParentType=leadQualifyDataXmlDoc.selectSingleNode("//qlOpportunityParentType").text,oOpportunityParentId=leadQualifyDataXmlDoc.selectSingleNode("//qlOpportunityParentId").text,oLeadId=leadQualifyDataXmlDoc.selectSingleNode("//qlLeadId").text,ocampaignId=leadQualifyDataXmlDoc.selectSingleNode("//qlCampaignId").text,ocampaignType=leadQualifyDataXmlDoc.selectSingleNode("//qlCampaignType").text,formEntityOtc=parseInt(window.document.all["crmFormSubmitObjectType"].value,10);if(formEntityOtc==Mscrm.EntityTypeCode.CampaignResponse)QualifyLead(oLeadId,oShowNew,oCreateAccount,oCreateContact,oCreateOpportunity,oOpportunityParentType,oOpportunityParentId,true);else formEntityOtc==Mscrm.EntityTypeCode.Lead&&qualifyLead(oShowNew,oCreateAccount,oCreateContact,oCreateOpportunity,oOpportunityParentType,oOpportunityParentId,oOppCurrencyId,oNewStatus,true)}function CheckForDuplicates(iEventType,sRedirectUrl){var dataXml="",success=crmForm.BuildXml(false,false,true),xml=window.document.all["crmFormSubmitXml"];dataXml=xml.value;var oUrl=Mscrm.CrmUri.create("/Tools/DuplicateDetection/ViewDuplicates/ViewDuplicates.aspx?source=1"),oid=window.document.all["crmFormSubmitId"];if(oid&&oid.value&&oid.value!="")oUrl.get_query()["oid"]=oid.value;var dataXmlObj={};dataXmlObj.xml=dataXml;var changedDataXmlObj={};changedDataXmlObj.xml=_changedFormData;var dataXmlArray;if(typeof _dupActionName!="undefined")dataXmlArray=[dataXmlObj,changedDataXmlObj,_dupActionName];else dataXmlArray=[dataXmlObj,changedDataXmlObj];var entityData=openStdDlg(oUrl,dataXmlArray,560,560,false,false);entityData=="QualifyLead"&&QualifyLeadSuppressDeDup(_qualifyLeadData);var entityId="",displayName="",returnValues;if(entityData&&entityData!=""){returnValues=GetEntityIdAndDisplayName(entityData);if(!IsNull(returnValues)){entityId=returnValues.EntityId;displayName=returnValues.DisplayName}}if(entityId&&entityId!=""){crmForm.detachCloseAlert();if(iEventType==2){if(!IsNull(Mscrm.PageManager)&&Mscrm.PageManager.isFlatUIPage()&&!IsNull(Mscrm.PageManager.get_instance())){Mscrm.PageManager.get_instance().executeDeferredActions();return}var oType=window.document.all["crmFormSubmitObjectType"].value;try{if(window.opener.location.href.indexOf("resolve.aspx")>0)window.opener.auto(oType,displayName,entityId);else window.opener.auto(oType)}catch(e){}closeWindow()}else if(iEventType==1){if(!IsNull(Mscrm.PageManager)&&Mscrm.PageManager.isFlatUIPage()&&!IsNull(Mscrm.PageManager.get_instance())){var parameters={};parameters["newId"]=entityId;Mscrm.PageManager.get_instance().executeDeferredActions(parameters);return}var sLocation=location.href,separator=sLocation.indexOf("?")!=-1?"&":"?",poundIndex=-1;if((poundIndex=sLocation.indexOf("#"))!=-1)sLocation=sLocation.substr(0,poundIndex);if(sLocation.indexOf("?id=")==-1&&sLocation.indexOf("&id=")==-1){sLocation=sLocation+separator+"id="+entityId;separator="&"}if(sLocation.indexOf("?refreshgrid=")==-1&&sLocation.indexOf("&refreshgrid=")==-1)sLocation=sLocation+separator+"refreshgrid=1";window.location.href=sLocation}else if(iEventType==59){if(!IsNull(Mscrm.PageManager)&&Mscrm.PageManager.isFlatUIPage()&&!IsNull(Mscrm.PageManager.get_instance())){var parameters={};parameters["newId"]=entityId;Mscrm.PageManager.get_instance().executeDeferredActions(parameters);return}window.location.href=sRedirectUrl}}}function customErrorHandler(ex,iEventType,sUrl){if(ex=="0x80040333"){CheckForDuplicates(iEventType,sUrl);return true}return false}function GenerateAuthenticationHeader(){var xml=new StringBuilder;xml.Append('<soap:Header><CrmAuthenticationToken xmlns="');xml.Append(CrmEncodeDecode.CrmXmlEncode(CRM2007_WEBSERVICE_NS));xml.Append('"><AuthenticationType xmlns="');xml.Append(CrmEncodeDecode.CrmXmlEncode(CRM2007_CORETYPES_NS));xml.Append('">');xml.Append(CrmEncodeDecode.CrmXmlEncode(AUTHENTICATION_TYPE));xml.Append('</AuthenticationType><CrmTicket xmlns="');xml.Append(CrmEncodeDecode.CrmXmlEncode(CRM2007_CORETYPES_NS));xml.Append('"></CrmTicket><OrganizationName xmlns="');xml.Append(CrmEncodeDecode.CrmXmlEncode(CRM2007_CORETYPES_NS));xml.Append('">');xml.Append(CrmEncodeDecode.CrmXmlEncode(ORG_UNIQUE_NAME));xml.Append('</OrganizationName><CallerId xmlns="');xml.Append(CrmEncodeDecode.CrmXmlEncode(CRM2007_CORETYPES_NS));xml.Append('">00000000-0000-0000-0000-000000000000</CallerId></CrmAuthenticationToken></soap:Header>');return xml.ToString()}function escapeSingleQuotesAndBackSlashes(s){s=s.replace(/\\/g,"\\\\");return s.replace(/'/g,"\\'")}function FormatDateTime(dDateTime){var DATE_SEPARATOR="-",DATETIME_SEPARATOR="T",TIME_SEPARATOR=":",oBuilder=new StringBuilder;oBuilder.Append(dDateTime.getFullYear());oBuilder.Append(DATE_SEPARATOR);oBuilder.Append(PadNumber(dDateTime.getMonth()+1));oBuilder.Append(DATE_SEPARATOR);oBuilder.Append(PadNumber(dDateTime.getDate()));oBuilder.Append(DATETIME_SEPARATOR);oBuilder.Append(PadNumber(dDateTime.getHours()));oBuilder.Append(TIME_SEPARATOR);oBuilder.Append(PadNumber(dDateTime.getMinutes()));oBuilder.Append(TIME_SEPARATOR);oBuilder.Append(PadNumber(dDateTime.getSeconds()));return oBuilder.ToString()}function PadNumber(iNumber,iLength){var PAD_CHAR="0",DEFAULT_LENGTH=2;if(iLength==null)iLength=DEFAULT_LENGTH;for(var sNumber=new String(iNumber),oBuilder=new StringBuilder,i=0;i<iLength-sNumber.length;i++)oBuilder.Append(PAD_CHAR);oBuilder.Append(sNumber);return oBuilder.ToString()}function isControlVisible(oElement){var bVisible=true;while(oElement){if(oElement.style.display==="none"){bVisible=false;break}oElement=oElement.parentElement}return bVisible}
