FileDialogOptions.prototype.toString = function() { return "FileDialogOptions" }
function FileDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;
    
    var oPath = this.Add();
    oPath.Name = "Path";
    oPath.Value = "";	
    
    var oListType = this.Add();
    oListType.Name = "ListType";
    oListType.Value = "";
    
    var oReturn = this.Add();
    oReturn.Name = "Return";
    oReturn.Value = "";
    
    this.Path	= function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "Path", true).Value;
        } else {
            // Set Value
            this.Find("Name", "Path", true).Value = Val;
            return true;
        }
    }
    
    this.ListType	= function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ListType", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ListType", true).Value = Val;
            return true;
        }
    }
    
    this.Return = function(Val) { 
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "Return", true).Value;
        } else {
            // Set Value
            this.Find("Name", "Return", true).Value = Val;
            return true;
        }

    }
}


GroupInformationDialogOptions.prototype.toString =  function() { return "GroupInformationDialogOptions" }
function GroupInformationDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;
    
    var oGroupID = this.Add();
    oGroupID.Name = "ID";
    oGroupID.Value = "";
    
    this.GroupID = function(Val) { 
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ID", true).Value = Val;
            return true;
        }
    }
}



GroupMembershipDialogOptions.prototype.toString =  function() { return "GroupMembershipDialogOptions" }
function GroupMembershipDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;
    
    var oParentID = this.Add();
    oParentID.Name = "ParentID";
    oParentID.Value = "";
    
    var oChildID = this.Add();
    oChildID.Name = "ChildID";
    oParentID.Value = "";
    
    this.ParentID = function(Val) { 
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ParentID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ParentID", true).Value = Val;
            return true;
        }
    }
    
    
    this.ChildID = function(Val) { 
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ChildID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ChildID", true).Value = Val;
            return true;
        }
    }
}



MailMergeFilterDialogOptions.prototype.toString =  function() { return "MailMergeFilterDialogOptions" }
function MailMergeFilterDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oFilters = this.Add();
    oFilters.Name = "Filters";
    
    this.Filters = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "Filters", true).Value;
        } else {
            // Set Value
            this.Find("Name", "Filters", true).Value = Val;
            return true;
        }
    }
}



UserPermissionCacheDialogOptions.prototype.toString =  function() { return "UserPermissionCacheDialogOptions" }
function UserPermissionCacheDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oUserID = this.Add();
    oUserID.Name = "UserID";
    oUserID.Value = "";
    
    this.UserID = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "UserID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "UserID", true).Value = Val;
            return true;
        }
    }
}



UserInformationDialogOptions.prototype.toString =  function() { return "UserInformationDialogOptions" }
function UserInformationDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "550";
    this.DialogWidth    = "650";
    this.DialogURL      = "/Interfaces/Security/UserInformation.asp";
    this.DialogModal    = true;

    this.ShowDetails        = true;
    this.ShowInformation    = true;
    this.ShowSettings       = true;
    this.ShowPrivate        = true;
    this.ShowDefaultGroup   = true;
    
    this.ShowID             = true;
    
    this.UserID = null;	
}



DatabaseInformationDialogOptions.prototype.toString =  function() { return "DatabaseInformationDialogOptions" }
function DatabaseInformationDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oDatabaseID = this.Add();
    oDatabaseID.Name = "DatabaseID";
    oDatabaseID.Value = "";
    
    this.DatabaseID = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "DatabaseID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "DatabaseID", true).Value = Val;
            return true;
        }
    }	
}


AddinInformationDialogOptions.prototype.toString =  function() { return "AddinInformationDialogOptions" }
function AddinInformationDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oAddinID = this.Add();
    oAddinID.Name = "AddinID";
    oAddinID.Value = "";
    
    this.AddinID = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "AddinID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "AddinID", true).Value = Val;
            return true;
        }
    }	
}


FormInformationDialogOptions.prototype.toString =  function() { return "FormInformationDialogOptions" }
function FormInformationDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oFormID = this.Add();
    oFormID.Name = "FormID";
    oFormID.Value = "";
    
    this.FormID = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "FormID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "FormID", true).Value = Val;
            return true;
        }
    }	
}





ReportInformationDialogOptions.prototype.toString =  function() { return "ReportInformationDialogOptions" }
function ReportInformationDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oReportID = this.Add();
    oReportID.Name = "ReportID";
    oReportID.Value = "";
    
    this.ReportID = function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ReportID", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ReportID", true).Value = Val;
            return true;
        }
    }	
}

ActivityAttendeesDialogOptions.prototype.toString =  function() { return "ActivityAttendeesDialogOptions" }
function ActivityAttendeesDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;

    var oID = this.Add();
    oID.Name = "ID";
    oID.Value = "";
    
    var oContactsName = this.Add();
    oContactsName.Name = "ContactsName";
    oContactsName.Value = new Array(0);
    
    var oContactsEmail = this.Add();
    oContactsEmail.Name = "ContactsEmail";
    oContactsEmail.Value = new Array(0);
    
    var oUsersName = this.Add();
    oUsersName.Name = "UsersName";
    oUsersName.Value = new Array(0);
    
    var oUsersEmail = this.Add();
    oUsersEmail.Name = "UsersEmail";
    oUsersEmail.Value = new Array(0);
    
    this.ID = oID.Value;
    this.ContactsName = oContactsName.Value;
    this.ContactsEmail = oContactsName.Value;
    this.UsersName = oUsersName.Value;
    this.UsersEmail = oUsersEmail.Value;
    
    
}



