[Global]
$ParctlEx = "Parental Control"
$Enable2           = depend(Enabled) ? "Enabled" : "Disabled"

;---------- Balloons ------------------
ImContactMovedFromBlackList         = "Contact " + p_imContactId + " was moved from the blocked list"
ImContactMovedFromWhiteList         = "Contact " + p_imContactId + " was moved from the allowed list"
ImContactReplaced                   = "Contact " + p_imContactId + " was already on the list. Data was modified."
WebContentMovedFromBlackList		= "Web address " + p_webContentId + " was moved from the blocked list"
WebContentMovedFromWhiteList		= "Web address " + p_webContentId + " was moved from the allowed list"
PersonalInfoReplaced                = "Personal data " + p_infoName + " was already on the list. Data was modified."
KeywordReplaced                     = "Key word " + p_keyword + " was already on the list"
ApplicationReplaced                 = "Application " + f_AppInfo(p_appId).sImagePath + " was already on the list. Data was modified."
AppMovedFromBlackList               = "Application " + f_AppInfo(p_appId).sImagePath + " was moved from the blocked list"
AppMovedFromWhiteList               = "Application " + f_AppInfo(p_appId).sImagePath + " was moved from the allowed list"
AppNotControlled                    = "Selected application cannot be controlled"
UserAliasAlreadyInUse               = "Alias already exists. Enter a new alias"
WebURLReplaced                      = "Web address " + p_url + " already exists in list"

;---------- MainWindow_Body.ParCtl ------------------

[MainWindow_Body.ParCtl]
Descr                = "Restricts and tracks access to the computer and Internet resources, chat and more."

[MainWindow_Body.ParCtl.UserList.Footer]
Text = ctl.parent.UserList.getCurPageNum() + " of " + ctl.parent.UserList.getTotalPages()

[MainWindow_Body.ParCtl.Users_List_Row_Cont]
LastViolation        = if(LastViolationDate,"Unwanted behavior detected: <a $LinkKLInText onclick(f_ParCtl_ShowWindow(\"Report\",ctl.parent.parent.parent.id) ) >" + f_ParCtl_LastViolationDate(LastViolationDate)+ "</a>","No unwanted behavior detected")

;---------- ParCtlMainWindow ------------------

[ParCtlMainWindow]
@ = $RemoteComputer + "Parental Control" + if(!$IsRelease, " BETA VERSION")

[ParCtlMainWindow_Navigator]
Stat.Text  = "Reports"
Stat.Desc  = "Viewing reports on all users"
Users.Text = "Users"
Users.Desc = "Configuring users control parameters"

[ParCtlMainWindow_Body_Area_Stat]
Header.Text = "Reports"
Descr  = "You can view Parental Control report for each account, registered on this computer."

[ParCtlMainWindow_Body_Area_Users]
Header.Text = "Computer Users"
Descr  = "You can change the parameters of using Parental Control for each account, registered on this computer."
ParCtlStateDesc = "Parental Control: "
;ParCtlState     = "включен"
ParCtlPausePlay = state == #StateRunning ? ("Pause...") : ("Enable")
ParCtlStop      = "Disable"

[ParCtlMainWindow_Body_Area_Users_ListArea_Toolbar]
UserSetup.Label    = "Configure"
UserReport.Label   = "Detailed report"
UserReport2.Label   = "Hips applications (debug)"


Enable = "&Enable Parental Control"

[s_ParCtlEx_Set_Enable]
1   = "Disable"
def = "Control"

[s_ParCtlEx_Enabled]
1   = "On"
def = "Off"

[ParCtlMainWindow_Body_Area_Stat_User]
Label      = "User statistics: "
Descr.Name = "Control user: "

[s_ParCtlEx_User_Enabled]
1   = "On"
def = "Off"

[ParCtlMainWindow_Body_Area_Stat_Body]
Internet.Name      = "Internet"
Communication.Name = "Messaging"
Computer.Name      = "Computer"

[ParCtlMainWindow_Body_Area_Stat_Body_Internet_Col1]
Duration.Name       = "Duration: "
DomainsBlocked.Name = "Blocked websites: "

[ParCtlMainWindow_Body_Area_Stat_Body_Internet_Col2]
FilesBlocked.Name  = "Blocked files: "

[ParCtlMainWindow_Body_Area_Stat_Body_InternetEx_Col1]
Total.Name   = "Visited websites:"
Other.Name   = "Other:"
Blocked.Name = "Blocked websites:"

[ParCtlMainWindow_Body_Area_Stat_Body_InternetEx_Col2]
Total.Name   = "Downloaded files:"
Other.Name   = "Other:"
Blocked.Name = "Blocked files:"

[ParCtlMainWindow_Body_Area_Stat_Body_Communication_Col1]
PersInfo.Name   = "Detected personal data: "
MsgBlocked.Name = "Blocked messages: "

[ParCtlMainWindow_Body_Area_Stat_Body_Communication_Col2]
Keywords.Name = "Key words detected: "

[ParCtlMainWindow_Body_Area_Stat_Body_CommunicationEx_Col1]
Total.Name   = "Total number of messages: "
Other.Name   = "With other contacts:"
Blocked.Name = "Blocked messages:"

[ParCtlMainWindow_Body_Area_Stat_Body_Computer_Col1]
Duration.Name      = "Duration: "

[ParCtlMainWindow_Body_Area_Stat_Body_Computer_Col2]
AppBlocked.Name      = "Blocked applications: "

[ParCtlMainWindow_Body_Area_Stat_Body_ComputerEx_Col1]
Total.Name = "Applications usage"
Total.Val  = "time"
Other.Name = "Other:"

[ParCtlMainWindow_Body_Area_Users_List_Row]
UserControl = "User control: "


;---------- ParCtlUserSettings ------------------

[ParCtlUserSettings]
@ = "Settings - Parental Control for user \"" + f_UserName(UserId) + "\""

[ParCtlUserSettings_BodyEx]
Import = "Load settings"
Export = "Save settings"
;DebugWin1 = "Блок приложения"
;DebugWin2 = "Блок компьютера"

