1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3*cdf0e10cSrcweir<script:module xmlns:script="http://openoffice.org/2000/script" script:name="CommonLang" script:language="StarBasic">REM  *****  BASIC  *****
4*cdf0e10cSrcweir
5*cdf0e10cSrcweir
6*cdf0e10cSrcweir&apos; Column A has the index 1
7*cdf0e10cSrcweirPublic Const SBCOLUMNNAME1 = 3			&apos; Stock names, sheet 1
8*cdf0e10cSrcweirPublic Const SBCOLUMNID1 = 4			&apos; Stock ID, sheet 1
9*cdf0e10cSrcweirPublic Const SBCOLUMNQUANTITY1 = 5		&apos; Stock quantity sheet 1
10*cdf0e10cSrcweirPublic Const SBCOLUMNRATE1 = 7			&apos; Price for stocks, sheet 1
11*cdf0e10cSrcweirPublic Const SBCOLUMNNAME2 = 3			&apos; Stock names, sheet 2
12*cdf0e10cSrcweirPublic Const SBCOLUMNDATE2 = 4			&apos; Transaction dates, sheet 2
13*cdf0e10cSrcweirPublic Const SBCOLUMNQUANTITY2 = 5		&apos; Transaction quantity, sheet 2
14*cdf0e10cSrcweirPublic Const SBCOLUMNRATE2 = 6			&apos; Price for stocks, sheet 2
15*cdf0e10cSrcweirPublic Const SBCOLUMNPROVPERCENT2 = 7	&apos; Provision in %, sheet 2
16*cdf0e10cSrcweirPublic Const SBCOLUMNPROVMIN2 = 8		&apos; Minimum provision, sheet 2
17*cdf0e10cSrcweirPublic Const SBCOLUMNPROVFIX2 = 9		&apos; Fixed provision, sheet 2
18*cdf0e10cSrcweirPublic Const SBCOLUMNPROCEEDS2 = 12		&apos; Profit, sheet 2
19*cdf0e10cSrcweirPublic Const SBCOLUMNQTYSOLD2 = 14		&apos; Quantity sold, sheet 2
20*cdf0e10cSrcweirPublic Const SBCOLUMNQTYREST2 = 15		&apos; Quantity not sold yet, sheet 2
21*cdf0e10cSrcweirPublic Const SBCOLUMNPRCREST2 = 16		&apos; Proportional proce for quantity not sold yet, sheet 2
22*cdf0e10cSrcweirPublic Const SBCOLUMNREALPROC2 = 17		&apos; Realized proceeds, sheet 2
23*cdf0e10cSrcweirPublic Const SBCOLUMNDIVIDEND2 = 18		&apos; Dividend paid, sheet 2
24*cdf0e10cSrcweirPublic Const SBCOLUMNREALPROFIT2 = 19	&apos; Realized profit, sheet 2
25*cdf0e10cSrcweirPublic Const SBROWFIRSTTRANSACT2 = 8	&apos; First data row, sheet 2
26*cdf0e10cSrcweirPublic Const SBROWHEADER1 = 6			&apos; Headline, sheet 1
27*cdf0e10cSrcweirPublic Const SBMSGOK = 0
28*cdf0e10cSrcweirPublic Const SBMSGYESNO = 4
29*cdf0e10cSrcweirPublic Const SBMSGSTOP = 16
30*cdf0e10cSrcweirPublic Const SBMSGQUESTION = 32
31*cdf0e10cSrcweirPublic Const SBMSGDEFAULTBTN2 = 256
32*cdf0e10cSrcweirPublic Const SBHASID = 1				&apos; 0 = no ID, 1 = stocks have an ID
33*cdf0e10cSrcweirPublic Const SBDIALOGSELL = 1			&apos; Step for main dialog
34*cdf0e10cSrcweirPublic Const SBDIALOGBUY = 2			&apos; Step for main dialog
35*cdf0e10cSrcweirPublic Const SBBINARY = 0
36*cdf0e10cSrcweirPublic TransactMode as Integer
37*cdf0e10cSrcweirPublic Const LIFO = -1
38*cdf0e10cSrcweirPublic Const FIFO = 1
39*cdf0e10cSrcweir
40*cdf0e10cSrcweirPublic Const HANDLEDIVIDEND = 1
41*cdf0e10cSrcweirPublic Const HANDLESPLIT = 2
42*cdf0e10cSrcweir
43*cdf0e10cSrcweirGlobal oDocument as Object
44*cdf0e10cSrcweirGlobal oDocFormats() as Object
45*cdf0e10cSrcweirGlobal oController as Object
46*cdf0e10cSrcweirGlobal oFirstSheet as Object
47*cdf0e10cSrcweirGlobal oBankSheet as Object
48*cdf0e10cSrcweirGlobal oMovementSheet as Object
49*cdf0e10cSrcweirGlobal sDocLanguage as String
50*cdf0e10cSrcweirGlobal sDocCountry as String
51*cdf0e10cSrcweirGlobal oSheets as Object
52*cdf0e10cSrcweirGlobal oDocLocale as New com.sun.star.lang.Locale
53*cdf0e10cSrcweirGlobal bEnableMarket as Boolean
54*cdf0e10cSrcweirGlobal bEnableInternet as Boolean
55*cdf0e10cSrcweirGlobal oMarketModel as Object
56*cdf0e10cSrcweirGlobal oInternetModel as Object
57*cdf0e10cSrcweir
58*cdf0e10cSrcweirGlobal sCurCurrency$, sCurExtension$, sCurChartSource$, sCurStockIDLabel$, sCurSeparator$
59*cdf0e10cSrcweir
60*cdf0e10cSrcweirPublic oNumberFormatter as Object
61*cdf0e10cSrcweirPublic bDebugmode as Boolean
62*cdf0e10cSrcweirGlobal GlobListindex as Integer
63*cdf0e10cSrcweirPublic blabla() as String
64*cdf0e10cSrcweirPublic SplitDate as Date
65*cdf0e10cSrcweirPublic oChartSheet as Object
66*cdf0e10cSrcweirPublic oBackgroundSheet as Object
67*cdf0e10cSrcweirPublic Const SBDATECOLUMN = 3
68*cdf0e10cSrcweirPublic Const SBVALUECOLUMN = 4
69*cdf0e10cSrcweirPublic Const SBSTARTROW = 25
70*cdf0e10cSrcweirPublic Const SBCHARTPERIOD = 14
71*cdf0e10cSrcweirPublic Const SBINTERVAL = &quot;d&quot;
72*cdf0e10cSrcweirPublic sColumnHeader as String
73*cdf0e10cSrcweirPublic StartDate as Date
74*cdf0e10cSrcweirPublic EndDate as Date
75*cdf0e10cSrcweirPublic iCurRow as Integer
76*cdf0e10cSrcweirPublic iMaxRow as Integer
77*cdf0e10cSrcweirPublic iStartDay as Integer
78*cdf0e10cSrcweirPublic iStartMonth as Integer
79*cdf0e10cSrcweirPublic iStartYear as Integer
80*cdf0e10cSrcweirPublic iEndDay as Integer
81*cdf0e10cSrcweirPublic iEndMonth as Integer
82*cdf0e10cSrcweirPublic iEndYear as Integer
83*cdf0e10cSrcweirPublic oStatusLine as Object
84*cdf0e10cSrcweirPublic Today as Date
85*cdf0e10cSrcweirPublic sInterval as String
86*cdf0e10cSrcweirPublic ShortMonths(11,1)
87*cdf0e10cSrcweirPublic iStep as Integer
88*cdf0e10cSrcweirPublic sDepotCurrency as String
89*cdf0e10cSrcweirPublic iValueCol as Integer
90*cdf0e10cSrcweir
91*cdf0e10cSrcweirPublic DlgReference as Object
92*cdf0e10cSrcweirPublic DlgTransaction as Object
93*cdf0e10cSrcweirPublic DlgStockRates as Object
94*cdf0e10cSrcweirPublic DlgStartUp as Object
95*cdf0e10cSrcweirPublic TransactModel as Object
96*cdf0e10cSrcweirPublic StockRatesModel as Object
97*cdf0e10cSrcweirPublic StartUpModel as Object
98*cdf0e10cSrcweirPublic StockRatesTitle(1 To 3)
99*cdf0e10cSrcweirPublic TransactTitle(1 To 2)
100*cdf0e10cSrcweirPublic NullList()
101*cdf0e10cSrcweirPublic sStartupWelcome$, sStartupChooseMarket$, sStartupHint$
102*cdf0e10cSrcweir
103*cdf0e10cSrcweirPublic sMarket(7,10) as String
104*cdf0e10cSrcweirPublic sCountryMarket(7,10) as String
105*cdf0e10cSrcweir
106*cdf0e10cSrcweirPublic cDlgCaption1$, cDlgCaption2$
107*cdf0e10cSrcweirPublic sMsgError$, sMsgNoName$, sMsgNoQuantity$, sMsgNoDividend$, sMsgNoExchangeRate$
108*cdf0e10cSrcweirPublic sMsgNoValidExchangeDate$, sMsgWrongExchangeDate$, sMsgSellTooMuch$, sMsgConfirm$
109*cdf0e10cSrcweirPublic sMsgFreeStock$, sMsgTotalLoss$, sMsgEndDatebeforeNow$, sMsgStartDatebeforeEndDate$
110*cdf0e10cSrcweir
111*cdf0e10cSrcweirPublic sOk$, sCancel$
112*cdf0e10cSrcweirPublic sMsgAuthorization$, sMsgDeleteAll$
113*cdf0e10cSrcweirPublic SellMethod$
114*cdf0e10cSrcweirPublic cSplit$
115*cdf0e10cSrcweirGlobal HistoryChartSource as String
116*cdf0e10cSrcweirPublic DateCellStyle as String
117*cdf0e10cSrcweirPublic CurrCellStyle as String
118*cdf0e10cSrcweirPublic sStartDate$, sEndDate$, sHistory$
119*cdf0e10cSrcweirPublic sInsertStockname$
120*cdf0e10cSrcweirPublic sProductname$, sTitle$
121*cdf0e10cSrcweirPublic sInsertStocks$, sStockname$, sNoInternetUpdate$, sMarketplace$, sNoInternetDataAvailable$
122*cdf0e10cSrcweirPublic sCheckInternetSettings as String
123*cdf0e10cSrcweir
124*cdf0e10cSrcweirSub LoadLanguage()
125*cdf0e10cSrcweir	LoadDepotDialogs()
126*cdf0e10cSrcweir	Select Case sDocLanguage
127*cdf0e10cSrcweir		Case &quot;de&quot;
128*cdf0e10cSrcweir			LoadGermanLanguage()
129*cdf0e10cSrcweir		Case &quot;en&quot;
130*cdf0e10cSrcweir			LoadEnglishLanguage()
131*cdf0e10cSrcweir		Case &quot;fr&quot;
132*cdf0e10cSrcweir			LoadFrenchLanguage()
133*cdf0e10cSrcweir		Case &quot;it&quot;
134*cdf0e10cSrcweir			LoadItalianLanguage()
135*cdf0e10cSrcweir		Case &quot;es&quot;
136*cdf0e10cSrcweir			LoadSpanishLanguage()
137*cdf0e10cSrcweir		Case &quot;sv&quot;
138*cdf0e10cSrcweir			LoadSwedishLanguage()
139*cdf0e10cSrcweir		Case &quot;ja&quot;
140*cdf0e10cSrcweir			LoadJapaneseLanguage()
141*cdf0e10cSrcweir		Case &quot;ko&quot;
142*cdf0e10cSrcweir			LoadKoreanLanguage()
143*cdf0e10cSrcweir		Case &quot;zh&quot;
144*cdf0e10cSrcweir			If sDocCountry = &quot;CN&quot; Then
145*cdf0e10cSrcweir				LoadChineseSimpleLanguage()
146*cdf0e10cSrcweir			Else
147*cdf0e10cSrcweir				LoadChineseTradLanguage()
148*cdf0e10cSrcweir			End If
149*cdf0e10cSrcweir	End Select
150*cdf0e10cSrcweir	InitializeStartUpModel()
151*cdf0e10cSrcweirEnd Sub
152*cdf0e10cSrcweir
153*cdf0e10cSrcweirSub CompleteMarketList()
154*cdf0e10cSrcweirDim EuroIndex as Integer
155*cdf0e10cSrcweirDim LocCountry as String
156*cdf0e10cSrcweirDim LocLanguage as String
157*cdf0e10cSrcweirDim sLangList() as String
158*cdf0e10cSrcweirDim sCountryList() as String
159*cdf0e10cSrcweirDim sExtensionList() as String
160*cdf0e10cSrcweirDim MaxIndex as Integer
161*cdf0e10cSrcweirDim bIsLocale as Boolean
162*cdf0e10cSrcweir
163*cdf0e10cSrcweir	GlobListIndex = -1
164*cdf0e10cSrcweir	For n = 0 To 5
165*cdf0e10cSrcweir		LocLanguage = sMarket(n,6)
166*cdf0e10cSrcweir		LocCountry = sMarket(n,7)
167*cdf0e10cSrcweir		If Instr(1,LocLanguage,&quot;;&quot;,SBBINARY) = 0 Then
168*cdf0e10cSrcweir			bIsLocale = CheckDocLocale(LocLanguage, LocCountry)
169*cdf0e10cSrcweir		Else
170*cdf0e10cSrcweir			EuroIndex = 0
171*cdf0e10cSrcweir			sLangList() = ArrayoutofString(LocLanguage, &quot;;&quot;, MaxIndex)
172*cdf0e10cSrcweir			sCountryList() = ArrayoutofString(LocCountry, &quot;;&quot;, MaxIndex)
173*cdf0e10cSrcweir			sExtensionList() = ArrayoutofString(sMarket(n,8), &quot;;&quot;, MaxIndex)
174*cdf0e10cSrcweir			For m = 0 To MaxIndex
175*cdf0e10cSrcweir				bIsLocale = CheckDocLocale(sLangList(m), sCountryList(m))
176*cdf0e10cSrcweir				If bIsLocale Then
177*cdf0e10cSrcweir					EuroIndex = m
178*cdf0e10cSrcweir					Exit For
179*cdf0e10cSrcweir				End If
180*cdf0e10cSrcweir			Next m
181*cdf0e10cSrcweir			sMarket(n,6) = sLangList(EuroIndex)
182*cdf0e10cSrcweir			sMarket(n,7) = sCountryList(EuroIndex)
183*cdf0e10cSrcweir			sMarket(n,8) = sExtensionList(EuroIndex)
184*cdf0e10cSrcweir		End If
185*cdf0e10cSrcweir		If bIsLocale Then
186*cdf0e10cSrcweir			GlobListIndex = n
187*cdf0e10cSrcweir			Exit For
188*cdf0e10cSrcweir		End If
189*cdf0e10cSrcweir	Next n
190*cdf0e10cSrcweirEnd Sub
191*cdf0e10cSrcweir
192*cdf0e10cSrcweirSub LocalizedCurrencies()
193*cdf0e10cSrcweir	If GlobListIndex = -1 Then
194*cdf0e10cSrcweir		sCountryMarket(0,0) = &quot;Euro&quot;
195*cdf0e10cSrcweir		sCountryMarket(0,1) = chr(8364)
196*cdf0e10cSrcweir		sCountryMarket(0,2) = &quot;Paris&quot;
197*cdf0e10cSrcweir		sCountryMarket(0,3) = &quot;http://fr.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.PA&amp;f=s4l1t1c1ghov&amp;e=.csv&quot;
198*cdf0e10cSrcweir		sCountryMarket(0,5) = &quot;Code&quot;
199*cdf0e10cSrcweir		sCountryMarket(0,6) = &quot;fr&quot;
200*cdf0e10cSrcweir		sCountryMarket(0,7) = &quot;FR&quot;
201*cdf0e10cSrcweir		sCountryMarket(0,8) = &quot;40C&quot;
202*cdf0e10cSrcweir		sCountryMarket(0,9) = &quot;59/9&quot;
203*cdf0e10cSrcweir		sCountryMarket(0,10) = &quot;1&quot;
204*cdf0e10cSrcweir
205*cdf0e10cSrcweir		sCountryMarket(1,0) = &quot;Euro&quot;
206*cdf0e10cSrcweir		sCountryMarket(1,1) = chr(8364)
207*cdf0e10cSrcweir		sCountryMarket(1,2) = &quot;Milano&quot;
208*cdf0e10cSrcweir		sCountryMarket(1,3) = &quot;http://it.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.MI&amp;f=sl1d1t1c1ohgv&amp;e=.csv&quot;
209*cdf0e10cSrcweir		sCountryMarket(1,5) = &quot;Codice&quot;
210*cdf0e10cSrcweir		sCountryMarket(1,6) = &quot;it&quot;
211*cdf0e10cSrcweir		sCountryMarket(1,7) = &quot;IT&quot;
212*cdf0e10cSrcweir		sCountryMarket(1,8) = &quot;410&quot;
213*cdf0e10cSrcweir		sCountryMarket(1,9) = &quot;44&quot;
214*cdf0e10cSrcweir		sCountryMarket(1,10) = &quot;1&quot;
215*cdf0e10cSrcweir
216*cdf0e10cSrcweir		sCountryMarket(2,0) = &quot;Euro&quot;
217*cdf0e10cSrcweir		sCountryMarket(2,1) = chr(8364)
218*cdf0e10cSrcweir		sCountryMarket(2,2) = &quot;Madrid&quot;
219*cdf0e10cSrcweir		sCountryMarket(2,3) = &quot;http://es.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;&amp;m=MC&amp;f=sl1d1t1c1ohgv&amp;e=.csv&quot;
220*cdf0e10cSrcweir		sCountryMarket(2,5) = &quot;Simbolo&quot;
221*cdf0e10cSrcweir		sCountryMarket(2,6) = &quot;es&quot;
222*cdf0e10cSrcweir		sCountryMarket(2,7) = &quot;ES&quot;
223*cdf0e10cSrcweir		sCountryMarket(2,8) = &quot;40A&quot;
224*cdf0e10cSrcweir		sCountryMarket(2,9) = &quot;44&quot;
225*cdf0e10cSrcweir		sCountryMarket(2,10) = &quot;1&quot;
226*cdf0e10cSrcweir
227*cdf0e10cSrcweir		sCountryMarket(3,0) = &quot;Dansk krone&quot;
228*cdf0e10cSrcweir		sCountryMarket(3,1) = &quot;kr&quot;
229*cdf0e10cSrcweir		sCountryMarket(3,2) = &quot;København&quot;
230*cdf0e10cSrcweir		sCountryMarket(3,3) = &quot;http://dk.finance.yahoo.com/d/quotes.csv?s=&lt;StockID.CO&amp;f=sl1d1t1c1ohgv&amp;e=.csv&quot;
231*cdf0e10cSrcweir		sCountryMarket(3,5) = &quot;Aktiesymbol&quot;
232*cdf0e10cSrcweir		sCountryMarket(3,6) = &quot;da&quot;
233*cdf0e10cSrcweir		sCountryMarket(3,7) = &quot;DK&quot;
234*cdf0e10cSrcweir		sCountryMarket(3,8) = &quot;406&quot;
235*cdf0e10cSrcweir		sCountryMarket(3,9) = &quot;44&quot;
236*cdf0e10cSrcweir		sCountryMarket(3,10) = &quot;1&quot;
237*cdf0e10cSrcweir
238*cdf0e10cSrcweir		sCountryMarket(4,0) = &quot;Svensk krona&quot;
239*cdf0e10cSrcweir		sCountryMarket(4,1) = &quot;kr&quot;
240*cdf0e10cSrcweir		sCountryMarket(4,2) = &quot;Stockholm&quot;
241*cdf0e10cSrcweir		sCountryMarket(4,3) = &quot;http://se.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.L&amp;f=sl1d1t1c1ohgv&amp;e=.c&quot;
242*cdf0e10cSrcweir		sCountryMarket(4,5) = &quot;Kod&quot;
243*cdf0e10cSrcweir		sCountryMarket(4,6) = &quot;sv&quot;
244*cdf0e10cSrcweir		sCountryMarket(4,7) = &quot;SE&quot;
245*cdf0e10cSrcweir		sCountryMarket(4,8) = &quot;41D&quot;
246*cdf0e10cSrcweir		sCountryMarket(4,9) = &quot;44&quot;
247*cdf0e10cSrcweir		sCountryMarket(4,10) = &quot;1&quot;
248*cdf0e10cSrcweir
249*cdf0e10cSrcweir		&apos; Taiwan Dollar
250*cdf0e10cSrcweir		sCountryMarket(5,0) = &quot;新臺幣&quot;
251*cdf0e10cSrcweir		sCountryMarket(5,1) = &quot;¥&quot;
252*cdf0e10cSrcweir		sCountryMarket(5,2) = &quot;代號&quot;
253*cdf0e10cSrcweir		sCountryMarket(5,3) = &quot;http://tw.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.TW&amp;f=sl1d1t1c1ohgv&amp;e=.csv&quot;
254*cdf0e10cSrcweir		sCountryMarket(5,5) = &quot;代號&quot;
255*cdf0e10cSrcweir		sCountryMarket(5,6) = &quot;zh&quot;
256*cdf0e10cSrcweir		sCountryMarket(5,7) = &quot;TW&quot;
257*cdf0e10cSrcweir		sCountryMarket(5,8) = &quot;404&quot;
258*cdf0e10cSrcweir		sCountryMarket(5,9) = &quot;44&quot;
259*cdf0e10cSrcweir		sCountryMarket(5,10) = &quot;1&quot;
260*cdf0e10cSrcweir
261*cdf0e10cSrcweir		&apos; Chinese Yuan
262*cdf0e10cSrcweir		sCountryMarket(6,0) = &quot;人民币&quot;
263*cdf0e10cSrcweir		sCountryMarket(6,1) = &quot;¥&quot;
264*cdf0e10cSrcweir		sCountryMarket(6,2) = &quot;代号&quot;
265*cdf0e10cSrcweir		sCountryMarket(6,3) = &quot;http://cn.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.SS&amp;f=sl1d1t1c1ohgv&amp;e=.csv&quot;
266*cdf0e10cSrcweir		sCountryMarket(6,5) = &quot;代号&quot;
267*cdf0e10cSrcweir		sCountryMarket(6,6) = &quot;zh&quot;
268*cdf0e10cSrcweir		sCountryMarket(6,7) = &quot;CN&quot;
269*cdf0e10cSrcweir		sCountryMarket(6,8) = &quot;804&quot;
270*cdf0e10cSrcweir		sCountryMarket(6,9) = &quot;44&quot;
271*cdf0e10cSrcweir		sCountryMarket(6,10) = &quot;1&quot;
272*cdf0e10cSrcweir
273*cdf0e10cSrcweir		&apos; korean Won
274*cdf0e10cSrcweir		sCountryMarket(7,0) = &quot;한국 원화&quot;
275*cdf0e10cSrcweir		sCountryMarket(7,1) = &quot;₩&quot;
276*cdf0e10cSrcweir		sCountryMarket(7,2) = &quot;서울&quot;
277*cdf0e10cSrcweir		sCountryMarket(7,3) = &quot;http://kr.finance.yahoo.com/d/quotes.csv?s=&lt;StockID&gt;.KS&amp;f=snl1d1t1c1ohgv&amp;e=.csv&quot;
278*cdf0e10cSrcweir		sCountryMarket(7,5) = &quot;종목 코드&quot;
279*cdf0e10cSrcweir		sCountryMarket(7,6) = &quot;ko&quot;
280*cdf0e10cSrcweir		sCountryMarket(7,7) = &quot;KR&quot;
281*cdf0e10cSrcweir		sCountryMarket(7,8) = &quot;412&quot;
282*cdf0e10cSrcweir		sCountryMarket(7,9) = &quot;44&quot;
283*cdf0e10cSrcweir		sCountryMarket(7,10) = &quot;2&quot;
284*cdf0e10cSrcweir
285*cdf0e10cSrcweir
286*cdf0e10cSrcweir&apos;		sCountryMarket(5,0) = &quot;Российский рубль&quot;
287*cdf0e10cSrcweir&apos;		sCountryMarket(5,1) = &quot;р.&quot;
288*cdf0e10cSrcweir&apos;		sCountryMarket(5,2) = &quot;&quot;
289*cdf0e10cSrcweir&apos;		sCountryMarket(5,3) = &quot;&quot;
290*cdf0e10cSrcweir&apos;		sCountryMarket(5,5) = &quot;&quot;
291*cdf0e10cSrcweir&apos;		sCountryMarket(5,6) = &quot;ru&quot;
292*cdf0e10cSrcweir&apos;		sCountryMarket(5,7) = &quot;RU&quot;
293*cdf0e10cSrcweir&apos;		sCountryMarket(5,8) = &quot;-419&quot;
294*cdf0e10cSrcweir&apos;		sCountryMarket(5,9) = &quot;&quot;
295*cdf0e10cSrcweir&apos;
296*cdf0e10cSrcweir&apos;		sCountryMarket(6,0) = &quot;Złoty polski&quot;
297*cdf0e10cSrcweir&apos;		sCountryMarket(6,1) = &quot;zł&quot;
298*cdf0e10cSrcweir&apos;		sCountryMarket(6,2) = &quot;&quot;
299*cdf0e10cSrcweir&apos;		sCountryMarket(6,3) = &quot;&quot;
300*cdf0e10cSrcweir&apos;		sCountryMarket(6,5) = &quot;&quot;				&apos;Still Todo!!
301*cdf0e10cSrcweir&apos;		sCountryMarket(6,6) = &quot;pl&quot;
302*cdf0e10cSrcweir&apos;		sCountryMarket(6,7) = &quot;PL&quot;
303*cdf0e10cSrcweir&apos;		sCountryMarket(6,8) = &quot;-415&quot;
304*cdf0e10cSrcweir&apos;		sCountryMarket(6,9) = &quot;&quot;
305*cdf0e10cSrcweir&apos;
306*cdf0e10cSrcweir&apos;		sCountryMarket(7,0) = &quot;Türkische Lira&quot;
307*cdf0e10cSrcweir&apos;		sCountryMarket(7,1) = &quot;TL&quot;
308*cdf0e10cSrcweir&apos;		sCountryMarket(7,2) = &quot;&quot;
309*cdf0e10cSrcweir&apos;		sCountryMarket(7,3) = &quot;&quot;
310*cdf0e10cSrcweir&apos;		sCountryMarket(7,5) = &quot;&quot;				&apos;Still Todo!!
311*cdf0e10cSrcweir&apos;		sCountryMarket(7,6) = &quot;tr&quot;
312*cdf0e10cSrcweir&apos;		sCountryMarket(7,7) = &quot;TR&quot;
313*cdf0e10cSrcweir&apos;		sCountryMarket(7,8) = &quot;-41F&quot;
314*cdf0e10cSrcweir&apos;		sCountryMarket(7,9) = &quot;&quot;
315*cdf0e10cSrcweir
316*cdf0e10cSrcweir	Dim n as Integer
317*cdf0e10cSrcweir	Dim m as Integer
318*cdf0e10cSrcweir&apos;	Dim sCountryMarket(6,9) as String
319*cdf0e10cSrcweir
320*cdf0e10cSrcweir		For n = 0 To Ubound(sCountryMarket(),1)
321*cdf0e10cSrcweir			If sDocLanguage = sCountryMarket(n,6) and sDocCountry = sCountryMarket(n,7) Then
322*cdf0e10cSrcweir				GlobListIndex = 6
323*cdf0e10cSrcweir				For m = 0 To 10
324*cdf0e10cSrcweir					sMarket(6,m) = sCountryMarket(n,m)
325*cdf0e10cSrcweir				Next m
326*cdf0e10cSrcweir				Exit For
327*cdf0e10cSrcweir			End If
328*cdf0e10cSrcweir		Next n
329*cdf0e10cSrcweir	End If
330*cdf0e10cSrcweirEnd Sub
331*cdf0e10cSrcweir
332*cdf0e10cSrcweirSub LoadDepotDialogs()
333*cdf0e10cSrcweir	DlgTransaction = LoadDialog(&quot;Depot&quot;, &quot;Dialog2&quot;)
334*cdf0e10cSrcweir	DlgStockRates = LoadDialog(&quot;Depot&quot;, &quot;Dialog3&quot;)
335*cdf0e10cSrcweir	DlgStartUp = LoadDialog(&quot;Depot&quot;, &quot;Dialog4&quot;)
336*cdf0e10cSrcweir	TransactModel = DlgTransaction.Model
337*cdf0e10cSrcweir	StockRatesModel = DlgStockRates.Model
338*cdf0e10cSrcweir	StartUpModel = DlgStartUp.Model
339*cdf0e10cSrcweirEnd Sub
340*cdf0e10cSrcweir
341*cdf0e10cSrcweir
342*cdf0e10cSrcweirSub InitializeStartUpModel()
343*cdf0e10cSrcweir	With StartUpModel
344*cdf0e10cSrcweir		.lblWelcome.Label = sStartupWelcome &amp; Chr(13) &amp; chr(13) &amp; sStartUpChooseMarket
345*cdf0e10cSrcweir		sStartUpHint = ReplaceString(sStartUpHint, sHistory, &quot;&lt;History&gt;&quot;)
346*cdf0e10cSrcweir		.lblHint.Label = sStartupHint
347*cdf0e10cSrcweir&apos;		.cmdGoOn.Enabled = Ubound(StartUpModel.lstMarkets.SelectedItems()) &lt;&gt; -1
348*cdf0e10cSrcweir		.cmdGoOn.Label = sOK
349*cdf0e10cSrcweir		.cmdCancel.Label = sCancel
350*cdf0e10cSrcweir	End With
351*cdf0e10cSrcweirEnd Sub</script:module>