UserFileBrowserDialogOptions.prototype.toString =  function() { return "UserFileBrowserDialogOptions" }
function UserFileBrowserDialogOptions() {
    Object.Inherits(this, Collection);
    this.DefaultCollectionObject = CTWebParameter;
    
    var oPath = this.Add();
    oPath.Name = "Path";
    oPath.Value = "";
    
    var oListType = this.Add();
    oListType.Name = "ListType";
    oListType.Value = "";
    
    var oReturn = this.Add();
    oReturn.Name = "Return";
    oReturn.Value = "";
    
    this.Path	= function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "Path", true).Value;
        } else {
            // Set Value
            this.Find("Name", "Path", true).Value = Val;
            return true;
        }
    }
    
    this.ListType	= function(Val) {
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "ListType", true).Value;
        } else {
            // Set Value
            this.Find("Name", "ListType", true).Value = Val;
            return true;
        }
    }
    
    this.Return = function(Val) { 
        if (Val == undefined) {
            // Get Value
            return this.Find("Name", "Return", true).Value;
        } else {
            // Set Value
            this.Find("Name", "Return", true).Value = Val;
            return true;
        }

    }
}


ServicesWizardDialogOptions.prototype.toString =  function() { return "ServicesWizardDialogOptions" }
function ServicesWizardDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "700";
    this.DialogWidth    = "900";
    this.DialogURL      = "/CTWebServices/ServicesWizard/WebServiceWizard_Frameset.html";
    this.DialogModal    = true;

    this.Service            = null;         // Job Specified
    this.ServiceRequestID   = null;         // For resuming previous jobs
    this.DataSource         = null;         // Starting Data Source
}

StandardSingleColumnChartDialogOptions.prototype.toString = function() { return "StandardSingleColumnChartDialogOptions"}
function StandardSingleColumnChartDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
                
    this.DialogHeight   = "600";
    this.DialogWidth    = "800";
    this.DialogURL      = "/CTWebReports/dialog_StandardSingleColumnChart.asp";
    this.DialogModal    = true;

    this.Logo           = null;
    this.Caption        = null;
    this.SubCaption     = null;
    this.YMax           = null;
    this.Suffix         = null;
    
    this.ColumnNames    = new Array(0);            // eg Jan, Feb, March    
    this.Values         = new Array(0);             // 1, 2, 3
}

UserfieldDefinitionValuesOptions.prototype.toString = function() { return "UserfieldDefinitionValuesOptions"; }
function UserfieldDefinitionValuesOptions()
{
    Object.Inherits(this, ApplicationDialog);
    this.DialogHeight   = "150";
    this.DialogWidth    = "300";
    this.DialogURL      = "/UserFieldUI_AddValue.asp";
    this.DialogModel    = true;
}

EulaDialogOptions.prototype.toString =  function() { return "EulaDialogOptions" }
function EulaDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "590";
    this.DialogWidth    = "560";
    this.DialogURL      = "/Interfaces/Login/login_eula.asp";
    this.DialogModal    = true;
}

EmailSyncDialogOptions.prototype.toString =  function() { return "EmailSyncDialogOptions" }
function EmailSyncDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.CurrentCompanyID = "";
    this.CurrentContactID = "";
    this.DialogHeight     = "460";
    this.DialogWidth      = "750";
    this.DialogURL =    "/Interfaces/Login/login_eula.asp";
    this.DialogModal      = true;
}

MergeCodeValueDialogOptions.prototype.toString =  function() { return "MergeCodeValueDialogOptions" }
function MergeCodeValueDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "160";
    this.DialogWidth    = "280";
    this.DialogURL      = "/MergeCodeValueInterface.asp";
    this.DialogModal    = true;
    
    this.Value          = null;
    this.ValueType      = 'Static';        // Static or Variable     
}


MailMergeTemplateManagementDialogOptions.prototype.toString =  function() { return "MailMergeTemplateManagementDialogOptions" }
function MailMergeTemplateManagementDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "550";
    this.DialogWidth    = "800";
    this.DialogURL      = "/MailMergeTemplateManagementInterface.asp";
    this.DialogModal    = true;
}



MailMergeTemplateDialogOptions.prototype.toString =  function() { return "MailMergeTemplateDialogOptions" }
function MailMergeTemplateDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "280";
    this.DialogWidth    = "380";
    this.DialogURL      = "/MailMergeTemplateInterface.asp";
    this.DialogModal    = true;
    
    this.TemplateID     = null; 
}

ProspectListCustomDateRange.prototype.toString =  function() { return "ProspectListCustomDateRange" }
function ProspectListCustomDateRange() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "200";
    this.DialogWidth    = "300";
    this.DialogURL      = "/CTWebAddins/addin_ProspectFormDateWindow.asp";
    this.DialogModal    = true;
    
    this.StartDate      = "";
    this.EndDate        = "";
    this.Cancelled      = false;
}


SMSTemplateManagementDialogOptions.prototype.toString =  function() { return "SMSTemplateManagementDialogOptions" }
function SMSTemplateManagementDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "550";
    this.DialogWidth    = "800";
    this.DialogURL      = "/SMSTemplateManagementInterface.asp";
    this.DialogModal    = true;
    this.BelongsTo      = null;
    this.FieldID        = null;
}


EmailTemplateManagementDialogOptions.prototype.toString =  function() { return "EmailTemplateManagementDialogOptions" }
function EmailTemplateManagementDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "550";
    this.DialogWidth    = "800";
    this.DialogURL      = "/EmailTemplateManagementInterface.asp";
    this.DialogModal    = true;
}