[ParCtlUserSettings_Navigator]
InternetHdr      = "Internet"
InternetUsage    = "Internet Usage"
WebContent       = "Web Browsing"
Download         = "File Downloads"
SafeSearch       = "Safe Search"
CommunicationHdr = "Messaging"
IM_Usage         = "Instant Messaging"
SN_Usage         = "Social Networking"
PersonalInfo     = "Private Data"
Keywords         = "Word Usage"
ComputerHdr      = "Computer"
ComputerUsage    = "Computer Usage"
AppUsage         = "Applications Usage"
AddHdr           = "Additional"
AddView          = "User Account Settings"

;--- ParCtlUserSettings_Navigator_WorkArea_InternetUsage --

[ParCtlUserSettings_Navigator_WorkArea_InternetUsage]
Header         = "Control Internet Usage"
Enable         = "&Enable control"
Description    = "Control the frequency and duration of Internet usage."
WeekLimitCheck = "Limit usage on the &selected days:"
DayLimitCheck  = "Limit &daily usage time:"

;---- ParCtlUserSettings_Navigator_WorkArea_WebContent ----

[ParCtlUserSettings_Navigator_WorkArea_WebContent]
Header      = "Control Web Browsing"
Enable      = "&Enable control"
Description = "Control which websites can or cannot be accessed." 
Header2     = "Block websites"

[ParCtlUserSettings_Navigator_WorkArea_WebContent_Ext]
BlockOther  = "Block access to &all websites except websites allowed in the list of exclusions"
OtherDescription = "If you are using a proxy-server, add it to the list of allowed websites."
BlockSpecified = "Block websites from the following &categories:"
Exclusions  = "E&xclusions ("+BlackWhiteList.size()+")..."

[ParCtlUserSettings_Navigator_WorkArea_WebContent_SafeSeach]
Enable      = "Enable &safe search mode"

[ParCtlUserSettings_Navigator_WorkArea_WebContent_Tab_Categories]
Categories  = "Select all"

;---- ParCtlUserSettings_Navigator_WorkArea_Download ----

[s_DownloadCategoryState]
#DownloadCategoryStateOff = "Blocked"
#DownloadCategoryStateOn  = "Allowed"

[ParCtlUserSettings_Navigator_WorkArea_Download]
Header         = "Control File Downloads"
Enable         = "&Enable control"
Description    = "Control which files can or cannot be downloaded from the Internet based on categories."
Header2        = "File categories"

[FileDownloadControl_File]
Toolbar.AllowDeny = !ctl.parent.parent.List.seldata().Enabled? "Block" : "Allow"

[FileDownloadControl_FileTypesList]
ItemName = "Category"
ItemState = "Status"

;---- ParCtlUserSettings_Navigator_WorkArea_SafeSearch ----

[ParCtlUserSettings_Navigator_WorkArea_SafeSearch]
Header         = "Control Search Results"
Enable         = "&Enable control"
Description    = "If the control is enabled, the websites containing pornography, explicit erotic content and other unacceptable materials, are excluded from search results."

;---- ParCtlUserSettings_Navigator_WorkArea_IM_Usage ----

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage]
Header      = "Control Instant Messaging"
Enable      = "&Enable control"
Description = "Control which contacts can be messaged to and which ones the user can receive messages from."
Attention   = "You are strongly advised to enable the \"Scan encrypted connections\" option in the Network section of the application settings."
Header2     = "Contacts"
Other       = "&Block messaging with other contacts"

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Tab]
WhiteList   = "Allowed" + f_ListCountText(WhiteList.size())
BlackList   = "Blocked" + f_ListCountText(BlackList.size())

[s_Blocked]
def = @? "Blocked": "Allowed"

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Contacts]
Toolbar.AllowDeny = ctl.parent.parent.List.seldata().Blocked? "Allow" : "Block"

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Contacts_List]
Name        = "Contact"
Action      = "Status"
Description = "Description"

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Tab_WhiteList]
Description = "Add contacts to allow messaging with them."

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Tab_WhiteList_List]
Name        = "Contact"
Description = "Description"
Date        = "Added"

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Tab_BlackList]
Description = "Add contacts to block messaging with them."

[ParCtlUserSettings_Navigator_WorkArea_IM_Usage_Tab_BlackList_List]
Name        = "Contact"
Description = "Description"
Date        = "Added"

;---- ParCtlUserSettings_Navigator_WorkArea_SN_Usage ----

[ParCtlUserSettings_Navigator_WorkArea_SN_Usage]
Header      = "Control Social Networking"
Description = "Control which contacts can be messaged to and which ones the user can receive messages from."
Enable      = "&Enable control"
Header2     = "Contacts"
Descr2      = "Contacts are added into the list from reports"
Other       = "&Block messaging with other contacts"

[ParCtlUserSettings_Navigator_WorkArea_SN_Usage_Contacts]
Toolbar.AllowDeny = ctl.parent.parent.List.seldata().Blocked? "Allow" : "Block"

[ParCtlUserSettings_Navigator_WorkArea_SN_Usage_Contacts_List]
Id          = "Contact"
Name        = "Description"
Action      = "Status"

;---- ParCtlUserSettings_Navigator_WorkArea_PersonalInfo ----

[ParCtlUserSettings_Navigator_WorkArea_PersonalInfo]
Header      = "Control Sending Private Data"
Enable      = "&Enable control"
Description = "Block attempts to send specified private data. The list can include credit cards numbers, home addresses, phone numbers and any other private data you specify."
Header2     = "Private Data"

[ParCtlUserSettings_Navigator_WorkArea_PersonalInfo_List]
Data        = "Data"
Descr       = "Description"

;---- ParCtlUserSettings_Navigator_WorkArea_Keywords ----

[ParCtlUserSettings_Navigator_WorkArea_Keywords]
Header      = "Control Word Usage"
Enable      = "&Enable control"
Description = "Monitor the use of specified words or word combinations within the user's messaging."
Header2     = "Key words"

;--- ParCtlUserSettings_Navigator_WorkArea_ComputerUsage --

[ParCtlUserSettings_Navigator_WorkArea_ComputerUsage]
Header         = "Control Computer Operating Time"
Enable         = "&Enable control"
Description    = "Control the frequency and duration of computer usage."
WeekLimitCheck = "Limit usage on the &selected days:"
DayLimitCheck  = "Limit &daily usage time:"

;---- ParCtlUserSettings_Navigator_WorkArea_AppUsage ----

[s_AppUsageText]
0 = s_Blocked(1)
1 = s_Blocked(0)
2 = "Time limit"