EmailTemplateDialogOptions.prototype.toString =  function() { return "EmailTemplateDialogOptions" }
function EmailTemplateDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "280";
    this.DialogWidth    = "380";
    this.DialogURL      = "/EmailTemplateInterface.asp";
    this.DialogModal    = true;
    
    this.TemplateID     = null; 
}


FieldOptionsDialogOptions.prototype.toString =  function() { return "FieldOptionsDialogOptions" }
function FieldOptionsDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "180";
    this.DialogWidth    = "320";
    this.DialogURL      = "/FieldOptionsInterface.asp";
    this.DialogModal    = true;

    this.BelongsTo      = '';
    this.FieldID        = ''; 
}


FieldListOptionsDialogOptions.prototype.toString =  function() { return "FieldListOptionsDialogOptions" }
function FieldListOptionsDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "330";
    this.DialogWidth    = "320";
    this.DialogURL      = "/FieldListInterface.asp";
    this.DialogModal    = true;

    this.BelongsTo      = '';
    this.FieldID        = ''; 
}


AddressSearchDialogOptions.prototype.toString =  function() { return "AddressSearchDialogOptions" }
AddressSearchDialogOptions.Modes = {
                                        Simple : 'SIMPLE',
                                        Extended : 'EXTENDED'
                                    }

function AddressSearchDialogOptions(Mode) 
{
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "390";
    this.DialogWidth    = "440";
    this.DialogURL      = "/AddressSearchInterface.asp";
    this.DialogModal    = true;

    this.Mode           = (Mode != undefined && Mode == AddressSearchDialogOptions.Modes.Extended) ? AddressSearchDialogOptions.Modes.Extended : AddressSearchDialogOptions.Modes.Simple;

    // Simple Mode <Input / Output>        
    this.City           = '';
    this.State          = '';
    this.Postcode       = '';
    this.Country        = '';  
    
    // Extended Mode <Input>
    this.Postcode       = null;
    
    // Extended Mode <Output>
    this.BuildingName           = '';
    this.SubBuildingName        = '';
    this.Organisation           = '';
    this.OrganisationDepartment = '';  
    this.POBox                  = '';
    this.Postcode               = '';
    this.SortCode               = '';
    this.Country                = '';
    this.State                  = '';
    this.County                 = '';
    this.Town                   = '';
    this.Street                 = '';
    this.Number                 = '';
    this.DeliveryPoints         = '';
    this.NoOfDeliveryPoints     = '';
    this.Category               = '';
}



StateAddressDialogOptions.prototype.toString =  function() { return "StateAddressDialogOptions" }
function StateAddressDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "330";
    this.DialogWidth    = "260";
    this.DialogURL      = "/StateAddressesInterface.asp";
    this.DialogModal    = true;

    this.State          = '';
    this.Country        = ''; 
}


IncludeOverdueRecordsChoiceDialogOptions.prototype.toString =  function() { return "IncludeOverdueRecordsChoiceDialogOptions" }
function IncludeOverdueRecordsChoiceDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "100";
    this.DialogWidth    = "250";
    this.DialogURL      = "/Interfaces/Shared/Dialogs/IncludeOverdueRecordsChoiceDialog.asp";
    this.DialogModal    = true;

    this.IncludeOverdue = true;
    this.IncludePresentAndFuture = true;
}


EditValueDialogOptions.prototype.toString =  function() { return "EditValueDialogOptions" }
function EditValueDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight   = "70";
    this.DialogWidth    = "320";
    this.DialogURL      = "/EditValueDialog.asp";
    this.DialogModal    = true;

    this.Value = null;
    this.DataType = 'string';    
}

function ContactGroupManagementDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "340";
    this.DialogWidth    = "330";
    this.DialogURL      = "/GroupDefinitionsManagementInterface.asp";
    this.DialogModal    = true;
}


function EditContactGroupDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "170";
    this.DialogWidth    = "280";
    this.DialogURL      = "/GroupDefinitionInterface.asp";
    this.DialogModal    = true;
 
    this.GroupID        = null;
}

SMSTieredConfigDialogOptions.prototype.toString =  function() { return "SMSTieredConfigDialogOptions" }
function SMSTieredConfigDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "150";
    this.DialogWidth    = "300";
    this.DialogURL      = "/Interfaces/WebPortal/SMS/SMSConfigurationPopup.asp";
    this.DialogModal    = true;

    this.MinValue       = 0;
    this.MaxValue       = 0;
    this.UserName       = "";
    this.UserID         = "";
    
    this.ButtonCaption  = "Add";    
}


ProspectListViewSettingsDialogOptions.prototype.toString =  function() { return "ProspectListViewSettingsDialogOptions" }
function ProspectListViewSettingsDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "200";
    this.DialogWidth    = "400";
    this.DialogURL      = "/Interfaces/Shared/Management Dialogs/ProspectListViews_SettingsDialog.asp";
    this.DialogModal    = true;
}


ServicesSettingsDialogOptions.prototype.toString =  function() { return "ServicesSettingsDialogOptions" }
function ServicesSettingsDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "250";
    this.DialogWidth    = "350";
    this.DialogURL      = "/Interfaces/Shared/Management Dialogs/Services_SettingsDialog.asp";
    this.DialogModal    = true;
}

CurrentSelectionOrCurrentContactDialogOptions.prototype.toString =  function() { return "CurrentSelectionOrCurrentContactDialog" }
function CurrentSelectionOrCurrentContactDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "150";
    this.DialogWidth    = "300";
    this.DialogURL      = "/CurrentSelectionOrCurrentContactDialog.asp";
    this.DialogModal    = true;

    this.SelectionOrCurrentRecordOnly = false;

    this.CurrentSelection   = true;
    this.AllContacts        = true;
}