[ParCtlUserSettings_Navigator_WorkArea_AppUsage]
Header      = "Control Applications Usage"
Enable      = "&Enable control"
Description = "Control which applications can be started and the frequency of their usage."
Header2     = "Applications"

[ParCtlUserSettings_Navigator_WorkArea_AppUsage_Apps]
Toolbar.AllowDeny = ctl.parent.List.seldata().Blocked? "Allow" : "Block"

[ParCtlUserSettings_Navigator_WorkArea_AppUsage_Apps_List]
AppName     = "Application"
Action      = "Status"


;---- ParCtlUserSettings_Navigator_WorkArea_AddView ----

[ParCtlUserSettings_Navigator_WorkArea_AddView]
Header           = "User Account Settings"
Description      = "Enable control, assign an alias for the user account and select an image to be displayed in the application interface."
UserAliasGroup   = "Alias"
UserAvatarGroup  = "Image"
Enable           = depend(Enabled) ? "Enabled" : "Disabled"
ImportExportDesc = "Manage Settings"
Export           = "&Save..."
Import           = "&Load..."


;-------------- f_AppControl_Restrictions -----------------

[f_AppControl_Restrictions]
p_Param
ret = p_Param ? "yes" : "no"

;------------- ParCtl_BWUrl_Edit ------------------

[ParCtl_BWUrl_Edit]
@         = "Address mask (URL)"

[ParCtl_BWUrl_Edit_Body]
Example   = $SettingsUrlExampleLink
Blocked   = "Block the specified URL"

;------------------- WebContent_Exclusions_Edit -----------------------

[WebContent_Exclusions_Edit]
@       = "Block websites: exclusions"

[WebContent_Exclusions_Edit_Body]
Header      = "Exclusions"
Description = "Add particular URLs to the list of exclusions to allow or block access \nto these websites."

[WebContent_Exclusions_Edit_Body_BWList]
Toolbar.AllowDeny = ctl.parent.parent.List.seldata().Blocked? "Allow" : "Block"

[WebContent_Exclusions_Edit_Body_BWList_List]
URL       = "URL"
Status    = "Status"

;---------------- AppUsage_Edit --------------------

[AppUsage_Edit]
@              = "Control running the application"

[AppUsage_Edit_Body]
AppLabel       = "Application"
AppButton      = "&Select..."

[AppUsage_Edit_Body_AllowDeny]
Deny           = "&Block running the application"
Allow          = "&Allow running the application. You can specify time limits:"

[AppUsage_Edit_Body_TimeTable]
LogAppEvents   = "&Register in the report"
WeekLimitCheck = "Limit usage on the &selected days:"
DayLimitCheck  = "Limit &daily usage time:"


;------------------- IMControl_Edit -----------------------

[IMControl_Edit]
@              = "Contact information"

[IMControl_Edit_Body]
Description    = "Contact data (account number or email) and its description."
AddressLabel   = "Data"
DescrLabel     = "Description"
AllowDeny      = "Block messaging"

;------------------- SNControl_Edit -----------------------
[SNControl_Edit]
@              = "Contact information"

[SNControl_Edit_Body]
Description    = "Contact data (identifier in social network) and its description."
IdLabel        = "Contact:"
AliasLabel     = "Description:"
AllowDeny      = "Block messaging"

;----------------- PersonalInfo_Edit ----------------------

[PersonalInfo_Edit]
@              = "Private Data"

[PersonalInfo_Edit_Body]
Description    = "Confidential data, not allowed to be sent, and its description."
AddressLabel   = "Data"
DescrLabel     = "Description"

;----------------- Keyword_Edit ----------------------

[Keyword_Edit]
@           = "Key word"

[Keyword_Edit_Body]
Description = "Enter a word or phrase to detect it in messaging."
Name        = "Key word"

;---------- ParCtlUserReport ------------------

[ParCtlUserReport]
@ = "Detailed report - Parental Control for user \"" + f_UserName(p_User) + "\""

[ProductHeader_Ex]
Descr = "Detailed report for user \"" + f_UserName(p_User) + "\""

[ParCtlUserReport_Navigator]
AddView            = "General Statistics"
InternetUsage      = "Internet Usage"
WebContent         = "Web Browsing"
Download           = "File Downloads"
IM_Usage           = "Instant Messaging"
SN_Usage           = "Social Networking"
PersonalInfo       = "Private Data"
Keywords           = "Word Usage"
ComputerUsage      = "Computer Usage"
AppUsage           = "Applications Usage"

[s_ParCtlEx_Access]
#eParCtlEx_AccessBlocked    = "Blocked"
#eParCtlEx_AccessAllowed    = "Allowed"
#eParCtlEx_AccessTerminated = "Aborted"
def                         = @+"-"

;---------- ParCtlUserReport_Navigator_WorkArea_PageT ---------------

[s_ParCtlUserReport_SeverityFilter_Text]
Critical = "Critical events"
Warning	 = "Critical and important events"
def      = "All events"

[ParCtlUserReport_Navigator_WorkArea_PageT_Body_StatArea]
Header = "Statistics"

;---------- ParCtlUserReport_Navigator_WorkArea_TimeUsage_Stat ---------------
[s_switchperiod]
#ePeriodDay    = "day"
#ePeriodWeek   = "week"
#ePeriodMonth  = "month"
#ePeriodYear   = "year"

[s_YAxisDescr]
#ePeriodDay    = "Time, min"
#ePeriodWeek   = "Time, min"
#ePeriodMonth  = "Time, min"
#ePeriodYear   = "Time, hour"

[s_XAxisDescr]
#ePeriodDay    = "Hours"
#ePeriodWeek   = "Days of the week"
#ePeriodMonth  = "Days"
#ePeriodYear   = "Months"

;Day    = "Использование в течение суток, часы"
;Week   = "Использование в течение недели, дни"
;Month  = "Использование в течение месяца, дни"
;Year   = "Использование в течение года, месяцы"

[s_TTHour]
def = "Period: " + timeshort_tz(@0) +"-" + timeshort_tz(@0+3600) +"\nDuration: " + timestamp(@1)

[s_TTWeek]
def = "Day of the week: " + s_DayOfWeek(@0) + "\nDuration: " + timestamp(@1)

[s_TTMonth]
def = "Date: " + date(@0) + "\nDuration: " + timestamp(@1)