AddContactsToGroupDialogOptions.prototype.toString =  function() { return "AddContactsToGroupDialogOptions" }
function AddContactsToGroupDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "150";
    this.DialogWidth    = "300";
    this.DialogURL      = "/AddContactsToGroupDialog.asp";
    this.DialogModal    = true;
    
    this.SelectionType  = null;
    this.SelectionID    = null;
    this.SelectionDescription = null;
    
    this.CompanyID      = null;
    this.ContactID      = null;    
}


GroupAndUserListDialogOptions.prototype.toString =  function() { return "GroupAndUserListDialogOptions" }
function GroupAndUserListDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "470";
    this.DialogWidth    = "420";
    this.DialogURL      = "/GroupAndUserListDialog.asp";
    this.DialogModal    = true;
    
    this.ShowGroups     = true;
    this.ShowUsers      = true;
    
    this.GroupFields    = 'GroupName, FullName';
    this.UserFields     = 'Username, FullName';
    
    this.GroupRestrictions = null;
    this.UserRestrictions  = null;
    
    this.GroupPermissions    = new __GroupPermissionsRestriction();                   
    this.UserPermissions     = new __UserPermissionsRestriction();
    
    this.GroupOrderBy      = 'GroupName';
    this.UserOrderBy       = 'Username';
    
    this.EntityType     = null;
    this.EntityID       = null;         
    this.Values         = new Array(0);   
}


SettingsCopyDialogOptions.prototype.toString =  function() { return "SettingsCopyDialogOptions" }
function SettingsCopyDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "170";
    this.DialogWidth    = "420";
    this.DialogURL      = "/SettingsCopyDialog.asp";
    this.DialogModal    = true;

    this.Key1           = null;
    this.Key2           = null;
    this.Key3           = null;
    this.Key4           = null;
    this.Key5           = null;        
}

SMSEditTemplateDialogOptions.prototype.toString = function() { return "SMSEditTemplateDialogOptions"; }
function SMSEditTemplateDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth    = "700";
    this.DialogHeight   = "520";    
    this.DialogURL      = "/SMSEditTemplateDialog.asp";
    this.DialogModal    = true;
    
    this.TemplateID     = "";
    this.TemplateText   = "";
    this.EntityID       = "";
    this.EntityType     = "";
    this.HasChanged     = false;
}

DriverIDScanSaveContactDialogOptions.prototype.toString = function() { return "DriverIDScanSaveContactDialogOptions"; }
function DriverIDScanSaveContactDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth    = "750";
    this.DialogHeight   = "450";    
    this.DialogURL      = "/CTWebAddins/DriverIDScan/DriverIDScanSaveContact.asp";
    this.DialogModal    = true;
    
    this.FirstName      = "";
    this.MiddleName     = "";
    this.LastName       = "";
    this.LicenceNumber  = "";
    this.Address1       = "";
    this.Address2       = "";
    this.City           = "";
    this.State          = "";
    this.Postcode       = "";
    this.Country        = "";
    this.LicenceType    = "";
    this.Birthdate      = "";
    
    this.LicenceImagePath     = "";
    this.LicenceFaceImagePath = "";
    
    this.UploadImageCallback = null;
}



AutomotiveQuickPickInterfaceDialogOptions.prototype.toString = function() { return "AutomotiveQuickPickInterfaceDialogOptions"; }
function AutomotiveQuickPickInterfaceDialogOptions() {
    /// <field name="ID" type="String">ID of the quick pick (if it is saved), specifying an id will load the quick pick</field>
    /// <field name="Tables" type="Object" />
    /// <field name="Restrictions" type="Object" />
    /// <field name="Fields" type="Object" />
    /// <field name="Ordering" type="Object" />
    
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth      = "920";
    this.DialogHeight     = "768";
    
    this.DialogURL        = "/Interfaces/Portal/QuickPick/QuickPick_Automotive.asp";
    this.DialogModal      = true;

    // Input
    this.ID = null;    
    
    // Output
    this.Tables           = null;
    this.Restrictions     = null;
    this.Fields           = null;
    this.Ordering         = null;
}


QuickPickOptionsDialogOptions.prototype.toString = function() { return "QuickPickOptionsDialogOptions"; }
function QuickPickOptionsDialogOptions() {
    /// <field name="Description" type="String">Name for the quick pick</field>
    /// <field name="Name" type="String">Description for the quick pick</field>
    /// <field name="ID" type="String">ID of the Quick Pick to save to (leave null to create a new one)</field>
    
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "125";
    this.DialogWidth = "320";
    this.DialogURL = "/Interfaces/Portal/QuickPick/QuickPickOptionsDialog.asp";
    this.DialogModal = true;

    this.ID = null;     

    this.Name = null;   
    this.Description = null;    
}


QuickPickManagerDialogOptions.prototype.toString = function() { return "QuickPickManagerDialogOptions"; }
function QuickPickManagerDialogOptions() {
    /// <field name="Action" type="String">Action selected by the dialog (such as 'EDIT')</field>
    /// <field name="ID" type="String">ID of the selected quick pick to perform an action on</field>
    
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "250";
    this.DialogWidth = "320";
    this.DialogURL = "/Interfaces/Portal/QuickPick/QuickPickManagerDialog.asp";
    this.DialogModal = true;

    this.Action = null;
    this.ID = null;
}