[s_TTYear]
def = "Month: " + s_MonthOfYear(@0) + "\nDuration: " + timestamp(@1)

[s_DayOfWeek]
0 = "Monday"
1 = "Tuesday"
2 = "Wednesday"
3 = "Thursday"
4 = "Friday"
5 = "Saturday"
6 = "Sunday"

[s_DayOfWeek_Short]
0 = "Mo"
1 = "Tu"
2 = "We"
3 = "Th"
4 = "Fr"
5 = "Sa"
6 = "Su"

[s_MonthOfYear]
0  = "January"
1  = "February"
2  = "March"
3  = "April"
4  = "May"
5  = "June"
6  = "July"
7  = "August"
8  = "September"
9  = "October"
10 = "November"
11 = "December"

[s_MonthOfYear_Short]
0  = "Jan"
1  = "Feb"
2  = "Mar"
3  = "Apr"
4  = "May"
5  = "Jun"
6  = "Jul"
7  = "Aug"
8  = "Sep"
9  = "Oct"
10 = "Nov"
11 = "Dec"

[s_MonthOfYear_day]
0  = "January " + @1
1  = "February " + @1
2  = "March " + @1
3  = "April " + @1
4  = "May " + @1
5  = "June " + @1
6  = "July " + @1
7  = "August " + @1
8  = "September " + @1
9  = "October " + @1
10 = "November " + @1
11 = "December " + @1


;------------------- ParCtlUserReport.InternetUsage ----------

[ParCtlUserReport.InternetUsage]
@.Stat.Header  = "Internet usage time distribution for " + s_StatRangePeriod(ctl.Stat.Period.value)

[s_StatRangePeriod]
Day    = "day"
Week   = "week"
Month  = "month"
Year   = "year"

[ParCtlUserReport_Navigator_WorkArea_InternetUsage_List]
Severity       = ""
Time           = "Session start"
TimeUsage      = "Duration"
AccessStatus   = "Result"
Reason         = "Reason"
Requests       = "Number of requests"

[ParCtlEx_InternetUsage_DateTime_Group]
Date           = "Date: " + s_date(val)
Info           = " - sessions: " + count + ", duration " + timestamp(agg.GroupRunTime + if(agg.LastOpenedTime, f_ParCtlEx_GetTimeUsage(0xFFFFFFFF, agg.LastOpenedTime)))

[s_ParCtlEx_IU_Reason]
#eParCtlEx_IU_ReasonAllowed       = "using the Internet is allowed"
#eParCtlEx_IU_ReasonTimeLimit     = "time of using the Internet is up"
#eParCtlEx_IU_ReasonTimeSpace     = "schedule of using the Internet is violated"
#eParCtlEx_IU_ReasonNotControlled = "control of using the Internet is disabled"
#eParCtlEx_IU_ReasonShutdown      = "work end"

[s_ParCtlEx_IU_Access]
#eParCtlEx_AccessBlocked    = "Blocked, " + s_ParCtlEx_IU_Reason(@1)
#eParCtlEx_AccessAllowed    = "Allowed, " + s_ParCtlEx_IU_Reason(@1)
#eParCtlEx_AccessTerminated = "Interrupted, " + s_ParCtlEx_IU_Reason(@1)
def                         = capitalize(s_ParCtlEx_IU_Reason(@1))

;------------- ParCtlUserReport.InternetWebContent -----------------

[ParCtlUserReport_Navigator_WorkArea_InternetWebContent_List]
Severity       = ""
Domain         = "Website"
URL            = "URL"
Time           = "Time"
AccessStatus   = "Result"
Reason         = "Reason"
Category       = "Categories"
DownloadSize   = "Received data amount"

[s_TTInternetWebContent_Chart]
def = "Website: "+@0.Domain + "\nVisits: " + @0.Count

[s_TTInternetDownload_Chart]
def = "Website: "+@0.Domain + "\nDownloads: " + @0.Count

[s_TTMessagingIM_Chart]
def = "Contact: "+@0.ContactId + "\nMessages: " + @0.MsgCount

[s_TTApplicationUsage_Chart]
def = "Application: "+ f_ParCtlEx_GetAUAppName(@1, @0.AppID) + "\nRun time: " + timestamp(@0.Duration)

[ParCtlEx_IWC_Domain_Group]
Info = ", visits: " + count + " (violations: " + agg.criticalCount + ")"

[ParCtlUserReport_InternetUrls_List_Menu]
OpenURL        = "Open"

[ParCtlUserReport_InternetWebContent_List_Actions]
$GetListSelDomain = (ctl.List.isNode ? ctl.List.val : ctl.List.seldata().Domain)
AllowDeny      = if($GetListSelDomain && WebControl.BlackWhiteList.find("Name == " + toExpr($GetListSelDomain)).Blocked,"Allow website","Block website")


[ParCtlUserReport_Navigator_WorkArea_InternetWebContent_Stat]
Header         = "Number of visits: " + Count
SubHeader      = "Popular websites:"

[ParCtlUserReport_Navigator_WorkArea_InternetWebContent_Stat_Top3]
Top_1.Descr = "Number of visits: " + Domains.at(0).Count + " (" + Domains.at(0).Count*100/Count + "% of all)"
Top_2.Descr = "Number of visits: " + Domains.at(1).Count + " (" + Domains.at(1).Count*100/Count + "% of all)"
Top_3.Descr = "Number of visits: " + Domains.at(2).Count + " (" + Domains.at(2).Count*100/Count + "% of all)"

[s_ParCtlEx_IWC_Reason]
#eParCtlEx_IWC_ReasonUndefined      = "unknown website"
#eParCtlEx_IWC_ReasonWhiteList      = "allowed website"
#eParCtlEx_IWC_ReasonBlackList      = "blocked website"
#eParCtlEx_IWC_ReasonUncontrolled   = "unknown website, access denied"
#eParCtlEx_IWC_ReasonCategoryDeny   = "website from a blocked category"
#eParCtlEx_IWC_ReasonCategoryAllow  = "website from an allowed category"