QuickPickInterfaceDialogOptions.prototype.toString = function() { return "QuickPickInterfaceDialogOptions"; }
function QuickPickInterfaceDialogOptions() {
    /// <field name="ConfigurationID" type="String">ID of the quick pick (if it is saved), specifying an id will automatically load the quick pick</field>
    /// <field name="InterfaceCategory" type="String">Required for determing which quick pick configurations and templates to load</field>
    /// <field name="DialogResult" type="String">Set when the dialog is closed, possible values are (CLOSE,GENERATE, null)</field>

    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth = "1024";
    this.DialogHeight = "768";

    this.DialogURL = "/Interfaces/Shared/QuickPick/QuickPickEditor.aspx";
    this.DialogModal = true;

    this.ConfigurationID = null;
    this.InterfaceCategory = null;

    this.HideCreateNew = true;      // Hides the option to hide the create new checkbox
    this.CreateNew = null;          // The checked state of the 'create new' checkbox

    this.DialogResult = null;

    this.Get_DialogURL = function() { return this.DialogURL + "?InterfaceCategory=" + this.InterfaceCategory + (this.ConfigurationID != null ? "&ConfigurationId=" + this.ConfigurationID : ""); };
}

BulkOperationDialogOptions.prototype.toString = function() { return "BulkOperationDialogOptions"; }
function BulkOperationDialogOptions()
{
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth      = "300";
    this.DialogHeight     = "150";
    
    this.DialogURL        = "/Interfaces/Shared/Dialogs/BulkOperationDialog.asp";
    this.DialogModal      = true;
    
    this.DataSource       = new CTWebParameter("DataSourceRequest");
    
    this.Operations       = new CTWebParameter("Operations");           
    
    this.Async            = true;
    this.ContinueOnError  = true;
    
    this.Completed        = 0;
    this.Failed           = 0;
    
    this.ReturnXML        = null;
}


DataSecurityDialogOptions.prototype.toString = function() { return "DataSecurityDialogOptions"; }
function DataSecurityDialogOptions()
{
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth      = "300";
    this.DialogHeight     = "200";
    
    this.DialogURL        = "/Interfaces/Shared/Dialogs/DataSecurityDialog.asp";
    this.DialogModal      = true;
    
    this.SetPrivate       = null;
    this.SetOwner         = null;
    this.SetGroup         = null;
    
    this.ContinueOnError  = true;
    
    this.ReturnXML        = null;
}


MailMergeTemplateSelectionDialogOptions.prototype.toString = function() { return "MailMergeTemplateSelectionDialogOptions"; }
function MailMergeTemplateSelectionDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth      = "300";
    this.DialogHeight     = "350";
    
    this.DialogURL        = "/MailMergeTemplateSelectionDialog.asp";
    this.DialogModal      = true;
    
    this.TemplateName     = "";
    this.TemplateCategory = "";
    this.TemplateID       = "";
}

MailJobStatusMonitorOptions.prototype.toString = function() { return "MailJobStatusMonitorOptions"; }
function MailJobStatusMonitorOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogWidth    = "330";
    this.DialogHeight   = "330";
    
    this.DialogURL      = "/MailJobStatusMonitorOptions.asp";
    this.DialogModal    = true;
    
    this.MailMergeJobID = "";
    this.ProcessID      = "";

    this.Cancelled      = false;
}

ProspectListLeadSourceDialogOptions.prototype.toString = function() { return "ProspectListLeadSourceDialogOptions"; }
function ProspectListLeadSourceDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogWidth  = "300";
    this.DialogHeight = "105";
    
    this.DialogURL    = "/ProspectListLeadSourceDialogOptions.asp";
    this.DialogModal  = true;
        
    this.LeadSource   = "";
}

OpportunityMilestoneEditorDialogOptions.prototype.toString = function() { return ""; }
function OpportunityMilestoneEditorDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogWidth   = "640";
    this.DialogHeight  = "430";
    
    this.DialogURL     = "/OpportunityMilestoneEditorDialog.htm";
    this.DialogModal   = true;
    
    this.OpportunityID = "";
}

SingleSMSDialogOptions.prototype.toString = function() { return "SingleSMSDialogOptions"; }
function SingleSMSDialogOptions() {
    Object.Inherits(this, ApplicationDialog);
    this.Destination    = "";
    this.DialogWidth    = "450";
    this.DialogHeight   = "250";
    
    this.DialogURL      = "/SimpleSMSDialog.asp";
    this.DialogModal    = true;
}


ICEUserMappingDialogOptions.prototype.toString = function() { return "ICEUserMappingDialogOptions"; }
function ICEUserMappingDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogWidth    = "330";
    this.DialogHeight   = "400";
    
    this.DialogURL      = "/Interfaces/Shared/Dialogs/ICEUserMappingDialog.asp";
    this.DialogModal    = true;
}


DataSetViewerDialogOptions.prototype.toString = function() { return "DataSetViewerDialogOptions"; }
function DataSetViewerDialogOptions(dlDataSet) {
    Object.Inherits(this, ApplicationDialog);
    
    // Inputs
    this.DataList       = dlDataSet != undefined ? dlDataSet : null;        
        
    this.DataSource     = null;
    this.RequestAction  = null;
    this.RequestHandler = null;
    this.Library        = null;
    this.Fields         = null;
    this.Restrictions   = null;
    this.GroupBy        = null;
    this.OrderBy        = null;
    this.AutoValidate   = null;
    this.Paged          = false;
    
    this.ReturnSelectedRow = true;
    
    // Not Implemented
    this.AllowSearch    = false;
    this.SearchFields   = null;         // Specify comma delimited list or array of strings
    this.SearchType     = DataSetViewerDialogOptions.SearchTypes.Jump;
    // Not Implemented
    
    this.DialogHeight   = "500";
    this.DialogWidth    = "500";
    
    // Output
    this.SelectedRow    = null;
    
    this.DialogURL      = "/Interfaces/Shared/Dialogs/DataSetViewerDialog.asp";
    this.DialogModal    = true;
}
DataSetViewerDialogOptions.SearchTypes =  { 
                                            Jump : 'JUMP',          // Jumps to the first matching record
                                            Restrict : 'RESTRICT'   // Restricts the data set 
                                            }



UserCommentsDialogOptions.prototype.toString = function() { return "UserCommentsDialogOptions"; }
function UserCommentsDialogOptions() {

    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "330";
    this.DialogWidth = "490";
    this.DialogURL = "/Interfaces/Shared/Dialogs/EmailCommentsDialog.asp";
}


// ****************************************************************************************
// ** HQS Dialogs
// ****************************************************************************************

AccessoryTypeDialogOptions.prototype.toString = function() { return "AccessoryTypeDialogOptions"; }
function AccessoryTypeDialogOptions() {

    Object.Inherits(this, ApplicationDialog);
    
    this.AccessoryType = "";
    this.URL           = "";

    this.DialogHeight = "230";
    this.DialogWidth  = "410";
    this.DialogURL    = "/HQS/Dialogs/AccessoryType.asp";
}

DatabaseProductDialogOptions.prototype.toString = function() { return "DatabaseProductDialogOptions"; }
function DatabaseProductDialogOptions() {

    Object.Inherits(this, ApplicationDialog);
    
    this.AccessoryType = "";
    this.URL           = "";

    this.DialogWidth  = "800";
    this.DialogHeight = "630";    
    this.DialogURL    = "/HQS/Dialogs/DatabaseProduct.asp";
}

FreeFormProductDialogOptions.prototype.toString = function() { return "FreeFormProductDialogOptions"; }
function FreeFormProductDialogOptions() {

    Object.Inherits(this, ApplicationDialog);
    
    this.AccessoryType = "";
    this.URL           = "";

    this.DialogWidth  = "750";
    this.DialogHeight = "330";    
    this.DialogURL    = "/HQS/Dialogs/FreeFormProduct.asp";
}

ColourPackageDialogOptions.prototype.toString = function() { return "ColourPackageDialogOptions"; }
function ColourPackageDialogOptions() {

    Object.Inherits(this, ApplicationDialog);

    this.AccessoryType = "";
    this.URL = "";

    this.DialogWidth = "600";
    this.DialogHeight = "400";
    this.DialogURL = "/HQS/Dialogs/ColourPackageDialog.asp";
}

// ****************************************************************************************

NoteDialogOptions.prototype.toString = function() { return "NoteDialogOptions"; }
function NoteDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "530";
    this.DialogWidth    = "540";
    this.DialogURL      = "/NoteInterface.asp";
    this.DialogModal    = true;    
    
    this.ID             = null; // Specify the id of a note to open
    
    this.EntityTypes    = new Array();  // Specify the available entitytypes a user can choose for a new note
        this.EntityTypes.Add = function(EntityType, EntityID) { this[this.length] = { EntityType : EntityType, EntityID : EntityID} }
}


NotesListDialogOptions.prototype.toString = function() { return "NotesListDialogOptions"; }
function NotesListDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "300";
    this.DialogWidth    = "650";
    this.DialogURL      = "/Interfaces/Shared/Dialogs/NotesListDialog.asp";
    this.DialogModal    = true;    
    
    this.DisplayFields  = "Subject, Text";
}


OpportunityListDialogOptions.prototype.toString = function() { return "OpportunityListDialogOptions"; }
function OpportunityListDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "320";
    this.DialogWidth    = "615";
    this.DialogURL      = "/Interfaces/Shared/Dialogs/OpportunityListDialog.asp";
    this.DialogModal    = true;
        
    // Input
    this.Caption        = '';    
    this.CompanyID      = null;
        
    // Output
    this.OpportunityID      = null;
    this.OpportunityEntryID = null;
}





ActivityRemindersDialogOptions.prototype.toString = function () { return "ActivityRemindersDialogOptions"; }
function ActivityRemindersDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "320";
    this.DialogWidth = "420";
    this.DialogURL = "/Interfaces/Shared/Calendar/Reminders/ActivityReminders.aspx";
    this.DialogModal = true;

    // Input
    this.ClientTime = new Date();
    this.PollingFrequencySeconds = 0;

    this.Get_DialogURL = function () {
        var url = this.DialogURL + "?PollingFrequencySeconds=" + this.PollingFrequencySeconds + "&ClientTime=" + this.ClientTime.Format("yyyy-mm-dd h:nn:ss AMPM");
        return url;
    }
}

ActivityWorkFlowDialogOptions.prototype.toString = function () { return "ActivityWorkFlowDialogOptions"; }
function ActivityWorkFlowDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "360";
    this.DialogWidth = "320";
    this.DialogURL = "/Interfaces/Shared/Dialogs/ActivityWorkFlowDialog.aspx";
    this.DialogModal = true;

    // Input
    this.ActivityID = null;                             // ID of the activity being completed
    this.ForceMilestoneCompletion = false;              // Whether the dialog forces the user to complete the milestone

    // Output
    this.SetMilestoneComplete = false;                  // true/false
    this.SetOpportunityStatus = null;                   // 0/1/2 - null for no change
    this.CreateActivity = false;                        // true/false
    this.FollowupActivityMilestoneDefinitionId = null;  // milestone definition id or null
    this.CloseAllRemainingActivities = false;           // true/false
    this.LostReasonId = null;                           // The lost reason to set on the opportunity
    this.LostReasonComments = null;                     // The lost reason comments to set on the opportunity

    this.Get_DialogURL = function () { return this.DialogURL + "?ActivityId=" + this.ActivityID; } 
}