[s_ParCtlEx_IWC_Access]
#eParCtlEx_AccessBlocked    = "Blocked" + if (@2, ": " + f_ParCtlEx_IWC_Category_Mask(@2, 0), if(@1, ": " + s_ParCtlEx_IWC_Reason(@1) ) )
#eParCtlEx_AccessAllowed    = "Allowed" + if (@2, ": " + f_ParCtlEx_IWC_Category_Mask(@2, 0), if(@1, ": " + s_ParCtlEx_IWC_Reason(@1) ) )
#eParCtlEx_AccessTerminated = "Interrupted" + if (@2, ": " + f_ParCtlEx_IWC_Category_Mask(@2, 0), if(@1, ": " + s_ParCtlEx_IWC_Reason(@1) ) )
def                         = "-"


;------------- ParCtlUserReport.InternetDownload -----------------

[ParCtlUserReport_Navigator_WorkArea_InternetDownload_List]
Severity       = ""
File           = "File"
Category       = "Category"
Domain         = "Website"
Time           = "Time"
AccessStatus   = "Result"
Reason         = "Reason"
URL            = "URL"

[ParCtlUserReport_Navigator_WorkArea_InternetDownload_List_File]
Name           = "Name"
Type           = "Type"

[ParCtlEx_FDC_Category_Group]
Info = " - downloads: " + count + if(agg.Blocked, " (blocked: " + agg.Blocked + ")")

[ParCtlEx_FDC_Domain_Group]
Info = " - downloads: " + count + if(agg.Blocked, " (blocked: " + agg.Blocked + ")")

[ParCtlUserReport_InternetDownload_List_Actions_Category]
$GetListSelCategory = (ctl.List.groupId == "Category" ? ctl.List.val : ctl.List.seldata().Category)
AllowDeny      = if( $GetListSelCategory && FileDownloadControl.Items.find("Name=="+toExpr($GetListSelCategory)).Enabled, "Allow category", "Block category" )

[ParCtlUserReport_InternetDownload_List_Actions_Domain]
$GetListSelDomain   = (ctl.List.groupId == "Domain" ? ctl.List.val : ctl.List.seldata().Domain)
AllowDeny      = if($GetListSelDomain && WebControl.BlackWhiteList.find("Name == " + toExpr($GetListSelDomain)).Blocked,"Allow website","Block website")

[ParCtlUserReport_Navigator_WorkArea_InternetDownload_Stat]
Header         = "Number of downloads: " + Count
SubHeader      = "Popular websites:"

[ParCtlUserReport_Navigator_WorkArea_InternetDownload_Stat_Top3]
Top_1.Descr = "Number of visits: " + Domains.at(0).Count + " (" + Domains.at(0).Count*100/Count + "% of all)"
Top_2.Descr = "Number of visits: " + Domains.at(1).Count + " (" + Domains.at(1).Count*100/Count + "% of all)"
Top_3.Descr = "Number of visits: " + Domains.at(2).Count + " (" + Domains.at(2).Count*100/Count + "% of all)"

[s_ParCtlEx_FileCategory]
"%music%"        = "music"
"%video%"        = "video"
"%applications%" = "applications"
"%archives%"     = "archives"
def              = @

[s_ParCtlEx_FDC_Reason]
#eParCtlEx_FDC_ReasonDenyByFileType = "downloading files of this category is blocked"

[s_ParCtlEx_ID_Access]
#eParCtlEx_AccessBlocked    = "Blocked" + if(@1, ": "+s_ParCtlEx_FileCategory(@1) )
#eParCtlEx_AccessAllowed    = "Allowed" + if(@1, ": "+s_ParCtlEx_FileCategory(@1) )
#eParCtlEx_AccessTerminated = "Interrupted" + if(@1, ": "+s_ParCtlEx_FileCategory(@1) )
def                         = "-"

; ------------- ParCtlUserReport.MessagingIM -----------------

[ParCtlUserReport_Navigator_WorkArea_MessagingIM_List]
Severity       = ""
Direction      = "Direction"
UserName       = "Contact"
Time           = "Time"
AccessStatus   = "Result"
Reason         = "Reason"
IsPersInfo     = "Private Data"
IsKeywords     = "Word Usage"

[ParCtlEx_IM_ContactId_Group]
Info = ", " + s_ParCtlEx_IM_ProtocolTypes(agg.ProtocolType) + " - messages: " + count + if(agg.Blocked, " (blocked: " + agg.Blocked + ")")

[ParCtlUserReport_MessagingIM_List_Actions]
$GetListSelContactId = (ctl.List.isNode ? ctl.List.agg.ContactId : ctl.List.seldata().ContactId)
$GetListData = IMControl.Contacts.find("Id==" + toExpr($GetListSelContactId))
AllowDeny      = if($GetListData.Blocked,"Allow messaging","Block messaging")
Open           = "View messaging text"

[ParCtlUserReport_Navigator_WorkArea_MessagingIM_Stat]
Header    = "Number of messages: " + Count
SubHeader = "Popular contacts:"

[ParCtlUserReport_Navigator_WorkArea_MessagingIM_Stat_Top3]
Top_1.Descr = "Number of messages: " + Contacts.at(0).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 1) + "% of all)"
Top_2.Descr = "Number of messages: " + Contacts.at(1).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 2) + "% of all)"
Top_3.Descr = "Number of messages: " + Contacts.at(2).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 3) + "% of all)"

[s_ParCtlEx_IM_Reason]
#eParCtlEx_IM_ReasonContactInWhiteList        = "allowed contact"
#eParCtlEx_IM_ReasonContactInBlackList        = "blocked contact"
#eParCtlEx_IM_ReasonUnknownContactAllowed     = "unknown contact, messaging is allowed"
#eParCtlEx_IM_ReasonUnknownContactSuppressed  = "unknown contact, messaging is blocked"
#eParCtlEx_IM_ReasonPersonalInfoSending       = "sending private data"

[s_ParCtlEx_IM_ProtocolTypes]
#eIMProtocolHTTP   = "HTTP"
#eIMProtocolSMTP   = "SMTP"
#eIMProtocolICQ    = "ICQ Instant Messenger"
#eIMProtocolMSN    = "MSN Instant Messenger"
#eIMProtocolP2P    = "P2P simple detector"
#eIMProtocolJBR    = "Jabber Instant Messenger"
#eIMProtocolIRC    = "IRC"
#eIMProtocolMMP    = "Mail.Ru Agent Instant Messenger"
#eIMProtocolYahoo  = "Yahoo! Instant Messenger"
#eIMProtocolGG     = "Gadu Gadu Instant Messenger"
def                = "Unknown " + @

;---------- ParCtlReportIMMessageDetails ------------------

[ParCtlReportIMMessageDetails]
@ = "Messaging text: " + f_ParCtlEx_GetIMContactName(p_data.UserName, p_data.ContactId)

[ParCtlReportIMMessageDetails_Body]
ContactId.Name   = "Contact:"
Group.Name       = "Category:"
Proto.Name       = "Protocol:"

[ParCtlReportIMMessageDetails_Body_Group]
WhiteList   = "Allowed contacts"
BlackList   = "Blocked contacts"
Other       = "Unknown contacts"

[ParCtlReportIMMessageDetails_List]
MessageText   = "Message"
Time          = "Time"

;------------- ParCtlReportSNControlDetails -----------------

[ParCtlReportSNControlDetails]
@ = "Messaging text: " + f_ParCtlEx_GetSNContactName(p_data.ContactId, p_data.ContactAlias)

[ParCtlReportSNControlDetails_Body]
ContactId.Name   = "Contact:"

[ParCtlReportSNControlDetails_List]
MessageText   = "Message"
Time          = "Time"

; ------------- ParCtlUserReport.MessagingPersonalData -----------------

[ParCtlUserReport_Navigator_WorkArea_MessagingPersonalData_List]
Severity       = ""
PersonalInfo   = "Private Data"
Protocol       = "Protocol"
AccessStatus   = "Result"
Recipient      = "Recipient"
Time           = "Time"

[ParCtlEx_MPD_PersonalInfo_Group]
Info = " - detected sending attempts: " + count

[ParCtlEx_MPD_Date_Group]
Id   = "Date: " + s_date(val)
Info = " - detected sending attempts: " + count

[ParCtlUserReport_Navigator_WorkArea_MessagingPersonalData_Stat]
Header    = "Blocked sending attempts: " + ctl.List.totalCount()

; ------------- ParCtlUserReport.MessagingKeywords -----------------

[ParCtlUserReport_Navigator_WorkArea_MessagingKeywords_List]
Severity       = ""
Direction      = "Direction"
Keyword        = "Key word"
Protocol       = "Protocol"
;AccessStatus  = "Результат"
Recipient      = "Recipient / Sender"
Time           = "Time"

[ParCtlUserReport_Navigator_WorkArea_MessagingKeywords_Stat]
Header    = "Total number of events: " + ctl.List.totalCount()

;------------------- ParCtlUserReport.ComputerUsage ----------

[ParCtlUserReport.ComputerUsage]
@.Stat.Header  = "Computer usage time distribution for " + s_StatRangePeriod(ctl.Stat.Period.value)

[ParCtlUserReport_Navigator_WorkArea_ComputerUsage_List]
Severity       = ""
Time           = "Session start"
TimeUsage      = "Duration"
AccessStatus   = "Result"

[ParCtlEx_ComputerUsage_DateTime_Group]
Date           = "Date: " + s_date(val)
Info           = ", sessions: " + count + ", duration: " + timestamp(agg.GroupRunTime + if(agg.LastOpenedTime, f_ParCtlEx_GetTimeUsage(0xFFFFFFFF, agg.LastOpenedTime)))

[s_ParCtlEx_CU_Reason]
#eParCtlEx_CC_TimeLimitIsOver        = "time limit of using the computer is exceeded"
#eParCtlEx_CC_ScheduleTimeIsViolated = "schedule of using the computer is violated"
#eParCtlEx_CC_ControlIsTurnedOff     = "control of using the computer is disabled"
#eParCtlEx_CC_ControlIsTurnedOn      = "control of using the computer is enabled"
def                                  = "using the computer is allowed"

[s_ParCtlEx_CU_Reason_Upper]
#eParCtlEx_CC_TimeLimitIsOver        = "Time limit of using the computer is exceeded"
#eParCtlEx_CC_ScheduleTimeIsViolated = "Schedule of using the computer is violated"
#eParCtlEx_CC_ControlIsTurnedOff     = "Control of using the computer is disabled"
#eParCtlEx_CC_ControlIsTurnedOn      = "Control of using the computer is enabled"
def                                  = "Using the computer is allowed"

[s_ParCtl_CU_GetResultDesc]
#eParCtlEx_AccessBlocked   
#eParCtlEx_AccessAllowed    
#eParCtlEx_AccessTerminated = s_ParCtlEx_Access(@) + ", " + s_ParCtlEx_CU_Reason(@1)
#eParCtlEx_AccessNone       = s_ParCtlEx_CU_Reason_Upper(@1)
def                         = "-"

;----------------- ParCtlUserReport.ApplicationUsage ----------

[ParCtlUserReport_Navigator_WorkArea_ApplicationUsage_List]
Severity       = ""
Application    = "Application"
Time           = "Start time"
TimeUsage      = "Duration"
AccessStatus   = "Result"
Reason         = "Reason"

[ParCtlEx_ApplicationUsage_Group]
Info           = ", launches: " + count + ", usage time: " + timestamp(agg.GroupRunTime + if(agg.LastOpenedTime, f_ParCtlEx_GetTimeUsage(0xFFFFFFFF, agg.LastOpenedTime)))

[ParCtlUserReport_ApplicationUsage_List_Actions]
$GetListSelAppID = (ctl.List.isNode ? ctl.List.agg.AppID : ctl.List.seldata().AppID)
AllowDeny = if( $GetListSelAppID && AppControl.Applications.find("AppID=="+toExpr($GetListSelAppID)).Blocked, "Allow", "Block")
Settings  = "Configure"

[ParCtlUserReport_Navigator_WorkArea_ApplicationUsage_Stat]
Header    = "Number of violations: " + CriticalCount
SubHeader = "Popular applications:"

[ParCtlUserReport_Navigator_WorkArea_ApplicationUsage_Stat_Top3]
Top_1.Descr = "Usage time: " + timestamp(Apps.at(0).Duration) + " (" + Apps.at(0).Duration*100/Duration + "% of all)"
Top_2.Descr = "Usage time: " + timestamp(Apps.at(1).Duration) + " (" + Apps.at(1).Duration*100/Duration + "% of all)"
Top_3.Descr = "Usage time: " + timestamp(Apps.at(2).Duration) + " (" + Apps.at(2).Duration*100/Duration + "% of all)"