RelationshipDialogOptions.prototype.toString = function() { return "RelationshipDialogOptions"; }
function RelationshipDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "100";
    this.DialogWidth    = "260";
    this.DialogURL      = "/Interfaces/Shared/Dialogs/RelationshipDialog.asp";
    this.DialogModal    = true;
        
    // Input
    this.RelationshipDefinitionID = null;
    this.RelationshipType=null;
        
    // Output
    this.RelationshipDefinitionID = null;
    this.RelationshipType=null;
    this.Description    = null;
    this.Parent         = null;
}


RelationshipManagerDialogOptions.prototype.toString = function() { return "RelationshipManagerDialogOptions"; }
function RelationshipManagerDialogOptions() 
{
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogHeight   = "300";
    this.DialogWidth    = "600";
    this.DialogURL      = "/Interfaces/Shared/Dialogs/RelationshipManagerDialog.asp";
    this.DialogModal    = true;
        
    // Input
    this.EntityID       = null;
        
    // Output
    this.ChangesMade    = false;
}

// MMAL leads report -- Prospect drill down
MMALMilestoneRatioProspectDrillDownOptions.prototype.toString = function () { return "MMALMilestoneRatioProspectDrillDownOptions"; }
function MMALMilestoneRatioProspectDrillDownOptions(franchiseId, franchiseName, headerControl) {

    if (franchiseId == "" || franchiseId == undefined) throw new Error("The franchiseId supplied is invalid");
    if (franchiseName == "" || franchiseName == undefined) throw new Error("The franchiseName supplied is invalid");

    Object.Inherits(this, ApplicationDialog);

    this.HeaderControl = headerControl;
    this.FranchiseId = franchiseId;
    this.FranchiseName = franchiseName;
    this.DialogHeight = "530";
    this.DialogWidth = "800";
    this.DialogURL = "/CTWebReports/LeadDistribution/MilestoneRatio/ShowProspects.htm";
    this.DialogModal = true;
}

// Honda leads report -- Prospect drill down
HondaMilestoneRatioProspectDrillDownOptions.prototype.toString = function() { return "HondaMilestoneRatioProspectDrillDownOptions"; }
function HondaMilestoneRatioProspectDrillDownOptions(franchiseId, franchiseName, headerControl) {

    if (franchiseId == "" || franchiseId == undefined)    throw new Error("The franchiseId supplied is invalid");
    if (franchiseName == "" || franchiseName == undefined)    throw new Error("The franchiseName supplied is invalid");

    Object.Inherits(this, ApplicationDialog);

    this.HeaderControl = headerControl;
    this.FranchiseId   = franchiseId;
    this.FranchiseName = franchiseName;
    this.DialogHeight  = "530";
    this.DialogWidth   = "800";
    this.DialogURL     = "/CTWebReports/HondaAggregate/MilestoneRatio/ShowProspects.htm";
    this.DialogModal   = true;
}

ExcelExtractDialogOptions.prototype.toString = function() { return "ExcelExtractDialogOptions"; }
function ExcelExtractDialogOptions(strJobID) {
    
    if (strJobID == "" || strJobID == undefined)    throw new Error("The JobID supplied is invalid");
    
    Object.Inherits(this, ApplicationDialog);
    this.JobID        = strJobID;
    this.DialogHeight = "330";
    this.DialogWidth  = "320";
    this.DialogURL    = "/Interfaces/Shared/Dialogs/ExcelExtractDialog.asp";
    this.DialogModal  = true;
    
    this.Cancelled   = false;    
}

DebugDialogOptions.prototype.toString = function() { return "DebugDialogOptions"; }
function DebugDialogOptions(arrDebugMessages) {
    Object.Inherits(this, ApplicationDialog);
    
    this.DialogWidth    = "800";
    this.DialogHeight   = "600";
    
    this.DialogURL      = "/Interfaces/Debug/DebugMessagesDialog.html";
    this.DialogModal    = true;
    
    this.DebugMessages  = new Array(0);
    if (arrDebugMessages != undefined)
    {
        switch (typeof(arrDebugMessages))
        {
            case "object":
                if (Object.ConstructorName(arrDebugMessages) == "Array") this.DebugMessages = arrDebugMessages;
                break;
            case "string":
                this.DebugMessages[0] = arrDebugMessages;
                break;
        }
    }


    this.Cancelled      = false;
    
    this.Show           = DebugDialogOptions_Show;
}
function DebugDialogOptions_Show()
{
    if (ApplicationObjects != null && ApplicationObjects.Interfaces.Debug != undefined && ApplicationObjects.Interfaces.Debug.SuppressMessages == true) return;
    if (this.DebugMessages.length == 0) return;
    
    this.Show =  ApplicationDialog_Show;
    this.Show();
    this.Show =  DebugDialogOptions_Show;
}


function ApplicationDialog(URL, iWidth, iHeight, iLeft, iTop, bCenter, bModal) {
    this.DialogURL    = (URL) ? URL: '';
    this.DialogWidth  = (iWidth != undefined && iWidth.toString().IsNumeric()) ? iWidth.toString().ToInt() : 100;
    this.DialogHeight = (iHeight != undefined && iHeight.toString().IsNumeric()) ? iHeight.toString().ToInt() : 100;
    this.DialogCenter = (bCenter != undefined && bCenter.toString().IsBool()) ? bCenter.toString().ToBool() : true;
    this.DialogModal  = (bModal != undefined && bModal.toString().IsBool()) ? bModal.toString().ToBool() : true;
    this.DialogLeft   = (iLeft != undefined && iLeft.toString().IsNumeric()) ? iLeft.toString().ToInt() : 100;
    this.DialogTop    = (iHeight != undefined && iTop.toString().IsNumeric()) ? iTop.toString().ToInt() : 100;

    this.Cancelled    = true;    
    
    this.Opener       = new Object();
        this.Opener.ApplicationObjects   = window.ApplicationObjects;
        this.Opener.ApplicationEvents    = window.ApplicationEvents;
        this.Opener.ApplicationFunctions = window.ApplicationFunctions;
            
}
ApplicationDialog.prototype.Show        = ApplicationDialog_Show;
ApplicationDialog.prototype.toString = ApplicationDialog_toString;
ApplicationDialog.prototype.Get_DialogURL = ApplicationDialog_Get_DialogURL;


function ApplicationDialog_toString() {
    return '[Application Dialog]';
}

function ApplicationDialog_Get_DialogURL() {
    return this.DialogURL;
}

function ApplicationDialog_Show() {
    // Determine IE Browser Version
    var sBrowser = window.navigator.userAgent;
    var sValid = "MSIE [0-9]\\.[0-9][;]";
    var objRegEx = new RegExp(sValid);         
    var theMatch = sBrowser.match(objRegEx);
    var IEVersion = 7;
    
    if (theMatch != null)
    {
        try
        {
            theMatch = theMatch.toString();
            theMatch = theMatch.replace("MSIE ", "")  ;
            theMatch = theMatch.replace(";", "");
            theMatch = theMatch.substr(0, theMatch.indexOf("."));
        
            IEVersion = theMatch.toString().ToInt();
        }
        catch (ex)
        {
            // Do nothing
        }
    }
    
    
    
    if (this.DialogModal == true) 
    {
        var iHeight  = this.DialogHeight;
        var iWidth   = this.DialogWidth;
    
        if (IEVersion == 6) 
        {
            iHeight += 50;
        }

        
        // prevent caching by adding a time stamp
        var dtNow = new Date();
        var url = this.Get_DialogURL();
        url += (url.indexOf("?") == -1 ? "?" : "&");
        url += "No-Cache=" + dtNow.getTime();

        window.showModalDialog(url, this, "dialogHeight: " + iHeight + "px; dialogWidth: " + iWidth + "px;");
    } else {
        var iTop = (this.Top != undefined && !isNaN(this.Top)) ? this.Top : 0;
        var iTop = (this.Top != undefined && !isNaN(this.Top)) ? this.Top : 0;
        
        // Get screen width / height
        scrW = screen.availwidth; 
        scrH = screen.availheight;

        var yPos = 0;
        var xPos = 0;
        
        if (this.Center == true) {
            // Find the difference between the screen width/height and the
            // page that we're opening
            wDif = scrW - pWidth;
            hDif = scrH - pHeight;
        
            //  Determine the center position for the window
            xPos = wDif / 2;
            yPos = hDif / 2;
        } else {
            // do nothing
        }
        
        
        
        attribs = 'width=' + this.DialogWidth + ', height=' + this.DialogHeight + ', top=' + yPos + ', screenY=' + yPos + ', left=' + xPos + ', screenX=' + xPos + ', resizable=yes, scrollbars=yes, directories=no, status=yes, menubar=no, copyhistory=no'

        var wndNewWindow = window.open(this.DialogURL,'',attribs);
        
        wndNewWindow.ApplicationObjects     = window.ApplicationObjects;
        wndNewWindow.ApplicationEvents      = window.ApplicationEvents;
        wndNewWindow.ApplicationFunctions   = window.ApplicationFunctions;	    	    	    
    }
}


function MelwaysAddressSearchDialogOptions(Mode) {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "390";
    this.DialogWidth = "490";
    this.DialogURL = "/MelwaysAddressSearchInterface.asp";
    this.DialogModal = true;

    // Simple Mode <Input / Output>        
    this.City = '';
    this.State = '';
    this.Postcode = '';
    this.Street = '';
    this.PageNumber = '';
    this.PagePosition = '';
}

function RecurringLetterFollowUpActionsOwnerDialogOptions(Mode) {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "120";
    this.DialogWidth  = "300";
    this.DialogURL    = "/Interfaces/WebPortal/MailMerge/RecurringLetters/FollowUpActionsOwnerTypeDialog.aspx";
    this.DialogModal  = true;
    
    /* this.Params */
}

function RecurringLetterDataSourceInspectorDialogOptions(letter) {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "420";
    this.DialogWidth  = "433";
    this.DialogURL    = "/Interfaces/WebPortal/MailMerge/RecurringLetters/FollowUpActionsAssignFromDataSourceDialog.aspx";
    this.DialogModal  = true;

    this.Letter         = letter;
    
    /* this.Params */
}

// adsdasd

function DisableOptOutWarningDialogOptions(Mode) {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "390";
    this.DialogWidth = "490";
    this.DialogURL = "/CTWebServices/ServicesWizard/EmailOptOutDisableWarning.aspx";
    this.DialogModal = true;

    // Simple Mode <Input / Output>
    this.AggreedToDisable = false;
}

function CustomerEntityActivityDialogOptions() {
    Object.Inherits(this, ApplicationDialog);

    this.DialogHeight = "390";
    this.DialogWidth = "600";
    this.DialogURL = "/Interfaces/Shared/Calendar/Views/ActivityView.aspx";
    this.DialogModal = true;

    // Input
    this.Action = null;     // NEW, EDIT, COMPLETE
    this.ActivityId = null;

    this.Get_DialogURL = function () {
        return this.DialogURL + "?Action=" + this.Action + "&ActivityId=" + this.ActivityId;
    }
}