[s_ParCtlEx_AU_Reason]
#eParCtlEx_AU_ReasonAppInWhiteList        = "allowed application"
#eParCtlEx_AU_ReasonAppInBlackList        = "blocked application"
#eParCtlEx_AU_ReasonUnknownApp            = "unknown application"
#eParCtlEx_AU_ReasonDayLimitExhausted     = "usage time is up"
#eParCtlEx_AU_ReasonTimePeriodRestriction = "schedule of using the application is violated"
#eParCtlEx_AU_ReasonControlTurnedOn       = "control of running the applications is enabled"
#eParCtlEx_AU_ReasonControlTurnedOff      = "control of running the applications is disabled"

[s_ParCtlEx_AU_Access]
#eParCtlEx_AccessBlocked    = "Blocked, " + s_ParCtlEx_AU_Reason(@1)
#eParCtlEx_AccessAllowed    = "Allowed, " + s_ParCtlEx_AU_Reason(@1)
#eParCtlEx_AccessTerminated = "Interrupted, " + s_ParCtlEx_AU_Reason(@1)
def                         = capitalize(s_ParCtlEx_AU_Reason(@1))

[ParCtlEx_TerminateTimeoutWindow_Footer]
Close = "Close"

[ParCtlEx_AppTerminateTimeoutWindow_Footer]
Close = "Close"

[ParCtlEx_AppCloseTimeoutWindow_Footer]
Close = "Close"

;----------------- ParCtlEx_AppCloseTimeoutWindow ----------------------

[ParCtlEx_AppCloseTimeoutWindow]
@ = "Time limit"

[ParCtlEx_AppInfoBlock]
AppNameDesc			= "Application: "
AppPublisherDesc	= "Vendor: "

[ParCtlEx_CpuInfoBlock]
CpuUsageDesc = "Time left until the computer shutdown:"

[ParCtlEx_AppWarnBlock]
Descr = "Time left until the application shutdown:"

[ParCtlEx_CpuWarnBlock]
Descr = "Attention! Time left until the computer shutdown:"

[ParCtlEx_AppDescBlock]
NotifyText = "To avoid data loss, please save your data before application shutdown."

;----------------- ParCtlEx_AppTerminateTimeoutWindow ----------------------

[ParCtlEx_AppTerminateTimeoutWindow]
@ = "Time limit"

[ParCtlEx_AppTerminateTimeoutWindow_Body]
ClosureText = "Application usage time is up.\nSafe shutdown is performed."

;----------------- ParCtlEx_QuitAppCloseGuiWarningWindow ----------------------

[ParCtlEx_QuitAppCloseGuiWarningWindow]
@ = "Time limit"

[ParCtlEx_QuitAppCloseGuiWarningWindow_Body]
ClosureText  = "Application usage time is up."
ClosureText2 = "Application was shut down."

[ParCtlEx_QuitAppDescBlock]1
NotifyText  = "The administrator can allow using the application."

;----------------- ParCtlEx_InternetTerminateTimeoutWindow ----------------------

[ParCtlEx_InternetTerminateTimeoutWindow]
@ = "Time limit"

[ParCtlEx_InternetWarnBlock]
Descr = "Internet usage time is running out\nTime left until the automatic disconnection:"

[ParCtlEx_InternetDescBlock]
NotifyText = "Please, save the data before disconnecting to avoid data loss"

;----------------- ParCtlEx_ComputerTerminateTimeoutWindow ----------------------

[ParCtlEx_ComputerTerminateTimeoutWindow]
@ = "Time limit"

[ParCtlEx_ComputerTerminateTimeoutWindow_Body]
Descr = "Attention! The computer will be turned off in"
ParCtlStop = "Disable user control"

;----------------- ProductNotify ----------------------

[s_ProductNotify_ParCtlEx]
serid("InstantMessangerControlReportEvent") 
serid("SocialNetworkControlReportEvent")    = "Message " + (Direction == #eParCtlEx_DirectionInbound ? "from contact \"" : "for contact \"") + s_ProductNotify_ParCtlEx_ContactName(@) + "\" was blocked. Reason: " + s_ProductNotify_ParCtlEx_Reason(@)
serid("AppControlReportEvent")              = "Running the application \"" + $AppName + "\" was blocked. Reason: " + s_ParCtlEx_AU_Reason(Reason)
serid("PersonalInfoControlReportEvent")     = "Attempt of sending private data was blocked"
serid("WebSiteControlReportEvent")          = "Browsing website " + Url + " was blocked. Reason: " + s_ParCtlEx_IWC_Reason(Reason)
serid("FileDownloadControlReportEvent")     = "Downloading file " + FileName + "." + Extension + " was blocked. Reason: " + s_ParCtlEx_FDC_Reason(Reason)
serid("InternetUsageControlReportEvent")    = "Sending Internet request was blocked. Reason: " + s_ParCtlEx_IU_Reason(Reason)

[s_ProductNotify_ParCtlEx_ContactName]
serid("InstantMessangerControlReportEvent") = f_ParCtlEx_GetIMContactName(UserName, ContactId)
serid("SocialNetworkControlReportEvent")    = f_ParCtlEx_GetSNContactName(ContactId, ContactAlias)

[s_ProductNotify_ParCtlEx_Reason]
serid("InstantMessangerControlReportEvent") = s_ParCtlEx_IM_Reason(Reason)
serid("SocialNetworkControlReportEvent")    = s_ParCtlEx_SN_Reason(Reason)

[ImportUserSettingsDialog]
@ = "Load Parental Control settings"

[ImportUserSettingsDialogHeader_HdrDescr]
ImportSettingsMsg = username(UserId,1) + " - load settings"
Description = "Current settings for the user will be replaced by the selected source settings."

[ImportUserSettingsDialogButtonsArea]
ImportSource = "Settings source:"

[ImportUserSettingsDialogButtonsAreaRadioButtons]
ImportFromFile     = "Configuration file: "
Button = "Browse..."
ImportFromUser     = "Another user: "
ImportFromTemplate = "Template: "

[ImportTemlates]
0 = "Child"
1 = "Teenager"

; ----------------------   BrowseInstalledSoftwareDialog   ------------------------------

[BrowseInstalledSoftwareDialog]
@ = "Select application"

[BrowseInstalledSoftwareDialog_Desc]
Desc = "Select application from the list"

[BrowseInstalledSoftwareDialog_Object]
Desc = "Object"

[BrowseInstalledSoftwareDialog_List]
ShowRunningOnly = "Show running applications"

[BrowseInstalledSoftwareDialog_ProgsListI]
Program  = "Application"
Vendor   = "Vendor"
FilePath = "File"

[BrowseInstalledSoftwareDialog_ToolBar]
Add      = "Add"

; ----------------------  ParctlFirstStartDialog  ------------------------------

[ParctlFirstStartDialog]
@            = "Parental Control"
Header.Title = "Welcome"
Header.Descr = "to Parental Control"

[ParctlFirstStartDialog.Body]
Descr       = "To start working, please specify a password for managing Parental Control to protect the control settings against modification by the users being controlled."
Create.Name = "Specify password for Parental Control"
DoNotShow   = "Do not show this message in future"

;---------------------------------------------------------
;---------------------------------------------------------
;---------------------------------------------------------

[ParCtlRepSettMainWindow]
@ = "Parental Control"

[ParCtlRepSettMainWindow_Body_Navigator]
Settings.Cont = "Settings"
Report.Cont   = "Reports"

;---------------------------------------------------------
[ParCtlUserReport_Navigator_WorkArea_SNControl_List]
Severity       = ""
Contact        = "Contact"
Time           = "Time"
Direction      = "Direction"

[ParCtlUserReport_SNControl_List_Actions]
$GetListSelContactId = (ctl.List.isNode ? ctl.List.agg.ContactId : ctl.List.seldata().ContactId)
$GetListData = SNControl.Contacts.find("Id==" + toExpr($GetListSelContactId))
AllowDeny      = if($GetListData.Blocked,"Allow messaging","Block messaging")
Open           = "View messaging text"

[ParCtlEx_SN_ContactId_Group]
Info = ", messages: " + count + if(agg.Blocked, ", blocked: " + agg.Blocked )

[ParCtlUserReport_Navigator_WorkArea_SNControl_Stat]
Header    = "Number of messages: " + Count
SubHeader = "Popular contacts:"

[ParCtlUserReport_Navigator_WorkArea_SNControl_Stat_Top3]
Top_1.Descr = "Number of messages: " + Contacts.at(0).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 1) + "% of all)"
Top_2.Descr = "Number of messages: " + Contacts.at(1).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 2) + "% of all)"
Top_3.Descr = "Number of messages: " + Contacts.at(2).MsgCount + " (" + f_ParCtlEx_MessagingIM_Stat_TopN_Percent(Count, Contacts, 3) + "% of all)"

[s_ParCtlEx_SN_Reason]
#eParCtlEx_SN_ReasonContactInWhiteList        = "allowed contact"
#eParCtlEx_SN_ReasonContactInBlackList        = "blocked contact"
#eParCtlEx_SN_ReasonUnknownContactAllowed     = "unknown contact, messaging is allowed"
#eParCtlEx_SN_ReasonUnknownContactSuppressed  = "unknown contact, messaging is blocked"
#eParCtlEx_SN_ReasonPersonalInfoSending       = "sending private data"

;---------------------------------------------------------

[ParCtlRepSettMainWindow.Statistics_Internet_LeftCol]
Total.Name   = "Visited websites: "
Blocked.Name = "Blocked: "

[ParCtlRepSettMainWindow.Statistics_Internet_RightCol]
Total.Name   = "Downloaded files: "
Blocked.Name = "Blocked: "

[ParCtlRepSettMainWindow.Statistics_Internet]
@.Header     = "Internet"
@.Descr      = "(no data collected yet)"

[ParCtlRepSettMainWindow.Statistics_Meeting]
@.Header     = "Messaging"
@.Descr      = "(no data collected yet)"

[ParCtlRepSettMainWindow.Statistics_Meeting_LeftCol]
Total.Name   = "Total number of messages: "
Blocked.Name = "Blocked: "

[ParCtlRepSettMainWindow.Statistics_Meeting_RightCol]
PersInfo.Name= "Private data detected: "
Keywords.Name= "Word usage detected: "

[ParCtlRepSettMainWindow.Statistics_Computer]
@.Header     = "Computer"
@.Descr      = "(no data collected yet)"

[ParCtlRepSettMainWindow.Statistics_Computer_LeftCol]
AppBlocked.Name = "Blocked applications: "

[ParCtlRepSettMainWindow.Statistics_Computer_RightCol]
Duration.Name   = "Duration: "

;---------------------------------------------------------

[ParCtlRepSettMainWindow.AddView]
@.Title = "Account Control General Statistics"

[ParCtlRepSettMainWindow.ComputerUsage]
@.Title = "Computer Usage Report"
@.Stat.SubHeader = "Computer usage time distribution for " + s_switchperiod(ctl.parent.Period.PeriodType.value) + ":"

[ParCtlRepSettMainWindow.AppUsage]
@.Title = "Applications Usage Report"

[ParCtlRepSettMainWindow.InternetUsage]
@.Title = "Internet Usage Report"
@.Stat.SubHeader = "Internet usage time distribution for " + s_switchperiod(ctl.parent.Period.PeriodType.value) + ":"

[ParCtlRepSettMainWindow.WebContent]
@.Title = "Web Browsing Report"

[ParCtlRepSettMainWindow.Download]
@.Title = "File Downloads Report"

[ParCtlRepSettMainWindow.IM_Usage]
@.Title = "Instant Messaging Report"

[ParCtlRepSettMainWindow.PersonalInfo]
@.Title = "Sending Private Data Report"

[ParCtlRepSettMainWindow.Keywords]
@.Title = "Word Usage Report"

[ParCtlRepSettMainWindow.SN_Usage]
@.Title = "Social Networking Report"

;---------------------------------------------------------
[ParCtlUserReport_Navigator_WorkArea_TimeUsage_ChartWeek]
Val_1   = s_DayOfWeek_Short((firstdayofweek()+0)%7)
Val_2   = s_DayOfWeek_Short((firstdayofweek()+1)%7) 
Val_3   = s_DayOfWeek_Short((firstdayofweek()+2)%7)
Val_4   = s_DayOfWeek_Short((firstdayofweek()+3)%7)
Val_5   = s_DayOfWeek_Short((firstdayofweek()+4)%7)
Val_6   = s_DayOfWeek_Short((firstdayofweek()+5)%7)
Val_7   = s_DayOfWeek_Short((firstdayofweek()+6)%7)
