home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself VRML 2 in 21 Days / Teach Yourself VRML 2 in 21 Days.iso / mac / HTML Editors and utilites / HTMLedit17.68k / HTML.edit 1.7 (68k) < prev    next >
MacOS Executable  |  1995-09-05  |  1.8 MB  |  [APPL/HTMe]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacOS Executable (executable/macOSExecutable).

You can browse this item here: HTML.edit 1.7 (68k)

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Executable (executable/macOSExecutable) magic Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, busy, bundle, Mon Sep 4 21:52:54 1995, modified Tue Sep 5 07:31:07 1995, creator 'HTMe', type application, 466944 bytes "HTML.edit 1.7 (68k)" DIY-Thermocam raw data (Lepton 3.x), scale 410-8192, spot sensor temperature 0.000000, unit fahrenheit, color scheme 0, calibration: offset 0.000000, slope 18613567395491834982961239902126080.000000, at 0x72080 1390869 bytes resource default (weak)
99% file data default
74% TrID Macintosh Application (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[APPL]
macFileCreator[HTMe]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 48 54 4d 4c 2e 65 | 64 69 74 20 31 2e 37 20 |..HTML.e|dit 1.7 |
|00000010| 28 36 38 6b 29 00 00 00 | 00 00 00 00 00 00 00 00 |(68k)...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 48 54 4d | 65 25 00 00 00 00 00 00 |.APPLHTM|e%......|
|00000050| 00 00 00 00 07 20 00 00 | 15 39 15 ac 71 5d f6 ac |..... ..|.9..q]..|
|00000060| 71 e5 7b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |q.{.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c4 7c 00 00 |........|.....|..|
|00000080| 00 00 72 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..r.STAK|........|
|00000090| 00 00 00 0a 00 07 20 00 | 00 00 72 00 00 00 00 00 |...... .|..r.....|
|000000a0| 00 00 00 00 00 00 00 05 | 00 00 0a 0e 00 00 00 0b |........|........|
|000000b0| 00 00 0b 3e 00 00 16 15 | 00 00 00 02 00 00 0f c0 |...>....|........|
|000000c0| 00 00 22 63 00 00 00 00 | 00 05 00 00 10 00 00 00 |.."c....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 20 80 00 01 70 80 00 | 01 70 80 00 01 70 80 00 |. ...p..|.p...p..|
|000000f0| dd 6c bc b6 00 00 00 00 | 00 d5 01 00 02 2b 03 00 |.l......|.....+..|
|00000100| 00 00 00 00 03 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 75 00 00 0c 65 | 01 56 02 00 00 00 00 00 |...u...e|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 06 fb c0 00 00 00 20 | 00 07 10 40 00 00 0f a0 |....... |...@....|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 48 54 4d 4c 2e | 65 64 69 74 20 76 31 2e |-- HTML.|edit v1.|
|00000690| 37 20 a9 31 39 39 35 20 | 62 79 20 4d 75 72 72 61 |7 .1995 |by Murra|
|000006a0| 79 20 4d 2e 20 41 6c 74 | 68 65 69 6d 2c 20 41 6c |y M. Alt|heim, Al|
|000006b0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000006c0| 64 2e 0d 0d 6f 6e 20 6b | 65 79 44 6f 77 6e 20 6b |d...on k|eyDown k|
|000006d0| 0d 67 6c 6f 62 61 6c 20 | 75 6e 64 6f 6e 65 0d 70 |.global |undone.p|
|000006e0| 75 74 20 63 68 61 72 54 | 6f 4e 75 6d 28 6b 29 20 |ut charT|oNum(k) |
|000006f0| 69 6e 74 6f 20 61 73 63 | 69 69 0d 69 66 20 61 73 |into asc|ii.if as|
|00000700| 63 69 69 20 3d 20 31 20 | 74 68 65 6e 20 67 6f 20 |cii = 1 |then go |
|00000710| 63 64 20 22 69 6e 64 65 | 78 22 0d 65 6c 73 65 20 |cd "inde|x".else |
|00000720| 69 66 20 61 73 63 69 69 | 20 3d 20 34 20 74 68 65 |if ascii| = 4 the|
|00000730| 6e 20 67 6f 20 63 64 20 | 22 70 72 65 66 73 22 0d |n go cd |"prefs".|
|00000740| 65 6c 73 65 20 69 66 20 | 61 73 63 69 69 20 3d 20 |else if |ascii = |
|00000750| 35 20 74 68 65 6e 20 48 | 54 4d 4c 48 65 6c 70 0d |5 then H|TMLHelp.|
|00000760| 65 6c 73 65 20 69 66 20 | 61 73 63 69 69 20 3d 20 |else if |ascii = |
|00000770| 31 31 20 6f 72 20 61 73 | 63 69 69 20 3d 20 31 32 |11 or as|cii = 12|
|00000780| 20 74 68 65 6e 0d 67 65 | 74 20 74 68 65 20 73 65 | then.ge|t the se|
|00000790| 6c 65 63 74 65 64 43 68 | 75 6e 6b 0d 69 66 20 22 |lectedCh|unk.if "|
|000007a0| 63 61 72 64 20 66 69 65 | 6c 64 22 20 69 73 20 69 |card fie|ld" is i|
|000007b0| 6e 20 69 74 20 74 68 65 | 6e 20 70 61 67 65 20 66 |n it the|n page f|
|000007c0| 67 2c 61 73 63 69 69 0d | 65 6c 73 65 20 69 66 20 |g,ascii.|else if |
|000007d0| 22 66 69 65 6c 64 22 20 | 69 73 20 69 6e 20 69 74 |"field" |is in it|
|000007e0| 20 74 68 65 6e 20 70 61 | 67 65 20 62 67 2c 61 73 | then pa|ge bg,as|
|000007f0| 63 69 69 0d 65 6c 73 65 | 20 70 61 73 73 20 6b 65 |cii.else| pass ke|
|00000800| 79 44 6f 77 6e 0d 65 6c | 73 65 20 69 66 20 61 73 |yDown.el|se if as|
|00000810| 63 69 69 20 3d 20 31 32 | 37 20 74 68 65 6e 20 64 |cii = 12|7 then d|
|00000820| 65 6c 46 77 64 0d 65 6c | 73 65 0d 70 75 74 20 46 |elFwd.el|se.put F|
|00000830| 41 4c 53 45 20 69 6e 74 | 6f 20 75 6e 64 6f 6e 65 |ALSE int|o undone|
|00000840| 0d 70 61 73 73 20 6b 65 | 79 44 6f 77 6e 0d 65 6e |.pass ke|yDown.en|
|00000850| 64 20 69 66 0d 65 6e 64 | 20 6b 65 79 44 6f 77 6e |d if.end| keyDown|
|00000860| 0d 0d 6f 6e 20 48 54 4d | 4c 52 65 74 75 72 6e 20 |..on HTM|LReturn |
|00000870| 63 54 61 67 0d 73 65 74 | 55 6e 64 6f 0d 67 65 74 |cTag.set|Undo.get|
|00000880| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 43 68 75 | the sel|ectedChu|
|00000890| 6e 6b 0d 70 75 74 20 77 | 6f 72 64 20 34 20 6f 66 |nk.put w|ord 4 of|
|000008a0| 20 69 74 20 69 6e 74 6f | 20 45 0d 70 75 74 20 77 | it into| E.put w|
|000008b0| 6f 72 64 20 36 20 74 6f | 20 38 20 6f 66 20 69 74 |ord 6 to| 8 of it|
|000008c0| 20 69 6e 74 6f 20 73 46 | 6c 64 0d 64 6f 20 22 70 | into sF|ld.do "p|
|000008d0| 75 74 20 63 68 61 72 20 | 22 26 28 45 2b 31 29 26 |ut char |"&(E+1)&|
|000008e0| 22 20 74 6f 20 22 26 28 | 45 2b 34 29 26 22 20 6f |" to "&(|E+4)&" o|
|000008f0| 66 20 22 26 73 46 6c 64 | 26 22 20 69 6e 74 6f 20 |f "&sFld|&" into |
|00000900| 6e 65 78 74 54 61 67 22 | 0d 69 66 20 63 54 61 67 |nextTag"|.if cTag|
|00000910| 20 3d 20 22 3c 42 52 3e | 22 20 74 68 65 6e 0d 69 | = "<BR>|" then.i|
|00000920| 66 20 6c 65 6e 67 74 68 | 28 73 65 6c 65 63 74 65 |f length|(selecte|
|00000930| 64 54 65 78 74 29 20 3e | 20 30 20 74 68 65 6e 20 |dText) >| 0 then |
|00000940| 70 75 74 20 22 3c 42 52 | 3e 22 26 72 65 74 75 72 |put "<BR|>"&retur|
|00000950| 6e 20 61 66 74 65 72 20 | 74 68 65 20 73 65 6c 65 |n after |the sele|
|00000960| 63 74 69 6f 6e 0d 65 6c | 73 65 20 74 79 70 65 20 |ction.el|se type |
|00000970| 22 3c 42 52 3e 22 26 72 | 65 74 75 72 6e 0d 65 6c |"<BR>"&r|eturn.el|
|00000980| 73 65 0d 69 66 20 6e 65 | 78 74 54 61 67 20 3d 20 |se.if ne|xtTag = |
|00000990| 22 3c 2f 50 3e 22 20 74 | 68 65 6e 0d 64 6f 20 22 |"</P>" t|hen.do "|
|000009a0| 70 75 74 20 72 65 74 75 | 72 6e 26 22 26 71 75 6f |put retu|rn&"&quo|
|000009b0| 74 65 26 22 3c 50 3e 22 | 26 63 54 61 67 26 71 75 |te&"<P>"|&cTag&qu|
|000009c0| 6f 74 65 26 22 20 61 66 | 74 65 72 20 63 68 61 72 |ote&" af|ter char|
|000009d0| 20 22 26 28 45 2b 34 29 | 26 22 20 6f 66 20 22 26 | "&(E+4)|&" of "&|
|000009e0| 73 46 6c 64 0d 64 6f 20 | 22 73 65 6c 65 63 74 20 |sFld.do |"select |
|000009f0| 63 68 61 72 20 22 26 28 | 45 2b 39 29 26 22 20 74 |char "&(|E+9)&" t|
|00000a00| 6f 20 22 26 28 45 2b 38 | 29 26 22 20 6f 66 20 22 |o "&(E+8|)&" of "|
|00000a10| 26 73 46 6c 64 0d 65 6c | 73 65 0d 69 66 20 28 45 |&sFld.el|se.if (E|
|00000a20| 2d 28 77 6f 72 64 20 32 | 20 6f 66 20 69 74 29 2b |-(word 2| of it)+|
|00000a30| 31 29 20 3d 20 30 20 74 | 68 65 6e 20 2d 2d 20 65 |1) = 0 t|hen -- e|
|00000a40| 6d 70 74 79 20 73 65 6c | 65 63 74 69 6f 6e 0d 70 |mpty sel|ection.p|
|00000a50| 75 74 20 72 65 74 75 72 | 6e 26 22 3c 50 3e 22 26 |ut retur|n&"<P>"&|
|00000a60| 63 54 61 67 20 61 66 74 | 65 72 20 74 68 65 20 73 |cTag aft|er the s|
|00000a70| 65 6c 65 63 74 69 6f 6e | 0d 64 6f 20 22 73 65 6c |election|.do "sel|
|00000a80| 65 63 74 20 63 68 61 72 | 20 22 26 28 45 2b 35 29 |ect char| "&(E+5)|
|00000a90| 26 22 20 74 6f 20 22 26 | 28 45 2b 34 29 26 22 20 |&" to "&|(E+4)&" |
|00000aa0| 6f 66 20 22 26 73 46 6c | 64 0d 65 6c 73 65 20 69 |of "&sFl|d.else i|
|00000ab0| 66 20 63 54 61 67 20 3d | 20 22 3c 2f 50 3e 22 20 |f cTag =| "</P>" |
|00000ac0| 74 68 65 6e 20 48 54 4d | 4c 20 22 50 61 72 61 67 |then HTM|L "Parag|
|00000ad0| 72 61 70 68 32 2e 30 22 | 0d 65 6c 73 65 20 48 54 |raph2.0"|.else HT|
|00000ae0| 4d 4c 20 22 50 61 72 61 | 67 72 61 70 68 31 2e 30 |ML "Para|graph1.0|
|00000af0| 22 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |".end if|.end if.|
|00000b00| 65 6e 64 20 48 54 4d 4c | 52 65 74 75 72 6e 0d 0d |end HTML|Return..|
|00000b10| 6f 6e 20 72 65 74 75 72 | 6e 49 6e 46 69 65 6c 64 |on retur|nInField|
|00000b20| 0d 67 6c 6f 62 61 6c 20 | 75 73 65 48 54 4d 4c 52 |.global |useHTMLR|
|00000b30| 65 74 75 72 6e 0d 69 66 | 20 75 73 65 48 54 4d 4c |eturn.if| useHTML|
|00000b40| 52 65 74 75 72 6e 20 ad | 20 54 52 55 45 20 74 68 |Return .| TRUE th|
|00000b50| 65 6e 20 70 61 73 73 20 | 72 65 74 75 72 6e 49 6e |en pass |returnIn|
|00000b60| 46 69 65 6c 64 0d 70 75 | 74 20 74 68 65 20 6f 70 |Field.pu|t the op|
|00000b70| 74 69 6f 6e 4b 65 79 20 | 69 73 20 64 6f 77 6e 20 |tionKey |is down |
|00000b80| 69 6e 74 6f 20 6f 70 6b | 65 79 0d 70 75 74 20 74 |into opk|ey.put t|
|00000b90| 68 65 20 73 68 69 66 74 | 4b 65 79 20 69 73 20 64 |he shift|Key is d|
|00000ba0| 6f 77 6e 20 69 6e 74 6f | 20 73 6b 65 79 0d 67 65 |own into| skey.ge|
|00000bb0| 74 20 74 68 65 20 68 69 | 6c 69 74 65 20 6f 66 20 |t the hi|lite of |
|00000bc0| 63 64 20 62 74 6e 20 69 | 64 20 38 30 20 6f 66 20 |cd btn i|d 80 of |
|00000bd0| 63 64 20 22 70 72 65 66 | 73 22 0d 69 66 20 6f 70 |cd "pref|s".if op|
|00000be0| 6b 65 79 20 61 6e 64 20 | 73 6b 65 79 20 74 68 65 |key and |skey the|
|00000bf0| 6e 0d 69 66 20 69 74 20 | 74 68 65 6e 20 48 54 4d |n.if it |then HTM|
|00000c00| 4c 52 65 74 75 72 6e 20 | 65 6c 73 65 20 48 54 4d |LReturn |else HTM|
|00000c10| 4c 52 65 74 75 72 6e 20 | 22 3c 2f 50 3e 22 0d 65 |LReturn |"</P>".e|
|00000c20| 6c 73 65 20 69 66 20 6f | 70 6b 65 79 20 74 68 65 |lse if o|pkey the|
|00000c30| 6e 0d 69 66 20 69 74 20 | 74 68 65 6e 20 48 54 4d |n.if it |then HTM|
|00000c40| 4c 52 65 74 75 72 6e 20 | 22 3c 2f 50 3e 22 20 65 |LReturn |"</P>" e|
|00000c50| 6c 73 65 20 48 54 4d 4c | 52 65 74 75 72 6e 0d 65 |lse HTML|Return.e|
|00000c60| 6c 73 65 20 69 66 20 73 | 6b 65 79 20 74 68 65 6e |lse if s|key then|
|00000c70| 20 48 54 4d 4c 52 65 74 | 75 72 6e 20 22 3c 42 52 | HTMLRet|urn "<BR|
|00000c80| 3e 22 0d 65 6c 73 65 20 | 70 61 73 73 20 72 65 74 |>".else |pass ret|
|00000c90| 75 72 6e 49 6e 46 69 65 | 6c 64 0d 65 6e 64 20 72 |urnInFie|ld.end r|
|00000ca0| 65 74 75 72 6e 49 6e 46 | 69 65 6c 64 0d 0d 6f 6e |eturnInF|ield..on|
|00000cb0| 20 73 65 74 55 6e 64 6f | 20 6d 6f 64 65 0d 67 6c | setUndo| mode.gl|
|00000cc0| 6f 62 61 6c 20 6c 61 73 | 74 53 65 6c 65 63 74 2c |obal las|tSelect,|
|00000cd0| 68 65 61 64 65 72 2c 62 | 6f 64 79 2c 66 6f 6f 74 |header,b|ody,foot|
|00000ce0| 65 72 2c 75 6e 64 6f 6e | 65 0d 69 66 20 6d 6f 64 |er,undon|e.if mod|
|00000cf0| 65 20 3d 20 22 72 65 73 | 74 6f 72 65 22 20 74 68 |e = "res|tore" th|
|00000d00| 65 6e 0d 69 66 20 6e 6f | 74 20 75 6e 64 6f 6e 65 |en.if no|t undone|
|00000d10| 20 74 68 65 6e 20 65 78 | 69 74 20 73 65 74 55 6e | then ex|it setUn|
|00000d20| 64 6f 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |do.put t|he selec|
|00000d30| 74 65 64 43 68 75 6e 6b | 20 69 6e 74 6f 20 6e 65 |tedChunk| into ne|
|00000d40| 77 53 65 6c 65 63 74 0d | 67 65 74 20 66 6c 64 20 |wSelect.|get fld |
|00000d50| 22 48 65 61 64 65 72 22 | 0d 70 75 74 20 68 65 61 |"Header"|.put hea|
|00000d60| 64 65 72 20 69 6e 74 6f | 20 66 6c 64 20 22 48 65 |der into| fld "He|
|00000d70| 61 64 65 72 22 0d 70 75 | 74 20 69 74 20 69 6e 74 |ader".pu|t it int|
|00000d80| 6f 20 68 65 61 64 65 72 | 0d 67 65 74 20 66 6c 64 |o header|.get fld|
|00000d90| 20 22 42 6f 64 79 22 0d | 70 75 74 20 62 6f 64 79 | "Body".|put body|
|00000da0| 20 69 6e 74 6f 20 66 6c | 64 20 22 42 6f 64 79 22 | into fl|d "Body"|
|00000db0| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 62 6f 64 |.put it |into bod|
|00000dc0| 79 0d 67 65 74 20 66 6c | 64 20 22 46 6f 6f 74 65 |y.get fl|d "Foote|
|00000dd0| 72 22 0d 70 75 74 20 66 | 6f 6f 74 65 72 20 69 6e |r".put f|ooter in|
|00000de0| 74 6f 20 66 6c 64 20 22 | 46 6f 6f 74 65 72 22 0d |to fld "|Footer".|
|00000df0| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 66 6f 6f 74 |put it i|nto foot|
|00000e00| 65 72 0d 73 65 74 49 6e | 66 6f 54 65 78 74 0d 69 |er.setIn|foText.i|
|00000e10| 66 20 6c 61 73 74 53 65 | 6c 65 63 74 20 ad 20 22 |f lastSe|lect . "|
|00000e20| 22 20 74 68 65 6e 0d 73 | 65 6c 65 63 74 20 6c 61 |" then.s|elect la|
|00000e30| 73 74 53 65 6c 65 63 74 | 0d 65 6e 64 20 69 66 0d |stSelect|.end if.|
|00000e40| 70 75 74 20 6e 65 77 53 | 65 6c 65 63 74 20 69 6e |put newS|elect in|
|00000e50| 74 6f 20 6c 61 73 74 53 | 65 6c 65 63 74 0d 65 6c |to lastS|elect.el|
|00000e60| 73 65 20 69 66 20 6d 6f | 64 65 20 3d 20 22 63 6c |se if mo|de = "cl|
|00000e70| 65 61 72 22 20 74 68 65 | 6e 0d 70 75 74 20 22 22 |ear" the|n.put ""|
|00000e80| 20 69 6e 74 6f 20 6c 61 | 73 74 53 65 6c 65 63 74 | into la|stSelect|
|00000e90| 0d 70 75 74 20 22 22 20 | 69 6e 74 6f 20 68 65 61 |.put "" |into hea|
|00000ea0| 64 65 72 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |der.put |"" into |
|00000eb0| 62 6f 64 79 0d 70 75 74 | 20 22 22 20 69 6e 74 6f |body.put| "" into|
|00000ec0| 20 66 6f 6f 74 65 72 0d | 65 6c 73 65 20 2d 2d 20 | footer.|else -- |
|00000ed0| 73 74 6f 72 65 20 63 6f | 6e 74 65 6e 74 73 0d 70 |store co|ntents.p|
|00000ee0| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 43 |ut the s|electedC|
|00000ef0| 68 75 6e 6b 20 69 6e 74 | 6f 20 6c 61 73 74 53 65 |hunk int|o lastSe|
|00000f00| 6c 65 63 74 0d 70 75 74 | 20 66 6c 64 20 22 48 65 |lect.put| fld "He|
|00000f10| 61 64 65 72 22 20 69 6e | 74 6f 20 68 65 61 64 65 |ader" in|to heade|
|00000f20| 72 0d 70 75 74 20 66 6c | 64 20 22 42 6f 64 79 22 |r.put fl|d "Body"|
|00000f30| 20 69 6e 74 6f 20 62 6f | 64 79 0d 70 75 74 20 66 | into bo|dy.put f|
|00000f40| 6c 64 20 22 46 6f 6f 74 | 65 72 22 20 69 6e 74 6f |ld "Foot|er" into|
|00000f50| 20 66 6f 6f 74 65 72 0d | 65 6e 64 20 69 66 0d 70 | footer.|end if.p|
|00000f60| 75 74 20 28 6d 6f 64 65 | 20 ad 20 22 63 6c 65 61 |ut (mode| . "clea|
|00000f70| 72 22 29 20 69 6e 74 6f | 20 75 6e 64 6f 6e 65 0d |r") into| undone.|
|00000f80| 65 6e 64 20 73 65 74 55 | 6e 64 6f 0d 0d 6f 6e 20 |end setU|ndo..on |
|00000f90| 73 68 6f 77 45 6e 74 69 | 74 69 65 73 0d 69 66 20 |showEnti|ties.if |
|00000fa0| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00000fb0| 77 20 22 45 6e 74 69 74 | 69 65 73 22 20 74 68 65 |w "Entit|ies" the|
|00000fc0| 6e 20 73 68 6f 77 20 77 | 69 6e 64 6f 77 20 22 45 |n show w|indow "E|
|00000fd0| 6e 74 69 74 69 65 73 22 | 0d 65 6c 73 65 20 70 69 |ntities"|.else pi|
|00000fe0| 63 74 75 72 65 20 22 45 | 6e 74 69 74 69 65 73 22 |cture "E|ntities"|
|00000ff0| 2c 72 65 73 6f 75 72 63 | 65 2c 70 6c 61 69 6e 2c |,resourc|e,plain,|
|00001000| 74 72 75 65 2c 2c 74 72 | 75 65 0d 65 6e 64 20 73 |true,,tr|ue.end s|
|00001010| 68 6f 77 45 6e 74 69 74 | 69 65 73 0d 0d 6f 6e 20 |howEntit|ies..on |
|00001020| 73 65 6c 65 63 74 45 6e | 74 69 74 79 0d 69 66 20 |selectEn|tity.if |
|00001030| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00001040| 77 20 22 45 6e 74 69 74 | 69 65 73 22 20 74 68 65 |w "Entit|ies" the|
|00001050| 6e 0d 70 75 74 20 72 6f | 75 6e 64 28 28 69 74 65 |n.put ro|und((ite|
|00001060| 6d 20 31 20 6f 66 20 74 | 68 65 20 63 6c 69 63 6b |m 1 of t|he click|
|00001070| 4c 6f 63 2d 69 74 65 6d | 20 31 20 6f 66 20 74 68 |Loc-item| 1 of th|
|00001080| 65 20 6c 6f 63 20 6f 66 | 20 77 69 6e 64 6f 77 20 |e loc of| window |
|00001090| 22 45 6e 74 69 74 69 65 | 73 22 29 20 64 69 76 20 |"Entitie|s") div |
|000010a0| 31 38 29 2b 31 20 69 6e | 74 6f 20 63 6f 6c 0d 70 |18)+1 in|to col.p|
|000010b0| 75 74 20 72 6f 75 6e 64 | 28 28 28 28 69 74 65 6d |ut round|((((item|
|000010c0| 20 32 20 6f 66 20 74 68 | 65 20 63 6c 69 63 6b 4c | 2 of th|e clickL|
|000010d0| 6f 63 29 20 2d 20 31 36 | 29 2d 69 74 65 6d 20 32 |oc) - 16|)-item 2|
|000010e0| 20 6f 66 20 74 68 65 20 | 6c 6f 63 20 6f 66 20 77 | of the |loc of w|
|000010f0| 69 6e 64 6f 77 20 22 45 | 6e 74 69 74 69 65 73 22 |indow "E|ntities"|
|00001100| 29 20 64 69 76 20 31 38 | 29 2b 31 20 69 6e 74 6f |) div 18|)+1 into|
|00001110| 20 72 6f 77 0d 69 66 20 | 72 6f 77 20 3d 20 37 20 | row.if |row = 7 |
|00001120| 61 6e 64 20 63 6f 6c 20 | 3e 20 34 20 74 68 65 6e |and col |> 4 then|
|00001130| 20 67 65 74 20 69 74 65 | 6d 20 28 63 6f 6c 2d 34 | get ite|m (col-4|
|00001140| 29 20 6f 66 20 22 26 6c | 74 3b 2c 26 67 74 3b 2c |) of "&l|t;,&gt;,|
|00001150| 26 61 6d 70 3b 2c 26 71 | 75 6f 74 3b 2c 26 63 6f |&amp;,&q|uot;,&co|
|00001160| 70 79 3b 2c 26 72 65 67 | 3b 2c 26 6e 62 73 70 3b |py;,&reg|;,&nbsp;|
|00001170| 2c 26 23 31 33 39 3b 22 | 0d 65 6c 73 65 20 67 65 |,&#139;"|.else ge|
|00001180| 74 20 65 6e 74 32 48 54 | 4d 4c 28 69 74 65 6d 20 |t ent2HT|ML(item |
|00001190| 63 6f 6c 20 6f 66 20 6c | 69 6e 65 20 72 6f 77 20 |col of l|ine row |
|000011a0| 6f 66 20 63 68 61 72 45 | 6e 74 69 74 79 4d 61 70 |of charE|ntityMap|
|000011b0| 28 29 29 0d 69 66 20 22 | 66 69 65 6c 64 22 20 69 |()).if "|field" i|
|000011c0| 73 20 6e 6f 74 20 69 6e | 20 74 68 65 20 73 65 6c |s not in| the sel|
|000011d0| 65 63 74 65 64 43 68 75 | 6e 6b 20 74 68 65 6e 20 |ectedChu|nk then |
|000011e0| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 6d 73 67 0d |put it i|nto msg.|
|000011f0| 65 6c 73 65 20 48 54 4d | 4c 20 22 50 6f 73 74 54 |else HTM|L "PostT|
|00001200| 61 67 22 2c 69 74 0d 65 | 6e 64 20 69 66 0d 65 6e |ag",it.e|nd if.en|
|00001210| 64 20 73 65 6c 65 63 74 | 45 6e 74 69 74 79 0d 0d |d select|Entity..|
|00001220| 66 75 6e 63 74 69 6f 6e | 20 65 6e 74 32 48 54 4d |function| ent2HTM|
|00001230| 4c 20 65 20 2d 2d 20 72 | 65 74 75 72 6e 20 48 54 |L e -- r|eturn HT|
|00001240| 4d 4c 20 69 66 20 65 6e | 74 69 74 79 20 3e 20 31 |ML if en|tity > 1|
|00001250| 32 37 0d 67 65 74 20 63 | 68 61 72 54 6f 4e 75 6d |27.get c|harToNum|
|00001260| 28 65 29 0d 69 66 20 69 | 74 20 b3 20 31 32 38 20 |(e).if i|t . 128 |
|00001270| 61 6e 64 20 69 74 20 b2 | 20 32 34 34 20 74 68 65 |and it .| 244 the|
|00001280| 6e 0d 67 65 74 20 48 54 | 4d 4c 45 6e 74 69 74 79 |n.get HT|MLEntity|
|00001290| 4d 61 70 28 69 74 20 2d | 20 31 32 37 29 0d 69 66 |Map(it -| 127).if|
|000012a0| 20 69 74 20 3d 20 22 22 | 20 74 68 65 6e 20 72 65 | it = ""| then re|
|000012b0| 74 75 72 6e 20 65 0d 65 | 6c 73 65 20 72 65 74 75 |turn e.e|lse retu|
|000012c0| 72 6e 20 69 74 0d 65 6c | 73 65 20 72 65 74 75 72 |rn it.el|se retur|
|000012d0| 6e 20 65 0d 65 6e 64 20 | 65 6e 74 32 48 54 4d 4c |n e.end |ent2HTML|
|000012e0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 69 74 65 6d 45 |..functi|on itemE|
|000012f0| 78 69 73 74 73 20 69 74 | 65 6d 4c 69 73 74 20 2d |xists it|emList -|
|00001300| 2d 20 66 69 72 73 74 20 | 6c 69 6e 65 20 69 73 20 |- first |line is |
|00001310| 74 68 65 49 74 65 6d 0d | 67 65 74 20 6c 69 6e 65 |theItem.|get line|
|00001320| 20 31 20 6f 66 20 69 74 | 65 6d 4c 69 73 74 0d 64 | 1 of it|emList.d|
|00001330| 65 6c 65 74 65 20 6c 69 | 6e 65 20 31 20 6f 66 20 |elete li|ne 1 of |
|00001340| 69 74 65 6d 4c 69 73 74 | 0d 72 65 70 65 61 74 20 |itemList|.repeat |
|00001350| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6e 75 |with i =| 1 to nu|
|00001360| 6d 62 65 72 28 6c 69 6e | 65 73 20 69 6e 20 69 74 |mber(lin|es in it|
|00001370| 65 6d 4c 69 73 74 29 0d | 69 66 20 6c 69 6e 65 20 |emList).|if line |
|00001380| 69 20 6f 66 20 69 74 65 | 6d 4c 69 73 74 20 69 73 |i of ite|mList is|
|00001390| 20 69 74 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 | it then| return |
|000013a0| 54 52 55 45 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |TRUE.end| repeat.|
|000013b0| 72 65 74 75 72 6e 20 46 | 41 4c 53 45 0d 65 6e 64 |return F|ALSE.end|
|000013c0| 20 69 74 65 6d 45 78 69 | 73 74 73 0d 0d 66 75 6e | itemExi|sts..fun|
|000013d0| 63 74 69 6f 6e 20 67 65 | 74 41 74 74 72 4c 69 73 |ction ge|tAttrLis|
|000013e0| 74 20 74 61 67 2c 61 74 | 74 72 0d 2d 2d 20 72 65 |t tag,at|tr.-- re|
|000013f0| 74 75 72 6e 20 73 70 65 | 63 27 64 20 61 74 74 72 |turn spe|c'd attr|
|00001400| 20 28 6e 61 6d 65 2c 76 | 61 6c 75 65 29 20 6f 66 | (name,v|alue) of|
|00001410| 20 74 61 67 2c 20 6f 72 | 20 6c 69 73 74 20 61 6c | tag, or| list al|
|00001420| 6c 20 69 66 20 61 74 74 | 72 20 3d 20 22 22 0d 2d |l if att|r = "".-|
|00001430| 2d 20 69 66 20 6e 6f 20 | 74 61 67 20 66 6f 75 6e |- if no |tag foun|
|00001440| 64 20 6f 72 20 6e 6f 74 | 20 69 6e 20 55 52 4c 20 |d or not| in URL |
|00001450| 66 6f 72 6d 61 74 2c 20 | 72 65 74 75 72 6e 20 65 |format, |return e|
|00001460| 6d 70 74 79 0d 70 75 74 | 20 31 20 69 6e 74 6f 20 |mpty.put| 1 into |
|00001470| 4c 20 2d 2d 20 6c 69 6e | 65 0d 70 75 74 20 74 61 |L -- lin|e.put ta|
|00001480| 67 20 69 6e 74 6f 20 74 | 68 65 54 61 67 0d 70 75 |g into t|heTag.pu|
|00001490| 74 20 22 22 20 69 6e 74 | 6f 20 61 74 74 72 4c 69 |t "" int|o attrLi|
|000014a0| 73 74 0d 67 65 74 20 6f | 66 66 73 65 74 28 22 20 |st.get o|ffset(" |
|000014b0| 22 2c 74 61 67 29 0d 64 | 65 6c 65 74 65 20 63 68 |",tag).d|elete ch|
|000014c0| 61 72 20 31 20 74 6f 20 | 69 74 20 6f 66 20 74 61 |ar 1 to |it of ta|
|000014d0| 67 0d 72 65 70 65 61 74 | 0d 72 65 70 65 61 74 20 |g.repeat|.repeat |
|000014e0| 77 68 69 6c 65 20 63 68 | 61 72 20 31 20 6f 66 20 |while ch|ar 1 of |
|000014f0| 74 61 67 20 3d 20 22 20 | 22 0d 64 65 6c 65 74 65 |tag = " |".delete|
|00001500| 20 63 68 61 72 20 31 20 | 6f 66 20 74 61 67 0d 65 | char 1 |of tag.e|
|00001510| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 6f 66 |nd repea|t.put of|
|00001520| 66 73 65 74 28 22 3d 22 | 2c 74 61 67 29 20 69 6e |fset("="|,tag) in|
|00001530| 74 6f 20 65 71 0d 69 66 | 20 65 71 20 3d 20 30 20 |to eq.if| eq = 0 |
|00001540| 74 68 65 6e 20 65 78 69 | 74 20 72 65 70 65 61 74 |then exi|t repeat|
|00001550| 0d 70 75 74 20 74 72 69 | 6d 28 63 68 61 72 20 31 |.put tri|m(char 1|
|00001560| 20 74 6f 20 28 65 71 2d | 31 29 20 6f 66 20 74 61 | to (eq-|1) of ta|
|00001570| 67 29 20 69 6e 74 6f 20 | 69 74 65 6d 20 31 20 6f |g) into |item 1 o|
|00001580| 66 20 6c 69 6e 65 20 4c | 20 6f 66 20 61 74 74 72 |f line L| of attr|
|00001590| 4c 69 73 74 0d 64 65 6c | 65 74 65 20 63 68 61 72 |List.del|ete char|
|000015a0| 20 31 20 74 6f 20 65 71 | 20 6f 66 20 74 61 67 0d | 1 to eq| of tag.|
|000015b0| 72 65 70 65 61 74 20 77 | 68 69 6c 65 20 63 68 61 |repeat w|hile cha|
|000015c0| 72 20 31 20 6f 66 20 74 | 61 67 20 3d 20 22 20 22 |r 1 of t|ag = " "|
|000015d0| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 6f |.delete |char 1 o|
|000015e0| 66 20 74 61 67 0d 65 6e | 64 20 72 65 70 65 61 74 |f tag.en|d repeat|
|000015f0| 0d 69 66 20 63 68 61 72 | 20 31 20 6f 66 20 74 61 |.if char| 1 of ta|
|00001600| 67 20 3d 20 71 75 6f 74 | 65 20 6f 72 20 63 68 61 |g = quot|e or cha|
|00001610| 72 20 31 20 6f 66 20 74 | 61 67 20 3d 20 22 d4 22 |r 1 of t|ag = "."|
|00001620| 20 74 68 65 6e 0d 64 65 | 6c 65 74 65 20 63 68 61 | then.de|lete cha|
|00001630| 72 20 31 20 6f 66 20 74 | 61 67 0d 70 75 74 20 6f |r 1 of t|ag.put o|
|00001640| 66 66 73 65 74 28 22 3d | 22 2c 74 61 67 29 20 69 |ffset("=|",tag) i|
|00001650| 6e 74 6f 20 6e 65 78 74 | 45 51 0d 67 65 74 20 6f |nto next|EQ.get o|
|00001660| 66 66 73 65 74 28 71 75 | 6f 74 65 2c 74 61 67 29 |ffset(qu|ote,tag)|
|00001670| 0d 69 66 20 69 74 20 3d | 20 30 20 6f 72 20 28 69 |.if it =| 0 or (i|
|00001680| 74 20 3e 20 6e 65 78 74 | 45 51 20 61 6e 64 20 6e |t > next|EQ and n|
|00001690| 65 78 74 45 51 20 ad 20 | 30 29 20 74 68 65 6e 20 |extEQ . |0) then |
|000016a0| 67 65 74 20 6f 66 66 73 | 65 74 28 22 d5 22 2c 74 |get offs|et(".",t|
|000016b0| 61 67 29 0d 69 66 20 69 | 74 20 3d 20 30 20 6f 72 |ag).if i|t = 0 or|
|000016c0| 20 28 69 74 20 3e 20 6e | 65 78 74 45 51 20 61 6e | (it > n|extEQ an|
|000016d0| 64 20 6e 65 78 74 45 51 | 20 ad 20 30 29 20 74 68 |d nextEQ| . 0) th|
|000016e0| 65 6e 0d 70 72 6f 63 45 | 72 72 6f 72 20 67 65 74 |en.procE|rror get|
|000016f0| 54 45 58 54 28 34 37 30 | 35 29 26 22 20 20 20 22 |TEXT(470|5)&" "|
|00001700| 26 74 68 65 54 61 67 0d | 65 6e 64 20 69 66 0d 65 |&theTag.|end if.e|
|00001710| 6c 73 65 20 67 65 74 20 | 6f 66 66 73 65 74 28 22 |lse get |offset("|
|00001720| 20 22 2c 74 61 67 29 0d | 69 66 20 69 74 20 3d 20 | ",tag).|if it = |
|00001730| 30 20 74 68 65 6e 20 67 | 65 74 20 6c 65 6e 67 74 |0 then g|et lengt|
|00001740| 68 28 74 61 67 29 0d 70 | 75 74 20 74 72 69 6d 28 |h(tag).p|ut trim(|
|00001750| 63 68 61 72 20 31 20 74 | 6f 20 28 69 74 2d 31 29 |char 1 t|o (it-1)|
|00001760| 20 6f 66 20 74 61 67 29 | 20 69 6e 74 6f 20 74 68 | of tag)| into th|
|00001770| 65 56 61 6c 75 65 0d 69 | 66 20 69 74 65 6d 20 31 |eValue.i|f item 1|
|00001780| 20 6f 66 20 6c 69 6e 65 | 20 4c 20 6f 66 20 61 74 | of line| L of at|
|00001790| 74 72 4c 69 73 74 20 3d | 20 61 74 74 72 20 74 68 |trList =| attr th|
|000017a0| 65 6e 20 72 65 74 75 72 | 6e 20 74 68 65 56 61 6c |en retur|n theVal|
|000017b0| 75 65 0d 70 75 74 20 74 | 68 65 56 61 6c 75 65 20 |ue.put t|heValue |
|000017c0| 69 6e 74 6f 20 69 74 65 | 6d 20 32 20 6f 66 20 6c |into ite|m 2 of l|
|000017d0| 69 6e 65 20 4c 20 6f 66 | 20 61 74 74 72 4c 69 73 |ine L of| attrLis|
|000017e0| 74 0d 64 65 6c 65 74 65 | 20 63 68 61 72 20 31 20 |t.delete| char 1 |
|000017f0| 74 6f 20 69 74 20 6f 66 | 20 74 61 67 0d 61 64 64 |to it of| tag.add|
|00001800| 20 31 20 74 6f 20 4c 0d | 65 6e 64 20 72 65 70 65 | 1 to L.|end repe|
|00001810| 61 74 0d 69 66 20 61 74 | 74 72 20 3d 20 22 22 20 |at.if at|tr = "" |
|00001820| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 61 74 74 72 |then ret|urn attr|
|00001830| 4c 69 73 74 20 65 6c 73 | 65 20 72 65 74 75 72 6e |List els|e return|
|00001840| 20 22 22 0d 65 6e 64 20 | 67 65 74 41 74 74 72 4c | "".end |getAttrL|
|00001850| 69 73 74 0d 0d 66 75 6e | 63 74 69 6f 6e 20 61 74 |ist..fun|ction at|
|00001860| 74 72 4d 61 74 63 68 20 | 63 64 49 44 2c 74 61 67 |trMatch |cdID,tag|
|00001870| 2c 61 74 74 72 20 2d 2d | 20 72 65 74 75 72 6e 73 |,attr --| returns|
|00001880| 20 6c 69 73 74 20 6f 66 | 20 6d 61 74 63 68 65 64 | list of| matched|
|00001890| 20 61 74 74 72 69 62 75 | 74 65 73 20 6f 6e 20 74 | attribu|tes on t|
|000018a0| 61 67 0d 69 66 20 63 64 | 49 44 20 3d 20 22 22 20 |ag.if cd|ID = "" |
|000018b0| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 22 22 0d 70 |then ret|urn "".p|
|000018c0| 75 74 20 22 22 20 69 6e | 74 6f 20 69 6e 64 65 78 |ut "" in|to index|
|000018d0| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 77 |.set cur|sor to w|
|000018e0| 61 74 63 68 0d 72 65 70 | 65 61 74 20 77 69 74 68 |atch.rep|eat with|
|000018f0| 20 69 20 3d 20 31 20 74 | 6f 20 33 0d 67 65 74 20 | i = 1 t|o 3.get |
|00001900| 66 6c 64 20 69 64 20 69 | 20 6f 66 20 63 64 20 69 |fld id i| of cd i|
|00001910| 64 20 63 64 49 44 0d 69 | 66 20 72 65 70 28 69 74 |d cdID.i|f rep(it|
|00001920| 2c 72 65 74 75 72 6e 2c | 22 22 29 20 3d 20 22 22 |,return,|"") = ""|
|00001930| 20 74 68 65 6e 20 6e 65 | 78 74 20 72 65 70 65 61 | then ne|xt repea|
|00001940| 74 0d 72 65 70 65 61 74 | 0d 70 75 74 20 6f 66 66 |t.repeat|.put off|
|00001950| 73 65 74 28 74 61 67 2c | 69 74 29 20 69 6e 74 6f |set(tag,|it) into|
|00001960| 20 73 54 61 67 0d 69 66 | 20 73 54 61 67 20 3d 20 | sTag.if| sTag = |
|00001970| 30 20 74 68 65 6e 20 65 | 78 69 74 20 72 65 70 65 |0 then e|xit repe|
|00001980| 61 74 0d 65 6c 73 65 0d | 64 65 6c 65 74 65 20 63 |at.else.|delete c|
|00001990| 68 61 72 20 31 20 74 6f | 20 28 73 54 61 67 2d 31 |har 1 to| (sTag-1|
|000019a0| 29 20 6f 66 20 69 74 0d | 70 75 74 20 6f 66 66 73 |) of it.|put offs|
|000019b0| 65 74 28 22 3e 22 2c 69 | 74 29 20 69 6e 74 6f 20 |et(">",i|t) into |
|000019c0| 65 54 61 67 0d 70 75 74 | 20 6e 65 78 74 49 6e 73 |eTag.put| nextIns|
|000019d0| 74 61 6e 63 65 28 69 74 | 2c 22 3c 22 2c 32 29 20 |tance(it|,"<",2) |
|000019e0| 69 6e 74 6f 20 6e 54 61 | 67 0d 69 66 20 65 54 61 |into nTa|g.if eTa|
|000019f0| 67 20 3d 20 30 20 6f 72 | 20 28 6e 54 61 67 20 3c |g = 0 or| (nTag <|
|00001a00| 20 65 54 61 67 20 61 6e | 64 20 6e 54 61 67 20 ad | eTag an|d nTag .|
|00001a10| 20 22 22 29 0d 74 68 65 | 6e 20 70 72 6f 63 45 72 | "").the|n procEr|
|00001a20| 72 6f 72 20 67 65 74 54 | 65 78 74 28 34 37 30 36 |ror getT|ext(4706|
|00001a30| 29 26 22 d2 22 26 63 68 | 61 72 20 31 20 74 6f 20 |)&"."&ch|ar 1 to |
|00001a40| 65 54 61 67 20 6f 66 20 | 69 74 26 22 d3 22 0d 70 |eTag of |it&".".p|
|00001a50| 75 74 20 63 68 61 72 20 | 31 20 74 6f 20 65 54 61 |ut char |1 to eTa|
|00001a60| 67 20 6f 66 20 69 74 20 | 69 6e 74 6f 20 66 6f 75 |g of it |into fou|
|00001a70| 6e 64 54 61 67 0d 64 65 | 6c 65 74 65 20 63 68 61 |ndTag.de|lete cha|
|00001a80| 72 20 31 20 74 6f 20 65 | 54 61 67 20 6f 66 20 69 |r 1 to e|Tag of i|
|00001a90| 74 0d 69 66 20 61 74 74 | 72 20 69 73 20 69 6e 20 |t.if att|r is in |
|00001aa0| 66 6f 75 6e 64 54 61 67 | 20 74 68 65 6e 0d 70 75 |foundTag| then.pu|
|00001ab0| 74 20 67 65 74 41 74 74 | 72 4c 69 73 74 28 66 6f |t getAtt|rList(fo|
|00001ac0| 75 6e 64 54 61 67 2c 61 | 74 74 72 29 20 69 6e 74 |undTag,a|ttr) int|
|00001ad0| 6f 20 6e 61 6d 65 56 61 | 6c 75 65 0d 69 66 20 6e |o nameVa|lue.if n|
|00001ae0| 61 6d 65 56 61 6c 75 65 | 20 ad 20 22 22 20 74 68 |ameValue| . "" th|
|00001af0| 65 6e 20 70 75 74 20 6e | 61 6d 65 56 61 6c 75 65 |en put n|ameValue|
|00001b00| 26 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 69 6e |&return |after in|
|00001b10| 64 65 78 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |dex.end |if.end i|
|00001b20| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6e 64 |f.end re|peat.end|
|00001b30| 20 72 65 70 65 61 74 0d | 72 65 74 75 72 6e 20 69 | repeat.|return i|
|00001b40| 6e 64 65 78 0d 65 6e 64 | 20 61 74 74 72 4d 61 74 |ndex.end| attrMat|
|00001b50| 63 68 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 67 65 74 |ch..func|tion get|
|00001b60| 42 6f 6f 6b 6d 61 72 6b | 73 20 74 68 65 54 65 78 |Bookmark|s theTex|
|00001b70| 74 0d 73 65 74 20 63 75 | 72 73 6f 72 20 74 6f 20 |t.set cu|rsor to |
|00001b80| 77 61 74 63 68 0d 70 75 | 74 20 22 22 20 69 6e 74 |watch.pu|t "" int|
|00001b90| 6f 20 62 6f 6f 6b 6d 61 | 72 6b 73 0d 72 65 70 65 |o bookma|rks.repe|
|00001ba0| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00001bb0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00001bc0| 69 6e 65 73 20 69 6e 20 | 74 68 65 54 65 78 74 0d |ines in |theText.|
|00001bd0| 67 65 74 20 6f 66 66 73 | 65 74 28 22 3c 41 20 22 |get offs|et("<A "|
|00001be0| 2c 6c 69 6e 65 20 69 20 | 6f 66 20 74 68 65 54 65 |,line i |of theTe|
|00001bf0| 78 74 29 0d 69 66 20 69 | 74 20 ad 20 30 20 74 68 |xt).if i|t . 0 th|
|00001c00| 65 6e 0d 70 75 74 20 63 | 68 61 72 20 69 74 20 74 |en.put c|har it t|
|00001c10| 6f 20 28 6f 66 66 73 65 | 74 28 22 3c 2f 41 3e 22 |o (offse|t("</A>"|
|00001c20| 2c 6c 69 6e 65 20 69 20 | 6f 66 20 74 68 65 54 65 |,line i |of theTe|
|00001c30| 78 74 29 2b 33 29 20 6f | 66 20 6c 69 6e 65 20 69 |xt)+3) o|f line i|
|00001c40| 20 6f 66 20 74 68 65 54 | 65 78 74 20 26 20 72 65 | of theT|ext & re|
|00001c50| 74 75 72 6e 20 61 66 74 | 65 72 20 62 6f 6f 6b 6d |turn aft|er bookm|
|00001c60| 61 72 6b 73 0d 62 7a 0d | 65 6e 64 20 69 66 0d 65 |arks.bz.|end if.e|
|00001c70| 6e 64 20 72 65 70 65 61 | 74 0d 72 65 74 75 72 6e |nd repea|t.return|
|00001c80| 20 62 6f 6f 6b 6d 61 72 | 6b 73 0d 65 6e 64 20 67 | bookmar|ks.end g|
|00001c90| 65 74 42 6f 6f 6b 6d 61 | 72 6b 73 0d 0d 66 75 6e |etBookma|rks..fun|
|00001ca0| 63 74 69 6f 6e 20 67 65 | 74 4e 61 6d 65 20 64 65 |ction ge|tName de|
|00001cb0| 66 0d 67 6c 6f 62 61 6c | 20 74 6f 6f 6c 50 61 6c |f.global| toolPal|
|00001cc0| 65 74 74 65 0d 73 68 6f | 77 44 69 61 6c 6f 67 20 |ette.sho|wDialog |
|00001cd0| 32 2c 34 37 34 37 2c 22 | 45 6e 74 65 72 20 74 68 |2,4747,"|Enter th|
|00001ce0| 65 20 6e 61 6d 65 20 66 | 6f 72 20 74 68 69 73 20 |e name f|or this |
|00001cf0| 74 61 67 3a 22 2c 2c 64 | 65 66 2c 67 59 28 35 30 |tag:",,d|ef,gY(50|
|00001d00| 29 2c 67 58 28 31 32 35 | 29 0d 67 65 74 20 74 68 |),gX(125|).get th|
|00001d10| 65 20 72 65 73 75 6c 74 | 0d 69 66 20 69 74 20 3d |e result|.if it =|
|00001d20| 20 22 22 20 74 68 65 6e | 0d 73 65 74 20 74 68 65 | "" then|.set the|
|00001d30| 20 68 69 6c 69 74 65 64 | 42 75 74 74 6f 6e 20 6f | hilited|Button o|
|00001d40| 66 20 77 69 6e 64 6f 77 | 20 74 6f 6f 6c 50 61 6c |f window| toolPal|
|00001d50| 65 74 74 65 20 74 6f 20 | 30 0d 70 75 74 20 46 41 |ette to |0.put FA|
|00001d60| 4c 53 45 20 69 6e 74 6f | 20 68 69 42 74 6e 0d 65 |LSE into| hiBtn.e|
|00001d70| 6c 73 65 20 72 65 74 75 | 72 6e 20 6c 69 6e 65 20 |lse retu|rn line |
|00001d80| 31 20 6f 66 20 69 74 0d | 65 6e 64 20 67 65 74 4e |1 of it.|end getN|
|00001d90| 61 6d 65 0d 0d 66 75 6e | 63 74 69 6f 6e 20 73 65 |ame..fun|ction se|
|00001da0| 72 76 65 72 46 6f 6c 64 | 65 72 20 66 70 4e 61 6d |rverFold|er fpNam|
|00001db0| 65 2c 66 4e 61 6d 65 0d | 69 66 20 63 64 20 66 6c |e,fName.|if cd fl|
|00001dc0| 64 20 69 64 20 31 35 20 | 6f 66 20 63 64 20 22 70 |d id 15 |of cd "p|
|00001dd0| 72 65 66 73 22 20 3d 20 | 22 22 20 74 68 65 6e 0d |refs" = |"" then.|
|00001de0| 61 6e 73 77 65 72 20 67 | 65 74 54 45 58 54 28 34 |answer g|etTEXT(4|
|00001df0| 37 30 31 29 20 77 69 74 | 68 20 22 4e 6f 22 20 6f |701) wit|h "No" o|
|00001e00| 72 20 22 59 65 73 22 0d | 69 66 20 69 74 20 3d 20 |r "Yes".|if it = |
|00001e10| 22 59 65 73 22 20 74 68 | 65 6e 20 73 65 6e 64 20 |"Yes" th|en send |
|00001e20| 22 6d 6f 75 73 65 55 70 | 22 20 74 6f 20 63 64 20 |"mouseUp|" to cd |
|00001e30| 62 74 6e 20 69 64 20 35 | 39 20 6f 66 20 63 64 20 |btn id 5|9 of cd |
|00001e40| 22 70 72 65 66 73 22 0d | 65 6e 64 20 69 66 0d 67 |"prefs".|end if.g|
|00001e50| 65 74 20 63 64 20 66 6c | 64 20 69 64 20 31 35 20 |et cd fl|d id 15 |
|00001e60| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 0d 69 66 |of cd "p|refs".if|
|00001e70| 20 63 68 61 72 20 31 20 | 74 6f 20 6c 65 6e 67 74 | char 1 |to lengt|
|00001e80| 68 28 69 74 29 20 6f 66 | 20 66 70 4e 61 6d 65 20 |h(it) of| fpName |
|00001e90| 3d 20 69 74 20 74 68 65 | 6e 20 2d 2d 20 61 64 64 |= it the|n -- add|
|00001ea0| 20 72 65 6c 20 70 61 74 | 68 0d 64 65 6c 65 74 65 | rel pat|h.delete|
|00001eb0| 20 63 68 61 72 20 31 20 | 74 6f 20 6c 65 6e 67 74 | char 1 |to lengt|
|00001ec0| 68 28 69 74 29 2d 31 20 | 6f 66 20 66 70 4e 61 6d |h(it)-1 |of fpNam|
|00001ed0| 65 0d 72 65 74 75 72 6e | 20 72 65 70 28 66 70 4e |e.return| rep(fpN|
|00001ee0| 61 6d 65 2c 22 3a 22 2c | 22 2f 22 29 20 2d 2d 20 |ame,":",|"/") -- |
|00001ef0| 70 72 65 66 69 78 20 22 | 2f 22 26 20 3f 0d 65 6c |prefix "|/"& ?.el|
|00001f00| 73 65 20 72 65 74 75 72 | 6e 20 66 4e 61 6d 65 0d |se retur|n fName.|
|00001f10| 65 6e 64 20 73 65 72 76 | 65 72 46 6f 6c 64 65 72 |end serv|erFolder|
|00001f20| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 73 65 72 76 65 |..functi|on serve|
|00001f30| 72 4e 61 6d 65 0d 67 65 | 74 20 63 64 20 66 6c 64 |rName.ge|t cd fld|
|00001f40| 20 69 64 20 31 34 20 6f | 66 20 63 64 20 22 70 72 | id 14 o|f cd "pr|
|00001f50| 65 66 73 22 0d 69 66 20 | 69 74 20 3d 20 22 22 20 |efs".if |it = "" |
|00001f60| 6f 72 20 69 74 20 3d 20 | 22 77 77 77 2e 66 6f 6f |or it = |"www.foo|
|00001f70| 2e 65 64 75 22 20 74 68 | 65 6e 0d 61 6e 73 77 65 |.edu" th|en.answe|
|00001f80| 72 20 67 65 74 54 45 58 | 54 28 34 37 30 32 29 20 |r getTEX|T(4702) |
|00001f90| 77 69 74 68 20 22 4e 6f | 22 20 6f 72 20 22 59 65 |with "No|" or "Ye|
|00001fa0| 73 22 0d 69 66 20 69 74 | 20 3d 20 22 59 65 73 22 |s".if it| = "Yes"|
|00001fb0| 20 74 68 65 6e 0d 61 73 | 6b 20 67 65 74 54 45 58 | then.as|k getTEX|
|00001fc0| 54 28 34 37 30 33 29 20 | 77 69 74 68 20 63 64 20 |T(4703) |with cd |
|00001fd0| 66 6c 64 20 69 64 20 31 | 34 20 6f 66 20 63 64 20 |fld id 1|4 of cd |
|00001fe0| 22 70 72 65 66 73 22 0d | 69 66 20 69 74 20 ad 20 |"prefs".|if it . |
|00001ff0| 22 22 20 74 68 65 6e 0d | 70 75 74 20 69 74 20 69 |"" then.|put it i|
|00002000| 6e 74 6f 20 63 64 20 66 | 6c 64 20 69 64 20 31 34 |nto cd f|ld id 14|
|00002010| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 0d 65 | of cd "|prefs".e|
|00002020| 6e 64 20 69 66 0d 65 6c | 73 65 20 67 65 74 20 22 |nd if.el|se get "|
|00002030| 22 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 69 74 20 |".end if|.put it |
|00002040| 69 6e 74 6f 20 6c 69 6e | 65 20 31 20 6f 66 20 73 |into lin|e 1 of s|
|00002050| 65 72 76 65 72 49 6e 66 | 6f 20 2d 2d 20 73 65 72 |erverInf|o -- ser|
|00002060| 76 65 72 20 6e 61 6d 65 | 0d 70 75 74 20 63 64 20 |ver name|.put cd |
|00002070| 66 6c 64 20 69 64 20 36 | 36 20 6f 66 20 63 64 20 |fld id 6|6 of cd |
|00002080| 22 70 72 65 66 73 22 20 | 69 6e 74 6f 20 6c 69 6e |"prefs" |into lin|
|00002090| 65 20 32 20 6f 66 20 73 | 65 72 76 65 72 49 6e 66 |e 2 of s|erverInf|
|000020a0| 6f 20 2d 2d 20 70 6f 72 | 74 0d 73 65 6e 64 20 22 |o -- por|t.send "|
|000020b0| 73 65 74 53 65 72 76 65 | 72 4e 61 6d 65 22 20 74 |setServe|rName" t|
|000020c0| 6f 20 63 64 20 22 70 72 | 65 66 73 22 0d 72 65 74 |o cd "pr|efs".ret|
|000020d0| 75 72 6e 20 73 65 72 76 | 65 72 49 6e 66 6f 0d 65 |urn serv|erInfo.e|
|000020e0| 6e 64 20 73 65 72 76 65 | 72 4e 61 6d 65 0d 0d 66 |nd serve|rName..f|
|000020f0| 75 6e 63 74 69 6f 6e 20 | 67 65 74 42 72 6f 77 73 |unction |getBrows|
|00002100| 65 72 20 2d 2d 20 72 65 | 74 75 72 6e 20 70 61 74 |er -- re|turn pat|
|00002110| 68 20 74 6f 20 62 72 6f | 77 73 65 72 0d 70 75 74 |h to bro|wser.put|
|00002120| 20 63 64 20 66 6c 64 20 | 69 64 20 37 38 20 6f 66 | cd fld |id 78 of|
|00002130| 20 63 64 20 22 70 72 65 | 66 73 22 20 69 6e 74 6f | cd "pre|fs" into|
|00002140| 20 74 68 65 42 72 6f 77 | 73 65 72 50 61 74 68 0d | theBrow|serPath.|
|00002150| 72 65 70 65 61 74 20 77 | 68 69 6c 65 20 74 68 65 |repeat w|hile the|
|00002160| 72 65 20 69 73 20 6e 6f | 74 20 61 6e 20 61 70 70 |re is no|t an app|
|00002170| 6c 69 63 61 74 69 6f 6e | 20 74 68 65 42 72 6f 77 |lication| theBrow|
|00002180| 73 65 72 50 61 74 68 0d | 73 65 6e 64 20 22 73 65 |serPath.|send "se|
|00002190| 74 42 72 6f 77 73 65 72 | 50 61 74 68 22 20 74 6f |tBrowser|Path" to|
|000021a0| 20 63 64 20 69 64 20 39 | 39 39 33 0d 70 75 74 20 | cd id 9|993.put |
|000021b0| 63 64 20 66 6c 64 20 69 | 64 20 37 38 20 6f 66 20 |cd fld i|d 78 of |
|000021c0| 63 64 20 22 70 72 65 66 | 73 22 20 69 6e 74 6f 20 |cd "pref|s" into |
|000021d0| 74 68 65 42 72 6f 77 73 | 65 72 50 61 74 68 0d 65 |theBrows|erPath.e|
|000021e0| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 6c 65 |nd repea|t.put le|
|000021f0| 61 66 4e 61 6d 65 28 74 | 68 65 42 72 6f 77 73 65 |afName(t|heBrowse|
|00002200| 72 50 61 74 68 29 20 69 | 6e 74 6f 20 74 68 65 42 |rPath) i|nto theB|
|00002210| 72 6f 77 73 65 72 0d 70 | 75 74 20 71 75 6f 74 65 |rowser.p|ut quote|
|00002220| 26 74 68 65 42 72 6f 77 | 73 65 72 50 61 74 68 26 |&theBrow|serPath&|
|00002230| 71 75 6f 74 65 20 69 6e | 74 6f 20 74 68 65 42 72 |quote in|to theBr|
|00002240| 6f 77 73 65 72 4e 61 6d | 65 0d 72 65 74 75 72 6e |owserNam|e.return|
|00002250| 20 74 68 65 42 72 6f 77 | 73 65 72 50 61 74 68 0d | theBrow|serPath.|
|00002260| 65 6e 64 20 67 65 74 42 | 72 6f 77 73 65 72 0d 0d |end getB|rowser..|
|00002270| 66 75 6e 63 74 69 6f 6e | 20 68 6f 74 4c 69 73 74 |function| hotList|
|00002280| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 77 |.set cur|sor to w|
|00002290| 61 74 63 68 0d 70 75 74 | 20 63 64 20 66 6c 64 20 |atch.put| cd fld |
|000022a0| 22 48 6f 74 6c 69 73 74 | 22 20 6f 66 20 63 64 20 |"Hotlist|" of cd |
|000022b0| 22 70 72 65 66 73 22 20 | 69 6e 74 6f 20 74 68 65 |"prefs" |into the|
|000022c0| 54 65 78 74 0d 70 75 74 | 20 72 65 70 28 74 68 65 |Text.put| rep(the|
|000022d0| 54 65 78 74 2c 22 3c 2f | 41 3e 22 29 20 69 6e 74 |Text,"</|A>") int|
|000022e0| 6f 20 74 68 65 54 65 78 | 74 0d 70 75 74 20 22 22 |o theTex|t.put ""|
|000022f0| 20 69 6e 74 6f 20 68 6f | 74 4c 69 73 74 0d 69 66 | into ho|tList.if|
|00002300| 20 74 68 65 54 65 78 74 | 20 ad 20 22 22 20 74 68 | theText| . "" th|
|00002310| 65 6e 0d 70 75 74 20 72 | 65 70 28 74 68 65 54 65 |en.put r|ep(theTe|
|00002320| 78 74 2c 22 3b 22 29 20 | 69 6e 74 6f 20 74 68 65 |xt,";") |into the|
|00002330| 54 65 78 74 0d 70 75 74 | 20 22 22 20 69 6e 74 6f |Text.put| "" into|
|00002340| 20 68 6f 74 4c 69 73 74 | 0d 72 65 70 65 61 74 20 | hotList|.repeat |
|00002350| 77 69 74 68 20 69 20 3d | 20 31 20 74 6f 20 6e 75 |with i =| 1 to nu|
|00002360| 6d 62 65 72 28 6c 69 6e | 65 73 20 69 6e 20 74 68 |mber(lin|es in th|
|00002370| 65 54 65 78 74 29 0d 70 | 75 74 20 6c 69 6e 65 20 |eText).p|ut line |
|00002380| 69 20 6f 66 20 74 68 65 | 54 65 78 74 20 69 6e 74 |i of the|Text int|
|00002390| 6f 20 4c 0d 69 66 20 63 | 68 61 72 20 31 20 6f 66 |o L.if c|har 1 of|
|000023a0| 20 4c 20 3d 20 22 28 22 | 20 74 68 65 6e 20 70 75 | L = "("| then pu|
|000023b0| 74 20 4c 26 72 65 74 75 | 72 6e 20 61 66 74 65 72 |t L&retu|rn after|
|000023c0| 20 68 6f 74 4c 69 73 74 | 0d 65 6c 73 65 20 69 66 | hotList|.else if|
|000023d0| 20 28 4c 20 ad 20 22 22 | 29 20 61 6e 64 20 28 63 | (L . ""|) and (c|
|000023e0| 68 61 72 20 31 20 74 6f | 20 32 20 6f 66 20 4c 20 |har 1 to| 2 of L |
|000023f0| ad 20 22 2d 22 26 22 2d | 22 29 20 61 6e 64 20 28 |. "-"&"-|") and (|
|00002400| 63 68 61 72 20 31 20 6f | 66 20 4c 20 ad 20 22 23 |char 1 o|f L . "#|
|00002410| 22 29 20 74 68 65 6e 0d | 67 65 74 20 67 65 74 41 |") then.|get getA|
|00002420| 74 74 72 4c 69 73 74 28 | 4c 2c 22 48 52 45 46 22 |ttrList(|L,"HREF"|
|00002430| 29 0d 69 66 20 69 74 20 | 3d 20 22 22 20 74 68 65 |).if it |= "" the|
|00002440| 6e 20 70 75 74 20 4c 20 | 61 66 74 65 72 20 68 6f |n put L |after ho|
|00002450| 74 4c 69 73 74 0d 65 6c | 73 65 20 70 75 74 20 69 |tList.el|se put i|
|00002460| 74 20 61 66 74 65 72 20 | 68 6f 74 4c 69 73 74 0d |t after |hotList.|
|00002470| 67 65 74 20 28 6f 66 66 | 73 65 74 28 22 3e 22 2c |get (off|set(">",|
|00002480| 4c 29 29 0d 69 66 20 69 | 74 20 3e 20 30 20 74 68 |L)).if i|t > 0 th|
|00002490| 65 6e 20 70 75 74 20 22 | 2c 22 26 28 63 68 61 72 |en put "|,"&(char|
|000024a0| 20 28 69 74 2b 31 29 20 | 74 6f 20 6c 65 6e 67 74 | (it+1) |to lengt|
|000024b0| 68 28 4c 29 20 6f 66 20 | 4c 29 26 72 65 74 75 72 |h(L) of |L)&retur|
|000024c0| 6e 20 61 66 74 65 72 20 | 68 6f 74 4c 69 73 74 0d |n after |hotList.|
|000024d0| 65 6c 73 65 20 70 75 74 | 20 72 65 74 75 72 6e 20 |else put| return |
|000024e0| 61 66 74 65 72 20 68 6f | 74 4c 69 73 74 0d 65 6e |after ho|tList.en|
|000024f0| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|00002500| 65 6e 64 20 69 66 0d 70 | 75 74 20 68 6f 74 4c 69 |end if.p|ut hotLi|
|00002510| 73 74 20 69 6e 74 6f 20 | 63 64 20 62 74 6e 20 69 |st into |cd btn i|
|00002520| 64 20 32 30 32 20 6f 66 | 20 63 64 20 69 64 20 39 |d 202 of| cd id 9|
|00002530| 39 39 33 0d 72 65 74 75 | 72 6e 20 68 6f 74 4c 69 |993.retu|rn hotLi|
|00002540| 73 74 0d 65 6e 64 20 68 | 6f 74 4c 69 73 74 0d 0d |st.end h|otList..|
|00002550| 66 75 6e 63 74 69 6f 6e | 20 67 65 74 42 61 73 65 |function| getBase|
|00002560| 20 63 64 49 44 0d 70 75 | 74 20 66 6c 64 20 22 66 | cdID.pu|t fld "f|
|00002570| 75 6c 6c 50 61 74 68 4e | 61 6d 65 22 20 6f 66 20 |ullPathN|ame" of |
|00002580| 63 64 20 69 64 20 63 64 | 49 44 20 69 6e 74 6f 20 |cd id cd|ID into |
|00002590| 66 70 6e 0d 69 66 20 66 | 70 6e 20 3d 20 22 22 20 |fpn.if f|pn = "" |
|000025a0| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 22 22 0d 70 |then ret|urn "".p|
|000025b0| 75 74 20 63 64 20 66 6c | 64 20 69 64 20 31 35 20 |ut cd fl|d id 15 |
|000025c0| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 20 69 6e |of cd "p|refs" in|
|000025d0| 74 6f 20 73 65 72 76 65 | 72 50 61 74 68 20 2d 2d |to serve|rPath --|
|000025e0| 20 65 78 69 73 74 73 3f | 0d 67 65 74 20 69 74 65 | exists?|.get ite|
|000025f0| 6d 20 32 20 6f 66 20 66 | 69 6c 65 53 79 73 49 6e |m 2 of f|ileSysIn|
|00002600| 66 6f 28 73 65 72 76 65 | 72 50 61 74 68 29 0d 69 |fo(serve|rPath).i|
|00002610| 66 20 28 69 74 20 ad 20 | 22 46 6f 6c 64 65 72 22 |f (it . |"Folder"|
|00002620| 20 61 6e 64 20 69 74 20 | ad 20 22 44 69 73 63 22 | and it |. "Disc"|
|00002630| 29 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 22 22 |) then r|eturn ""|
|00002640| 20 2d 2d 20 69 6e 76 61 | 6c 69 64 20 70 61 74 68 | -- inva|lid path|
|00002650| 0d 70 75 74 20 63 64 20 | 66 6c 64 20 69 64 20 39 |.put cd |fld id 9|
|00002660| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 20 69 | of cd "|prefs" i|
|00002670| 6e 74 6f 20 73 65 72 76 | 65 72 55 52 4c 20 2d 2d |nto serv|erURL --|
|00002680| 20 65 6d 70 74 79 3f 0d | 2d 2d 20 70 75 74 20 73 | empty?.|-- put s|
|00002690| 65 72 76 65 72 46 6f 6c | 64 65 72 28 66 70 6e 2c |erverFol|der(fpn,|
|000026a0| 66 6c 64 20 22 74 69 74 | 6c 65 22 20 6f 66 20 63 |fld "tit|le" of c|
|000026b0| 64 20 69 64 20 63 64 49 | 44 29 20 69 6e 74 6f 20 |d id cdI|D) into |
|000026c0| 74 68 65 50 61 74 68 0d | 70 75 74 20 73 65 72 76 |thePath.|put serv|
|000026d0| 65 72 46 6f 6c 64 65 72 | 28 66 70 6e 29 20 69 6e |erFolder|(fpn) in|
|000026e0| 74 6f 20 74 68 65 50 61 | 74 68 0d 69 66 20 28 73 |to thePa|th.if (s|
|000026f0| 65 72 76 65 72 55 52 4c | 20 ad 20 22 22 29 20 61 |erverURL| . "") a|
|00002700| 6e 64 20 28 74 68 65 50 | 61 74 68 20 ad 20 22 22 |nd (theP|ath . ""|
|00002710| 29 20 74 68 65 6e 0d 64 | 65 6c 65 74 65 20 63 68 |) then.d|elete ch|
|00002720| 61 72 20 31 20 6f 66 20 | 74 68 65 50 61 74 68 0d |ar 1 of |thePath.|
|00002730| 72 65 74 75 72 6e 20 22 | 3c 42 41 53 45 20 48 52 |return "|<BASE HR|
|00002740| 45 46 3d 22 26 71 75 6f | 74 65 26 73 65 72 76 65 |EF="&quo|te&serve|
|00002750| 72 55 52 4c 26 74 68 65 | 50 61 74 68 26 71 75 6f |rURL&the|Path&quo|
|00002760| 74 65 26 22 3e 22 0d 65 | 6c 73 65 20 72 65 74 75 |te&">".e|lse retu|
|00002770| 72 6e 20 22 22 0d 65 6e | 64 20 67 65 74 42 61 73 |rn "".en|d getBas|
|00002780| 65 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 62 67 49 44 |e..funct|ion bgID|
|00002790| 20 63 64 49 44 0d 6c 6f | 63 6b 20 73 63 72 65 65 | cdID.lo|ck scree|
|000027a0| 6e 0d 6c 6f 63 6b 20 6d | 65 73 73 61 67 65 73 0d |n.lock m|essages.|
|000027b0| 70 75 73 68 20 63 64 0d | 67 6f 20 63 64 20 69 64 |push cd.|go cd id|
|000027c0| 20 63 64 49 44 0d 69 66 | 20 74 68 65 20 72 65 73 | cdID.if| the res|
|000027d0| 75 6c 74 20 3d 20 22 22 | 20 74 68 65 6e 20 67 65 |ult = ""| then ge|
|000027e0| 74 20 74 68 65 20 69 64 | 20 6f 66 20 74 68 69 73 |t the id| of this|
|000027f0| 20 62 67 20 65 6c 73 65 | 20 67 65 74 20 22 22 0d | bg else| get "".|
|00002800| 70 6f 70 20 63 64 0d 75 | 6e 6c 6f 63 6b 20 73 63 |pop cd.u|nlock sc|
|00002810| 72 65 65 6e 0d 72 65 74 | 75 72 6e 20 69 74 0d 65 |reen.ret|urn it.e|
|00002820| 6e 64 20 62 67 49 44 0d | 0d 66 75 6e 63 74 69 6f |nd bgID.|.functio|
|00002830| 6e 20 64 6f 63 53 69 7a | 65 20 49 44 4c 69 73 74 |n docSiz|e IDList|
|00002840| 0d 69 66 20 49 44 4c 69 | 73 74 20 3d 20 22 22 20 |.if IDLi|st = "" |
|00002850| 74 68 65 6e 20 70 75 74 | 20 74 68 65 20 73 68 6f |then put| the sho|
|00002860| 72 74 20 69 64 20 6f 66 | 20 74 68 69 73 20 63 64 |rt id of| this cd|
|00002870| 20 69 6e 74 6f 20 49 44 | 4c 69 73 74 0d 67 65 74 | into ID|List.get|
|00002880| 20 30 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 | 0.repea|t with i|
|00002890| 20 3d 20 31 20 74 6f 20 | 6e 75 6d 62 65 72 28 69 | = 1 to |number(i|
|000028a0| 74 65 6d 73 20 69 6e 20 | 49 44 4c 69 73 74 29 0d |tems in |IDList).|
|000028b0| 70 75 74 20 69 74 65 6d | 20 69 20 6f 66 20 49 44 |put item| i of ID|
|000028c0| 4c 69 73 74 20 69 6e 74 | 6f 20 74 68 65 49 44 0d |List int|o theID.|
|000028d0| 61 64 64 20 6c 65 6e 67 | 74 68 28 66 6c 64 20 22 |add leng|th(fld "|
|000028e0| 48 65 61 64 65 72 22 20 | 6f 66 20 63 64 20 69 64 |Header" |of cd id|
|000028f0| 20 74 68 65 49 44 29 2b | 6c 65 6e 67 74 68 28 66 | theID)+|length(f|
|00002900| 6c 64 20 22 62 6f 64 79 | 22 20 6f 66 20 63 64 20 |ld "body|" of cd |
|00002910| 69 64 20 74 68 65 49 44 | 29 2b 6c 65 6e 67 74 68 |id theID|)+length|
|00002920| 28 66 6c 64 20 22 66 6f | 6f 74 65 72 22 20 6f 66 |(fld "fo|oter" of|
|00002930| 20 63 64 20 69 64 20 74 | 68 65 49 44 29 20 74 6f | cd id t|heID) to|
|00002940| 20 69 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 | it.end |repeat.r|
|00002950| 65 74 75 72 6e 20 69 74 | 0d 65 6e 64 20 64 6f 63 |eturn it|.end doc|
|00002960| 53 69 7a 65 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 64 |Size..fu|nction d|
|00002970| 6f 63 43 6f 75 6e 74 0d | 72 65 74 75 72 6e 20 6e |ocCount.|return n|
|00002980| 75 6d 62 65 72 28 63 64 | 73 20 69 6e 20 62 67 20 |umber(cd|s in bg |
|00002990| 22 45 64 69 74 6f 72 22 | 29 0d 65 6e 64 20 64 6f |"Editor"|).end do|
|000029a0| 63 43 6f 75 6e 74 0d 0d | 66 75 6e 63 74 69 6f 6e |cCount..|function|
|000029b0| 20 67 72 65 70 43 6f 6e | 76 65 72 74 20 69 0d 67 | grepCon|vert i.g|
|000029c0| 6c 6f 62 61 6c 20 4c 46 | 2c 46 46 0d 67 65 74 20 |lobal LF|,FF.get |
|000029d0| 72 65 70 28 69 74 2c 22 | 5c 66 22 2c 46 46 29 0d |rep(it,"|\f",FF).|
|000029e0| 67 65 74 20 72 65 70 28 | 69 2c 22 5c 6c 22 2c 4c |get rep(|i,"\l",L|
|000029f0| 46 29 0d 67 65 74 20 72 | 65 70 28 69 74 2c 22 5c |F).get r|ep(it,"\|
|00002a00| 6e 22 2c 72 65 74 75 72 | 6e 26 4c 46 29 0d 67 65 |n",retur|n&LF).ge|
|00002a10| 74 20 72 65 70 28 69 74 | 2c 22 5c 71 22 2c 71 75 |t rep(it|,"\q",qu|
|00002a20| 6f 74 65 29 0d 67 65 74 | 20 72 65 70 28 69 74 2c |ote).get| rep(it,|
|00002a30| 22 5c 72 22 2c 72 65 74 | 75 72 6e 29 0d 67 65 74 |"\r",ret|urn).get|
|00002a40| 20 72 65 70 28 69 74 2c | 22 5c 73 22 2c 22 20 22 | rep(it,|"\s"," "|
|00002a50| 29 0d 67 65 74 20 72 65 | 70 28 69 74 2c 22 5c 74 |).get re|p(it,"\t|
|00002a60| 22 2c 74 61 62 29 0d 72 | 65 74 75 72 6e 20 69 74 |",tab).r|eturn it|
|00002a70| 0d 65 6e 64 20 67 72 65 | 70 43 6f 6e 76 65 72 74 |.end gre|pConvert|
|00002a80| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 69 6e 73 65 72 |..functi|on inser|
|00002a90| 74 44 61 74 65 54 69 6d | 65 20 74 68 65 54 65 78 |tDateTim|e theTex|
|00002aa0| 74 0d 70 75 74 20 67 65 | 74 54 45 58 54 28 34 37 |t.put ge|tTEXT(47|
|00002ab0| 34 33 29 20 69 6e 74 6f | 20 63 75 73 74 6f 6d 45 |43) into| customE|
|00002ac0| 6e 74 69 74 69 65 73 0d | 70 75 74 20 67 65 74 54 |ntities.|put getT|
|00002ad0| 45 58 54 28 34 37 34 35 | 29 20 69 6e 74 6f 20 63 |EXT(4745|) into c|
|00002ae0| 75 73 74 6f 6d 53 74 72 | 69 6e 67 73 0d 72 65 70 |ustomStr|ings.rep|
|00002af0| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00002b00| 6f 20 35 0d 64 6f 20 22 | 67 65 74 20 74 68 65 22 |o 5.do "|get the"|
|00002b10| 26 26 69 74 65 6d 20 69 | 20 6f 66 20 63 75 73 74 |&&item i| of cust|
|00002b20| 6f 6d 53 74 72 69 6e 67 | 73 0d 70 75 74 20 72 65 |omString|s.put re|
|00002b30| 70 28 74 68 65 54 65 78 | 74 2c 69 74 65 6d 20 69 |p(theTex|t,item i|
|00002b40| 20 6f 66 20 63 75 73 74 | 6f 6d 45 6e 74 69 74 69 | of cust|omEntiti|
|00002b50| 65 73 2c 69 74 29 20 69 | 6e 74 6f 20 74 68 65 54 |es,it) i|nto theT|
|00002b60| 65 78 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |ext.end |repeat.r|
|00002b70| 65 74 75 72 6e 20 74 68 | 65 54 65 78 74 0d 65 6e |eturn th|eText.en|
|00002b80| 64 20 69 6e 73 65 72 74 | 44 61 74 65 54 69 6d 65 |d insert|DateTime|
|00002b90| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 64 65 6c 65 74 |..functi|on delet|
|00002ba0| 65 48 54 4d 4c 20 65 43 | 6f 64 65 2c 66 6c 64 49 |eHTML eC|ode,fldI|
|00002bb0| 44 2c 63 6f 6d 70 6c 65 | 78 20 2d 2d 20 65 78 2e |D,comple|x -- ex.|
|00002bc0| 20 28 22 3c 42 4f 44 59 | 3e 22 2c 31 32 33 29 0d | ("<BODY|>",123).|
|00002bd0| 2d 2d 20 67 69 76 65 6e | 20 3c 58 3e 2c 20 64 65 |-- given| <X>, de|
|00002be0| 6c 65 74 65 20 61 6c 6c | 20 6f 63 63 20 69 6e 20 |lete all| occ in |
|00002bf0| 48 42 46 20 6f 66 20 3c | 58 3e 20 26 20 3c 2f 58 |HBF of <|X> & </X|
|00002c00| 3e 2c 20 72 65 74 75 72 | 6e 73 20 54 52 55 45 20 |>, retur|ns TRUE |
|00002c10| 69 66 20 63 68 61 6e 67 | 65 64 0d 70 75 74 20 28 |if chang|ed.put (|
|00002c20| 63 6f 6d 70 6c 65 78 20 | 3d 20 54 52 55 45 29 20 |complex |= TRUE) |
|00002c30| 69 6e 74 6f 20 63 6f 6d | 70 6c 65 78 54 61 67 0d |into com|plexTag.|
|00002c40| 70 75 74 20 46 41 4c 53 | 45 20 69 6e 74 6f 20 66 |put FALS|E into f|
|00002c50| 6f 75 6e 64 48 54 4d 4c | 0d 70 75 74 20 65 43 6f |oundHTML|.put eCo|
|00002c60| 64 65 20 69 6e 74 6f 20 | 73 43 6f 64 65 0d 70 75 |de into |sCode.pu|
|00002c70| 74 20 22 2f 22 20 61 66 | 74 65 72 20 63 68 61 72 |t "/" af|ter char|
|00002c80| 20 31 20 6f 66 20 65 43 | 6f 64 65 0d 72 65 70 65 | 1 of eC|ode.repe|
|00002c90| 61 74 20 77 69 74 68 20 | 6b 20 3d 20 31 20 74 6f |at with |k = 1 to|
|00002ca0| 20 6c 65 6e 67 74 68 28 | 66 6c 64 49 44 29 0d 70 | length(|fldID).p|
|00002cb0| 75 74 20 63 68 61 72 20 | 6b 20 6f 66 20 66 6c 64 |ut char |k of fld|
|00002cc0| 49 44 20 69 6e 74 6f 20 | 69 0d 67 65 74 20 66 6c |ID into |i.get fl|
|00002cd0| 64 20 69 64 20 69 0d 69 | 66 20 73 43 6f 64 65 20 |d id i.i|f sCode |
|00002ce0| 69 73 20 69 6e 20 69 74 | 20 6f 72 20 65 43 6f 64 |is in it| or eCod|
|00002cf0| 65 20 69 73 20 69 6e 20 | 69 74 20 74 68 65 6e 20 |e is in |it then |
|00002d00| 70 75 74 20 54 52 55 45 | 20 69 6e 74 6f 20 66 6f |put TRUE| into fo|
|00002d10| 75 6e 64 48 54 4d 4c 0d | 69 66 20 63 6f 6d 70 6c |undHTML.|if compl|
|00002d20| 65 78 54 61 67 20 74 68 | 65 6e 0d 72 65 70 65 61 |exTag th|en.repea|
|00002d30| 74 20 77 68 69 6c 65 20 | 73 43 6f 64 65 20 69 73 |t while |sCode is|
|00002d40| 20 69 6e 20 69 74 20 2d | 2d 20 73 54 61 67 0d 70 | in it -|- sTag.p|
|00002d50| 75 74 20 6f 66 66 73 65 | 74 28 73 43 6f 64 65 2c |ut offse|t(sCode,|
|00002d60| 69 74 29 20 69 6e 74 6f | 20 73 54 61 67 0d 70 75 |it) into| sTag.pu|
|00002d70| 74 20 6e 65 78 74 49 6e | 73 74 61 6e 63 65 28 69 |t nextIn|stance(i|
|00002d80| 74 2c 22 3e 22 2c 73 54 | 61 67 29 20 69 6e 74 6f |t,">",sT|ag) into|
|00002d90| 20 65 54 61 67 0d 69 66 | 20 73 54 61 67 20 ad 20 | eTag.if| sTag . |
|00002da0| 30 20 61 6e 64 20 65 54 | 61 67 20 ad 20 30 20 74 |0 and eT|ag . 0 t|
|00002db0| 68 65 6e 0d 69 66 20 63 | 68 61 72 20 28 65 54 61 |hen.if c|har (eTa|
|00002dc0| 67 20 2b 20 31 29 20 6f | 66 20 69 74 20 3d 20 72 |g + 1) o|f it = r|
|00002dd0| 65 74 75 72 6e 20 74 68 | 65 6e 20 64 65 6c 65 74 |eturn th|en delet|
|00002de0| 65 20 63 68 61 72 20 28 | 65 54 61 67 20 2b 20 31 |e char (|eTag + 1|
|00002df0| 29 20 6f 66 20 69 74 0d | 64 65 6c 65 74 65 20 63 |) of it.|delete c|
|00002e00| 68 61 72 20 73 54 61 67 | 20 74 6f 20 65 54 61 67 |har sTag| to eTag|
|00002e10| 20 6f 66 20 69 74 0d 65 | 6e 64 20 69 66 0d 65 6e | of it.e|nd if.en|
|00002e20| 64 20 72 65 70 65 61 74 | 0d 65 6c 73 65 0d 67 65 |d repeat|.else.ge|
|00002e30| 74 20 72 65 70 28 69 74 | 2c 73 43 6f 64 65 29 0d |t rep(it|,sCode).|
|00002e40| 67 65 74 20 72 65 70 28 | 69 74 2c 63 61 73 65 28 |get rep(|it,case(|
|00002e50| 32 2c 73 43 6f 64 65 29 | 29 20 2d 2d 20 6c 63 0d |2,sCode)|) -- lc.|
|00002e60| 67 65 74 20 72 65 70 28 | 69 74 2c 65 43 6f 64 65 |get rep(|it,eCode|
|00002e70| 29 0d 67 65 74 20 72 65 | 70 28 69 74 2c 63 61 73 |).get re|p(it,cas|
|00002e80| 65 28 32 2c 65 43 6f 64 | 65 29 29 20 2d 2d 20 6c |e(2,eCod|e)) -- l|
|00002e90| 63 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 69 74 20 |c.end if|.put it |
|00002ea0| 69 6e 74 6f 20 66 6c 64 | 20 69 64 20 69 0d 65 6e |into fld| id i.en|
|00002eb0| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00002ec0| 66 6f 75 6e 64 48 54 4d | 4c 0d 65 6e 64 20 64 65 |foundHTM|L.end de|
|00002ed0| 6c 65 74 65 48 54 4d 4c | 0d 0d 66 75 6e 63 74 69 |leteHTML|..functi|
|00002ee0| 6f 6e 20 6c 69 73 74 48 | 54 4d 4c 20 70 66 78 2c |on listH|TML pfx,|
|00002ef0| 73 66 78 2c 66 6c 64 49 | 44 2c 63 64 49 44 2c 6c |sfx,fldI|D,cdID,l|
|00002f00| 69 6d 69 74 0d 2d 2d 20 | 69 6e 64 65 78 20 64 6f |imit.-- |index do|
|00002f10| 75 62 6c 65 20 74 61 67 | 3b 20 72 65 74 75 72 6e |uble tag|; return|
|00002f20| 73 20 6c 69 73 74 20 6f | 66 20 61 6c 6c 3b 20 6c |s list o|f all; l|
|00002f30| 69 6d 69 74 20 3d 20 6e | 75 6d 62 65 72 20 6c 69 |imit = n|umber li|
|00002f40| 6e 65 73 2c 20 65 67 2e | 20 28 22 3c 41 20 22 2c |nes, eg.| ("<A ",|
|00002f50| 22 3c 2f 41 3e 22 2c 33 | 32 31 2c 35 37 38 38 2c |"</A>",3|21,5788,|
|00002f60| 31 30 29 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |10).set |cursor t|
|00002f70| 6f 20 77 61 74 63 68 0d | 70 75 74 20 22 22 20 69 |o watch.|put "" i|
|00002f80| 6e 74 6f 20 74 68 65 4c | 69 73 74 0d 70 75 74 20 |nto theL|ist.put |
|00002f90| 31 20 69 6e 74 6f 20 4c | 0d 69 66 20 63 64 49 44 |1 into L|.if cdID|
|00002fa0| 20 3d 20 22 22 20 74 68 | 65 6e 20 70 75 74 20 74 | = "" th|en put t|
|00002fb0| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 74 |he short| id of t|
|00002fc0| 68 69 73 20 63 64 20 69 | 6e 74 6f 20 63 64 49 44 |his cd i|nto cdID|
|00002fd0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 6b 20 3d |.repeat |with k =|
|00002fe0| 20 31 20 74 6f 20 6c 65 | 6e 67 74 68 28 66 6c 64 | 1 to le|ngth(fld|
|00002ff0| 49 44 29 0d 70 75 74 20 | 63 68 61 72 20 6b 20 6f |ID).put |char k o|
|00003000| 66 20 66 6c 64 49 44 20 | 69 6e 74 6f 20 69 0d 67 |f fldID |into i.g|
|00003010| 65 74 20 66 6c 64 20 69 | 64 20 69 20 6f 66 20 63 |et fld i|d i of c|
|00003020| 64 20 69 64 20 63 64 49 | 44 0d 72 65 70 65 61 74 |d id cdI|D.repeat|
|00003030| 20 77 68 69 6c 65 20 70 | 66 78 20 69 73 20 69 6e | while p|fx is in|
|00003040| 20 69 74 0d 70 75 74 20 | 6f 66 66 73 65 74 28 70 | it.put |offset(p|
|00003050| 66 78 2c 69 74 29 20 69 | 6e 74 6f 20 73 54 61 67 |fx,it) i|nto sTag|
|00003060| 0d 70 75 74 20 6f 66 66 | 73 65 74 28 73 66 78 2c |.put off|set(sfx,|
|00003070| 69 74 29 2b 6c 65 6e 67 | 74 68 28 73 66 78 29 2d |it)+leng|th(sfx)-|
|00003080| 31 20 69 6e 74 6f 20 65 | 54 61 67 0d 69 66 20 73 |1 into e|Tag.if s|
|00003090| 54 61 67 20 ad 20 30 20 | 61 6e 64 20 65 54 61 67 |Tag . 0 |and eTag|
|000030a0| 20 ad 20 30 20 74 68 65 | 6e 0d 70 75 74 20 72 65 | . 0 the|n.put re|
|000030b0| 70 28 63 68 61 72 20 73 | 54 61 67 20 74 6f 20 65 |p(char s|Tag to e|
|000030c0| 54 61 67 20 6f 66 20 69 | 74 2c 72 65 74 75 72 6e |Tag of i|t,return|
|000030d0| 2c 22 5c 72 22 29 20 69 | 6e 74 6f 20 6c 69 6e 65 |,"\r") i|nto line|
|000030e0| 20 4c 20 6f 66 20 74 68 | 65 4c 69 73 74 0d 64 65 | L of th|eList.de|
|000030f0| 6c 65 74 65 20 63 68 61 | 72 20 31 20 74 6f 20 65 |lete cha|r 1 to e|
|00003100| 54 61 67 20 6f 66 20 69 | 74 0d 61 64 64 20 31 20 |Tag of i|t.add 1 |
|00003110| 74 6f 20 4c 0d 65 6e 64 | 20 69 66 0d 69 66 20 6c |to L.end| if.if l|
|00003120| 69 6d 69 74 20 ad 20 22 | 22 20 61 6e 64 20 4c 20 |imit . "|" and L |
|00003130| b3 20 6c 69 6d 69 74 20 | 74 68 65 6e 20 65 78 69 |. limit |then exi|
|00003140| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|00003150| 65 61 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |eat.end |repeat.r|
|00003160| 65 74 75 72 6e 20 72 65 | 70 28 74 68 65 4c 69 73 |eturn re|p(theLis|
|00003170| 74 2c 22 5c 72 22 2c 72 | 65 74 75 72 6e 29 0d 65 |t,"\r",r|eturn).e|
|00003180| 6e 64 20 6c 69 73 74 48 | 54 4d 4c 0d 0d 66 75 6e |nd listH|TML..fun|
|00003190| 63 74 69 6f 6e 20 63 6f | 70 79 48 54 4d 4c 20 74 |ction co|pyHTML t|
|000031a0| 61 67 2c 66 6c 64 49 44 | 2c 63 64 49 44 0d 2d 2d |ag,fldID|,cdID.--|
|000031b0| 20 73 69 6e 67 6c 65 20 | 74 61 67 73 3b 20 72 65 | single |tags; re|
|000031c0| 74 75 72 6e 73 20 6c 69 | 73 74 20 6f 66 20 61 6c |turns li|st of al|
|000031d0| 6c 2c 20 65 67 2e 20 28 | 22 3c 4d 45 54 41 22 2c |l, eg. (|"<META",|
|000031e0| 33 32 31 29 0d 70 75 74 | 20 22 22 20 69 6e 74 6f |321).put| "" into|
|000031f0| 20 74 68 65 4c 69 73 74 | 0d 70 75 74 20 31 20 69 | theList|.put 1 i|
|00003200| 6e 74 6f 20 4c 0d 69 66 | 20 63 64 49 44 20 3d 20 |nto L.if| cdID = |
|00003210| 22 22 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 20 |"" then |put the |
|00003220| 73 68 6f 72 74 20 69 64 | 20 6f 66 20 74 68 69 73 |short id| of this|
|00003230| 20 63 64 20 69 6e 74 6f | 20 63 64 49 44 0d 72 65 | cd into| cdID.re|
|00003240| 70 65 61 74 20 77 69 74 | 68 20 6b 20 3d 20 31 20 |peat wit|h k = 1 |
|00003250| 74 6f 20 6c 65 6e 67 74 | 68 28 66 6c 64 49 44 29 |to lengt|h(fldID)|
|00003260| 0d 70 75 74 20 63 68 61 | 72 20 6b 20 6f 66 20 66 |.put cha|r k of f|
|00003270| 6c 64 49 44 20 69 6e 74 | 6f 20 69 0d 67 65 74 20 |ldID int|o i.get |
|00003280| 66 6c 64 20 69 64 20 69 | 20 6f 66 20 63 64 20 69 |fld id i| of cd i|
|00003290| 64 20 63 64 49 44 0d 72 | 65 70 65 61 74 20 77 68 |d cdID.r|epeat wh|
|000032a0| 69 6c 65 20 74 61 67 20 | 69 73 20 69 6e 20 69 74 |ile tag |is in it|
|000032b0| 0d 70 75 74 20 6f 66 66 | 73 65 74 28 74 61 67 2c |.put off|set(tag,|
|000032c0| 69 74 29 20 69 6e 74 6f | 20 73 54 61 67 0d 70 75 |it) into| sTag.pu|
|000032d0| 74 20 6e 65 78 74 49 6e | 73 74 61 6e 63 65 28 69 |t nextIn|stance(i|
|000032e0| 74 2c 22 3e 22 2c 73 54 | 61 67 29 20 69 6e 74 6f |t,">",sT|ag) into|
|000032f0| 20 65 54 61 67 0d 69 66 | 20 73 54 61 67 20 ad 20 | eTag.if| sTag . |
|00003300| 30 20 61 6e 64 20 65 54 | 61 67 20 ad 20 30 20 74 |0 and eT|ag . 0 t|
|00003310| 68 65 6e 0d 70 75 74 20 | 72 65 70 28 63 68 61 72 |hen.put |rep(char|
|00003320| 20 73 54 61 67 20 74 6f | 20 65 54 61 67 20 6f 66 | sTag to| eTag of|
|00003330| 20 69 74 2c 72 65 74 75 | 72 6e 2c 22 5c 72 22 29 | it,retu|rn,"\r")|
|00003340| 20 69 6e 74 6f 20 6c 69 | 6e 65 20 4c 20 6f 66 20 | into li|ne L of |
|00003350| 74 68 65 4c 69 73 74 0d | 64 65 6c 65 74 65 20 63 |theList.|delete c|
|00003360| 68 61 72 20 73 54 61 67 | 20 74 6f 20 65 54 61 67 |har sTag| to eTag|
|00003370| 20 6f 66 20 69 74 0d 61 | 64 64 20 31 20 74 6f 20 | of it.a|dd 1 to |
|00003380| 4c 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |L.end if|.end rep|
|00003390| 65 61 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 |eat.end |repeat.r|
|000033a0| 65 74 75 72 6e 20 72 65 | 70 28 74 68 65 4c 69 73 |eturn re|p(theLis|
|000033b0| 74 2c 22 5c 72 22 2c 72 | 65 74 75 72 6e 29 0d 65 |t,"\r",r|eturn).e|
|000033c0| 6e 64 20 63 6f 70 79 48 | 54 4d 4c 0d 0d 66 75 6e |nd copyH|TML..fun|
|000033d0| 63 74 69 6f 6e 20 63 75 | 74 48 54 4d 4c 20 74 61 |ction cu|tHTML ta|
|000033e0| 67 2c 66 6c 64 49 44 2c | 63 64 49 44 20 2d 2d 20 |g,fldID,|cdID -- |
|000033f0| 65 78 2e 20 63 75 74 48 | 54 4d 4c 28 22 3c 4d 45 |ex. cutH|TML("<ME|
|00003400| 54 41 22 2c 33 32 31 29 | 0d 2d 2d 20 73 69 6e 67 |TA",321)|.-- sing|
|00003410| 6c 65 20 74 61 67 73 2c | 20 72 65 74 75 72 6e 73 |le tags,| returns|
|00003420| 20 6c 69 73 74 20 6f 66 | 20 61 6c 6c 0d 70 75 74 | list of| all.put|
|00003430| 20 22 22 20 69 6e 74 6f | 20 74 68 65 4c 69 73 74 | "" into| theList|
|00003440| 0d 70 75 74 20 31 20 69 | 6e 74 6f 20 4c 0d 69 66 |.put 1 i|nto L.if|
|00003450| 20 63 64 49 44 20 3d 20 | 22 22 20 74 68 65 6e 20 | cdID = |"" then |
|00003460| 70 75 74 20 74 68 65 20 | 73 68 6f 72 74 20 69 64 |put the |short id|
|00003470| 20 6f 66 20 74 68 69 73 | 20 63 64 20 69 6e 74 6f | of this| cd into|
|00003480| 20 63 64 49 44 0d 72 65 | 70 65 61 74 20 77 69 74 | cdID.re|peat wit|
|00003490| 68 20 6b 20 3d 20 31 20 | 74 6f 20 6c 65 6e 67 74 |h k = 1 |to lengt|
|000034a0| 68 28 66 6c 64 49 44 29 | 0d 70 75 74 20 63 68 61 |h(fldID)|.put cha|
|000034b0| 72 20 6b 20 6f 66 20 66 | 6c 64 49 44 20 69 6e 74 |r k of f|ldID int|
|000034c0| 6f 20 69 0d 72 65 70 65 | 61 74 20 77 68 69 6c 65 |o i.repe|at while|
|000034d0| 20 74 61 67 20 69 73 20 | 69 6e 20 66 6c 64 20 69 | tag is |in fld i|
|000034e0| 64 20 69 20 6f 66 20 63 | 64 20 69 64 20 63 64 49 |d i of c|d id cdI|
|000034f0| 44 0d 70 75 74 20 6f 66 | 66 73 65 74 28 74 61 67 |D.put of|fset(tag|
|00003500| 2c 66 6c 64 20 69 64 20 | 69 20 6f 66 20 63 64 20 |,fld id |i of cd |
|00003510| 69 64 20 63 64 49 44 29 | 20 69 6e 74 6f 20 73 54 |id cdID)| into sT|
|00003520| 61 67 0d 70 75 74 20 6e | 65 78 74 49 6e 73 74 61 |ag.put n|extInsta|
|00003530| 6e 63 65 28 66 6c 64 20 | 69 64 20 69 20 6f 66 20 |nce(fld |id i of |
|00003540| 63 64 20 69 64 20 63 64 | 49 44 2c 22 3e 22 2c 73 |cd id cd|ID,">",s|
|00003550| 54 61 67 29 20 69 6e 74 | 6f 20 65 54 61 67 0d 69 |Tag) int|o eTag.i|
|00003560| 66 20 73 54 61 67 20 ad | 20 30 20 61 6e 64 20 65 |f sTag .| 0 and e|
|00003570| 54 61 67 20 ad 20 30 20 | 74 68 65 6e 0d 70 75 74 |Tag . 0 |then.put|
|00003580| 20 72 65 70 28 63 68 61 | 72 20 73 54 61 67 20 74 | rep(cha|r sTag t|
|00003590| 6f 20 65 54 61 67 20 6f | 66 20 66 6c 64 20 69 64 |o eTag o|f fld id|
|000035a0| 20 69 20 6f 66 20 63 64 | 20 69 64 20 63 64 49 44 | i of cd| id cdID|
|000035b0| 2c 72 65 74 75 72 6e 2c | 22 5c 72 22 29 20 69 6e |,return,|"\r") in|
|000035c0| 74 6f 20 6c 69 6e 65 20 | 4c 20 6f 66 20 74 68 65 |to line |L of the|
|000035d0| 4c 69 73 74 0d 64 65 6c | 65 74 65 20 63 68 61 72 |List.del|ete char|
|000035e0| 20 73 54 61 67 20 74 6f | 20 65 54 61 67 20 6f 66 | sTag to| eTag of|
|000035f0| 20 66 6c 64 20 69 64 20 | 69 20 6f 66 20 63 64 20 | fld id |i of cd |
|00003600| 69 64 20 63 64 49 44 0d | 61 64 64 20 31 20 74 6f |id cdID.|add 1 to|
|00003610| 20 4c 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 | L.end i|f.end re|
|00003620| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00003630| 72 65 74 75 72 6e 20 72 | 65 70 28 74 68 65 4c 69 |return r|ep(theLi|
|00003640| 73 74 2c 22 5c 72 22 2c | 72 65 74 75 72 6e 29 0d |st,"\r",|return).|
|00003650| 65 6e 64 20 63 75 74 48 | 54 4d 4c 0d 0d 66 75 6e |end cutH|TML..fun|
|00003660| 63 74 69 6f 6e 20 63 61 | 72 64 4c 69 73 74 20 62 |ction ca|rdList b|
|00003670| 67 49 44 2c 70 72 65 66 | 69 78 0d 70 75 74 20 22 |gID,pref|ix.put "|
|00003680| 22 20 69 6e 74 6f 20 69 | 64 78 0d 72 65 70 65 61 |" into i|dx.repea|
|00003690| 74 20 77 69 74 68 20 69 | 20 3d 20 31 20 74 6f 20 |t with i| = 1 to |
|000036a0| 6e 75 6d 62 65 72 28 63 | 64 73 20 69 6e 20 62 67 |number(c|ds in bg|
|000036b0| 20 69 64 20 62 67 49 44 | 29 0d 69 66 20 70 72 65 | id bgID|).if pre|
|000036c0| 66 69 78 20 ad 20 22 22 | 20 74 68 65 6e 20 67 65 |fix . ""| then ge|
|000036d0| 74 20 70 72 65 66 69 78 | 26 69 26 22 3a 20 22 20 |t prefix|&i&": " |
|000036e0| 65 6c 73 65 20 67 65 74 | 20 22 22 0d 70 75 74 20 |else get| "".put |
|000036f0| 69 74 26 28 66 6c 64 20 | 22 74 69 74 6c 65 22 20 |it&(fld |"title" |
|00003700| 6f 66 20 63 64 20 69 20 | 6f 66 20 62 67 20 69 64 |of cd i |of bg id|
|00003710| 20 62 67 49 44 29 20 26 | 20 72 65 74 75 72 6e 20 | bgID) &| return |
|00003720| 61 66 74 65 72 20 69 64 | 78 0d 65 6e 64 20 72 65 |after id|x.end re|
|00003730| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 69 64 78 0d |peat.ret|urn idx.|
|00003740| 65 6e 64 20 63 61 72 64 | 4c 69 73 74 0d 0d 66 75 |end card|List..fu|
|00003750| 6e 63 74 69 6f 6e 20 64 | 6f 63 54 69 74 6c 65 20 |nction d|ocTitle |
|00003760| 74 68 65 49 44 0d 69 66 | 20 74 68 65 49 44 20 3d |theID.if| theID =|
|00003770| 20 22 22 20 74 68 65 6e | 0d 69 6e 64 65 78 53 74 | "" then|.indexSt|
|00003780| 61 63 6b 0d 61 6e 73 77 | 65 72 20 22 45 52 52 4f |ack.answ|er "ERRO|
|00003790| 52 20 69 6e 20 49 6e 64 | 65 78 2e 20 50 6c 65 61 |R in Ind|ex. Plea|
|000037a0| 73 65 20 74 72 79 20 61 | 67 61 69 6e 2e 22 0d 65 |se try a|gain.".e|
|000037b0| 78 69 74 32 48 43 0d 65 | 6e 64 20 69 66 0d 70 75 |xit2HC.e|nd if.pu|
|000037c0| 74 20 28 66 6c 64 20 22 | 48 65 61 64 65 72 22 20 |t (fld "|Header" |
|000037d0| 6f 66 20 63 64 20 69 64 | 20 74 68 65 49 44 29 20 |of cd id| theID) |
|000037e0| 26 20 28 66 6c 64 20 22 | 42 6f 64 79 22 20 6f 66 |& (fld "|Body" of|
|000037f0| 20 63 64 20 69 64 20 74 | 68 65 49 44 29 20 26 20 | cd id t|heID) & |
|00003800| 28 66 6c 64 20 22 46 6f | 6f 74 65 72 22 20 6f 66 |(fld "Fo|oter" of|
|00003810| 20 63 64 20 69 64 20 74 | 68 65 49 44 29 20 69 6e | cd id t|heID) in|
|00003820| 74 6f 20 74 68 65 54 65 | 78 74 0d 70 75 74 20 6f |to theTe|xt.put o|
|00003830| 66 66 73 65 74 28 22 3c | 54 49 54 4c 45 3e 22 2c |ffset("<|TITLE>",|
|00003840| 74 68 65 54 65 78 74 29 | 20 69 6e 74 6f 20 73 54 |theText)| into sT|
|00003850| 69 74 6c 65 0d 70 75 74 | 20 6f 66 66 73 65 74 28 |itle.put| offset(|
|00003860| 22 3c 2f 54 49 54 4c 45 | 3e 22 2c 74 68 65 54 65 |"</TITLE|>",theTe|
|00003870| 78 74 29 20 69 6e 74 6f | 20 65 54 69 74 6c 65 0d |xt) into| eTitle.|
|00003880| 69 66 20 73 54 69 74 6c | 65 20 ad 20 30 20 61 6e |if sTitl|e . 0 an|
|00003890| 64 20 65 54 69 74 6c 65 | 20 ad 20 30 20 74 68 65 |d eTitle| . 0 the|
|000038a0| 6e 0d 67 65 74 20 72 65 | 70 28 28 63 68 61 72 20 |n.get re|p((char |
|000038b0| 28 73 54 69 74 6c 65 2b | 37 29 20 74 6f 20 28 65 |(sTitle+|7) to (e|
|000038c0| 54 69 74 6c 65 2d 31 29 | 20 6f 66 20 74 68 65 54 |Title-1)| of theT|
|000038d0| 65 78 74 29 2c 72 65 74 | 75 72 6e 2c 22 20 22 29 |ext),ret|urn," ")|
|000038e0| 0d 72 65 74 75 72 6e 20 | 72 65 70 28 69 74 2c 22 |.return |rep(it,"|
|000038f0| 20 20 22 2c 22 20 22 29 | 0d 65 6c 73 65 20 72 65 | "," ")|.else re|
|00003900| 74 75 72 6e 20 22 5b 75 | 6e 74 69 74 6c 65 64 3a |turn "[u|ntitled:|
|00003910| 5d 20 27 22 26 28 66 6c | 64 20 69 64 20 31 35 20 |] '"&(fl|d id 15 |
|00003920| 6f 66 20 63 64 20 69 64 | 20 74 68 65 49 44 29 26 |of cd id| theID)&|
|00003930| 22 27 22 0d 65 6e 64 20 | 64 6f 63 54 69 74 6c 65 |"'".end |docTitle|
|00003940| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 67 65 74 50 61 |..functi|on getPa|
|00003950| 74 68 20 6d 20 2d 2d 20 | 44 4c 4f 47 2c 20 72 65 |th m -- |DLOG, re|
|00003960| 74 75 72 6e 20 61 20 70 | 61 74 68 0d 67 6c 6f 62 |turn a p|ath.glob|
|00003970| 61 6c 20 65 72 72 47 6c | 6f 62 61 6c 0d 67 65 74 |al errGl|obal.get|
|00003980| 20 66 75 6c 6c 53 46 50 | 61 63 6b 28 22 46 22 2c | fullSFP|ack("F",|
|00003990| 6d 29 0d 2d 2d 20 61 6e | 73 77 65 72 20 66 6f 6c |m).-- an|swer fol|
|000039a0| 64 65 72 20 6d 0d 69 66 | 20 65 72 72 47 6c 6f 62 |der m.if| errGlob|
|000039b0| 61 6c 20 ad 20 22 22 20 | 74 68 65 6e 0d 61 6e 73 |al . "" |then.ans|
|000039c0| 77 65 72 20 22 45 52 52 | 4f 52 3a 22 26 72 65 74 |wer "ERR|OR:"&ret|
|000039d0| 75 72 6e 26 22 d2 22 20 | 26 20 65 72 72 47 6c 6f |urn&"." |& errGlo|
|000039e0| 62 61 6c 20 26 20 22 d3 | 22 0d 70 75 74 20 22 22 |bal & ".|".put ""|
|000039f0| 20 69 6e 74 6f 20 65 72 | 72 47 6c 6f 62 61 6c 0d | into er|rGlobal.|
|00003a00| 65 6e 64 20 69 66 0d 72 | 65 74 75 72 6e 20 69 74 |end if.r|eturn it|
|00003a10| 0d 65 6e 64 20 67 65 74 | 50 61 74 68 0d 0d 66 75 |.end get|Path..fu|
|00003a20| 6e 63 74 69 6f 6e 20 66 | 6f 6f 74 65 72 54 61 67 |nction f|ooterTag|
|00003a30| 0d 69 66 20 74 68 65 20 | 68 69 6c 69 74 65 20 6f |.if the |hilite o|
|00003a40| 66 20 63 64 20 62 74 6e | 20 69 64 20 38 32 20 6f |f cd btn| id 82 o|
|00003a50| 66 20 63 64 20 22 70 72 | 65 66 73 22 20 74 68 65 |f cd "pr|efs" the|
|00003a60| 6e 0d 67 65 74 20 63 64 | 20 66 6c 64 20 69 64 20 |n.get cd| fld id |
|00003a70| 38 33 20 6f 66 20 63 64 | 20 22 70 72 65 66 73 22 |83 of cd| "prefs"|
|00003a80| 0d 69 66 20 69 74 20 3d | 20 22 22 20 74 68 65 6e |.if it =| "" then|
|00003a90| 20 72 65 74 75 72 6e 20 | 22 3c 21 2d 2d 46 4f 4f | return |"<!--FOO|
|00003aa0| 54 2d 2d 3e 22 20 65 6c | 73 65 20 72 65 74 75 72 |T-->" el|se retur|
|00003ab0| 6e 20 69 74 0d 65 6c 73 | 65 20 72 65 74 75 72 6e |n it.els|e return|
|00003ac0| 20 22 22 0d 65 6e 64 20 | 66 6f 6f 74 65 72 54 61 | "".end |footerTa|
|00003ad0| 67 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 48 46 53 74 |g..funct|ion HFSt|
|00003ae0| 61 74 75 73 0d 72 65 74 | 75 72 6e 20 28 31 20 2b |atus.ret|urn (1 +|
|00003af0| 20 74 68 65 20 74 6f 70 | 20 6f 66 20 62 67 20 62 | the top| of bg b|
|00003b00| 74 6e 20 69 64 20 33 32 | 20 3d 20 74 68 65 20 62 |tn id 32| = the b|
|00003b10| 6f 74 74 6f 6d 20 6f 66 | 20 66 6c 64 20 69 64 20 |ottom of| fld id |
|00003b20| 31 32 29 20 61 6e 64 20 | c2 0d 28 74 68 65 20 62 |12) and |..(the b|
|00003b30| 6f 74 74 6f 6d 20 6f 66 | 20 62 67 20 62 74 6e 20 |ottom of| bg btn |
|00003b40| 69 64 20 33 35 20 3d 20 | 31 20 2b 20 74 68 65 20 |id 35 = |1 + the |
|00003b50| 74 6f 70 20 6f 66 20 66 | 6c 64 20 69 64 20 31 33 |top of f|ld id 13|
|00003b60| 29 0d 65 6e 64 20 48 46 | 53 74 61 74 75 73 0d 0d |).end HF|Status..|
|00003b70| 66 75 6e 63 74 69 6f 6e | 20 7a 6f 6f 6d 4f 4b 0d |function| zoomOK.|
|00003b80| 72 65 74 75 72 6e 20 74 | 68 65 20 68 65 69 67 68 |return t|he heigh|
|00003b90| 74 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 20 2d |t of cd |window -|
|00003ba0| 20 62 6f 74 74 6f 6d 20 | 6f 66 20 62 67 20 62 74 | bottom |of bg bt|
|00003bb0| 6e 20 22 67 72 6f 77 52 | 65 63 74 22 20 3d 20 33 |n "growR|ect" = 3|
|00003bc0| 20 61 6e 64 20 74 68 65 | 20 77 69 64 74 68 20 6f | and the| width o|
|00003bd0| 66 20 63 64 20 77 69 6e | 64 6f 77 20 2d 20 72 69 |f cd win|dow - ri|
|00003be0| 67 68 74 20 6f 66 20 62 | 67 20 62 74 6e 20 22 67 |ght of b|g btn "g|
|00003bf0| 72 6f 77 52 65 63 74 22 | 20 3d 20 33 0d 65 6e 64 |rowRect"| = 3.end|
|00003c00| 20 7a 6f 6f 6d 4f 4b 0d | 0d 66 75 6e 63 74 69 6f | zoomOK.|.functio|
|00003c10| 6e 20 67 58 20 78 4f 66 | 66 0d 67 65 74 20 67 65 |n gX xOf|f.get ge|
|00003c20| 74 4d 6f 64 65 28 29 0d | 69 66 20 6e 75 6d 62 65 |tMode().|if numbe|
|00003c30| 72 20 6f 66 20 6c 69 6e | 65 73 20 69 6e 20 69 74 |r of lin|es in it|
|00003c40| 20 3d 20 31 20 74 68 65 | 6e 0d 72 65 74 75 72 6e | = 1 the|n.return|
|00003c50| 20 74 72 75 6e 63 28 69 | 74 65 6d 20 36 20 6f 66 | trunc(i|tem 6 of|
|00003c60| 20 69 74 2f 32 20 2d 20 | 69 74 65 6d 20 31 20 6f | it/2 - |item 1 o|
|00003c70| 66 20 74 68 65 20 6c 6f | 63 20 6f 66 20 63 64 20 |f the lo|c of cd |
|00003c80| 77 69 6e 64 6f 77 29 20 | 2d 20 78 4f 66 66 0d 65 |window) |- xOff.e|
|00003c90| 6c 73 65 20 69 66 20 6e | 75 6d 62 65 72 20 6f 66 |lse if n|umber of|
|00003ca0| 20 6c 69 6e 65 73 20 69 | 6e 20 69 74 20 3d 20 32 | lines i|n it = 2|
|00003cb0| 20 74 68 65 6e 20 2d 2d | 20 32 20 6d 6f 6e 69 74 | then --| 2 monit|
|00003cc0| 6f 72 73 0d 69 66 20 74 | 72 75 65 0d 74 68 65 6e |ors.if t|rue.then|
|00003cd0| 20 72 65 74 75 72 6e 20 | 74 72 75 6e 63 28 69 74 | return |trunc(it|
|00003ce0| 65 6d 20 36 20 6f 66 20 | 6c 69 6e 65 20 31 20 6f |em 6 of |line 1 o|
|00003cf0| 66 20 69 74 2f 32 20 2d | 20 69 74 65 6d 20 31 20 |f it/2 -| item 1 |
|00003d00| 6f 66 20 74 68 65 20 6c | 6f 63 20 6f 66 20 63 64 |of the l|oc of cd|
|00003d10| 20 77 69 6e 64 6f 77 29 | 20 2d 20 78 4f 66 66 0d | window)| - xOff.|
|00003d20| 65 6c 73 65 20 72 65 74 | 75 72 6e 20 74 72 75 6e |else ret|urn trun|
|00003d30| 63 28 69 74 65 6d 20 36 | 20 6f 66 20 6c 69 6e 65 |c(item 6| of line|
|00003d40| 20 32 20 6f 66 20 69 74 | 2f 32 20 2d 20 69 74 65 | 2 of it|/2 - ite|
|00003d50| 6d 20 31 20 6f 66 20 74 | 68 65 20 6c 6f 63 20 6f |m 1 of t|he loc o|
|00003d60| 66 20 63 64 20 77 69 6e | 64 6f 77 29 20 2d 20 78 |f cd win|dow) - x|
|00003d70| 4f 66 66 20 2b 20 69 74 | 65 6d 20 36 20 6f 66 20 |Off + it|em 6 of |
|00003d80| 6c 69 6e 65 20 31 20 6f | 66 20 69 74 0d 65 6e 64 |line 1 o|f it.end|
|00003d90| 20 69 66 0d 65 6e 64 20 | 67 58 0d 0d 66 75 6e 63 | if.end |gX..func|
|00003da0| 74 69 6f 6e 20 67 59 20 | 79 4f 66 66 0d 72 65 74 |tion gY |yOff.ret|
|00003db0| 75 72 6e 20 74 72 75 6e | 63 28 69 74 65 6d 20 34 |urn trun|c(item 4|
|00003dc0| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 52 65 | of the |screenRe|
|00003dd0| 63 74 2f 32 20 2d 20 69 | 74 65 6d 20 32 20 6f 66 |ct/2 - i|tem 2 of|
|00003de0| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 63 64 20 77 | the loc| of cd w|
|00003df0| 69 6e 64 6f 77 29 20 2d | 20 79 4f 66 66 0d 65 6e |indow) -| yOff.en|
|00003e00| 64 20 67 59 0d 0d 6f 6e | 20 61 70 70 6c 65 45 76 |d gY..on| appleEv|
|00003e10| 65 6e 74 0d 73 65 6e 64 | 20 74 68 65 20 70 61 72 |ent.send| the par|
|00003e20| 61 6d 73 20 74 6f 20 63 | 64 20 69 64 20 32 38 37 |ams to c|d id 287|
|00003e30| 38 0d 65 6e 64 20 61 70 | 70 6c 65 45 76 65 6e 74 |8.end ap|pleEvent|
|00003e40| 0d 0d 6f 6e 20 73 65 74 | 49 6e 66 6f 54 65 78 74 |..on set|InfoText|
|00003e50| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00003e60| 69 6e 64 6f 77 20 22 49 | 6e 66 6f 22 20 74 68 65 |indow "I|nfo" the|
|00003e70| 6e 20 73 65 6e 64 20 74 | 68 65 20 70 61 72 61 6d |n send t|he param|
|00003e80| 73 20 74 6f 20 62 67 20 | 62 74 6e 20 69 64 20 35 |s to bg |btn id 5|
|00003e90| 36 20 6f 66 20 63 64 20 | 31 20 6f 66 20 62 67 20 |6 of cd |1 of bg |
|00003ea0| 22 45 64 69 74 6f 72 22 | 0d 65 6e 64 20 73 65 74 |"Editor"|.end set|
|00003eb0| 49 6e 66 6f 54 65 78 74 | 0d 0d 6f 6e 20 73 68 6f |InfoText|..on sho|
|00003ec0| 77 49 6e 66 6f 0d 73 65 | 6e 64 20 74 68 65 20 70 |wInfo.se|nd the p|
|00003ed0| 61 72 61 6d 73 20 74 6f | 20 62 67 20 62 74 6e 20 |arams to| bg btn |
|00003ee0| 69 64 20 35 36 20 6f 66 | 20 63 64 20 31 20 6f 66 |id 56 of| cd 1 of|
|00003ef0| 20 62 67 20 22 45 64 69 | 74 6f 72 22 0d 65 6e 64 | bg "Edi|tor".end|
|00003f00| 20 73 68 6f 77 49 6e 66 | 6f 0d 0d 6f 6e 20 70 61 | showInf|o..on pa|
|00003f10| 73 74 65 46 69 6c 65 0d | 73 65 6e 64 20 74 68 65 |steFile.|send the|
|00003f20| 20 70 61 72 61 6d 73 20 | 74 6f 20 62 67 20 62 74 | params |to bg bt|
|00003f30| 6e 20 69 64 20 33 31 20 | 6f 66 20 63 64 20 31 20 |n id 31 |of cd 1 |
|00003f40| 6f 66 20 62 67 20 22 45 | 64 69 74 6f 72 22 0d 65 |of bg "E|ditor".e|
|00003f50| 6e 64 20 70 61 73 74 65 | 46 69 6c 65 0d 0d 6f 6e |nd paste|File..on|
|00003f60| 20 73 69 7a 65 57 69 6e | 64 6f 77 0d 6c 6f 63 6b | sizeWin|dow.lock|
|00003f70| 20 73 63 72 65 65 6e 0d | 67 65 74 20 77 69 64 74 | screen.|get widt|
|00003f80| 68 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 0d 69 |h of cd |window.i|
|00003f90| 66 20 69 74 20 3c 20 33 | 32 30 20 74 68 65 6e 20 |f it < 3|20 then |
|00003fa0| 67 65 74 20 33 32 30 0d | 73 65 74 20 74 68 65 20 |get 320.|set the |
|00003fb0| 6c 65 66 74 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |left of |bg btn "|
|00003fc0| 6f 62 73 63 75 72 65 22 | 20 74 6f 20 69 74 2d 31 |obscure"| to it-1|
|00003fd0| 38 36 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 20 6f |86.set t|he loc o|
|00003fe0| 66 20 62 67 20 62 74 6e | 20 22 69 6e 64 65 78 22 |f bg btn| "index"|
|00003ff0| 20 74 6f 20 69 74 2d 31 | 37 32 2c 31 30 0d 73 65 | to it-1|72,10.se|
|00004000| 74 20 74 68 65 20 6c 6f | 63 20 6f 66 20 62 67 20 |t the lo|c of bg |
|00004010| 62 74 6e 20 22 66 69 72 | 73 74 22 20 74 6f 20 69 |btn "fir|st" to i|
|00004020| 74 2d 31 35 32 2c 31 30 | 0d 73 65 74 20 74 68 65 |t-152,10|.set the|
|00004030| 20 6c 6f 63 20 6f 66 20 | 62 67 20 62 74 6e 20 22 | loc of |bg btn "|
|00004040| 70 72 65 76 22 20 74 6f | 20 69 74 2d 31 33 32 2c |prev" to| it-132,|
|00004050| 31 30 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 20 6f |10.set t|he loc o|
|00004060| 66 20 62 67 20 62 74 6e | 20 22 6e 65 78 74 22 20 |f bg btn| "next" |
|00004070| 74 6f 20 69 74 2d 31 31 | 32 2c 31 30 0d 73 65 74 |to it-11|2,10.set|
|00004080| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 67 20 62 | the loc| of bg b|
|00004090| 74 6e 20 22 6c 61 73 74 | 22 20 74 6f 20 69 74 2d |tn "last|" to it-|
|000040a0| 39 32 2c 31 30 0d 73 65 | 74 20 74 68 65 20 6c 6f |92,10.se|t the lo|
|000040b0| 63 20 6f 66 20 62 67 20 | 62 74 6e 20 22 72 65 74 |c of bg |btn "ret|
|000040c0| 75 72 6e 22 20 74 6f 20 | 69 74 2d 37 32 2c 31 30 |urn" to |it-72,10|
|000040d0| 0d 73 65 74 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 |.set the| loc of |
|000040e0| 62 67 20 62 74 6e 20 22 | 74 6f 6f 6c 73 22 20 74 |bg btn "|tools" t|
|000040f0| 6f 20 69 74 2d 34 39 2c | 31 30 0d 73 65 74 20 74 |o it-49,|10.set t|
|00004100| 68 65 20 6c 6f 63 20 6f | 66 20 62 67 20 62 74 6e |he loc o|f bg btn|
|00004110| 20 22 69 6e 66 6f 22 20 | 74 6f 20 69 74 2d 32 38 | "info" |to it-28|
|00004120| 2c 31 30 0d 73 65 74 20 | 74 68 65 20 6c 6f 63 20 |,10.set |the loc |
|00004130| 6f 66 20 62 67 20 62 74 | 6e 20 22 68 65 6c 70 22 |of bg bt|n "help"|
|00004140| 20 74 6f 20 69 74 2d 31 | 31 2c 31 30 0d 75 6e 6c | to it-1|1,10.unl|
|00004150| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 73 |ock scre|en.end s|
|00004160| 69 7a 65 57 69 6e 64 6f | 77 0d 0d 6f 6e 20 73 68 |izeWindo|w..on sh|
|00004170| 6f 77 54 6f 6f 6c 73 0d | 73 65 6e 64 20 74 68 65 |owTools.|send the|
|00004180| 20 70 61 72 61 6d 73 20 | 74 6f 20 62 67 20 62 74 | params |to bg bt|
|00004190| 6e 20 69 64 20 33 31 20 | 6f 66 20 63 64 20 31 20 |n id 31 |of cd 1 |
|000041a0| 6f 66 20 62 67 20 22 45 | 64 69 74 6f 72 22 0d 65 |of bg "E|ditor".e|
|000041b0| 6e 64 20 73 68 6f 77 54 | 6f 6f 6c 73 0d 0d 6f 6e |nd showT|ools..on|
|000041c0| 20 68 69 64 65 50 61 6c | 65 74 74 65 73 20 6d 6f | hidePal|ettes mo|
|000041d0| 64 65 0d 73 65 6e 64 20 | 74 68 65 20 70 61 72 61 |de.send |the para|
|000041e0| 6d 73 20 74 6f 20 62 67 | 20 62 74 6e 20 69 64 20 |ms to bg| btn id |
|000041f0| 33 31 20 6f 66 20 63 64 | 20 31 20 6f 66 20 62 67 |31 of cd| 1 of bg|
|00004200| 20 22 45 64 69 74 6f 72 | 22 0d 65 6e 64 20 68 69 | "Editor|".end hi|
|00004210| 64 65 50 61 6c 65 74 74 | 65 73 0d 0d 6f 6e 20 73 |dePalett|es..on s|
|00004220| 65 65 6b 50 61 6c 65 74 | 74 65 73 0d 73 65 6e 64 |eekPalet|tes.send|
|00004230| 20 74 68 65 20 70 61 72 | 61 6d 73 20 74 6f 20 62 | the par|ams to b|
|00004240| 67 20 62 74 6e 20 69 64 | 20 33 31 20 6f 66 20 63 |g btn id| 31 of c|
|00004250| 64 20 31 20 6f 66 20 62 | 67 20 22 45 64 69 74 6f |d 1 of b|g "Edito|
|00004260| 72 22 0d 65 6e 64 20 73 | 65 65 6b 50 61 6c 65 74 |r".end s|eekPalet|
|00004270| 74 65 73 0d 0d 6f 6e 20 | 63 6c 6f 73 65 50 61 6c |tes..on |closePal|
|00004280| 65 74 74 65 73 20 6d 6f | 64 65 0d 73 65 6e 64 20 |ettes mo|de.send |
|00004290| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 62 67 |the para|ms to bg|
|000042a0| 20 62 74 6e 20 69 64 20 | 33 31 20 6f 66 20 63 64 | btn id |31 of cd|
|000042b0| 20 31 20 6f 66 20 62 67 | 20 22 45 64 69 74 6f 72 | 1 of bg| "Editor|
|000042c0| 22 0d 65 6e 64 20 63 6c | 6f 73 65 50 61 6c 65 74 |".end cl|osePalet|
|000042d0| 74 65 73 0d 0d 6f 6e 20 | 63 6c 6f 73 65 50 61 6c |tes..on |closePal|
|000042e0| 65 74 74 65 0d 67 6c 6f | 62 61 6c 20 74 6f 6f 6c |ette.glo|bal tool|
|000042f0| 50 61 6c 65 74 74 65 2c | 48 54 4d 4c 54 6f 6f 6c |Palette,|HTMLTool|
|00004300| 73 5f 76 69 7a 2c 48 65 | 6c 70 5f 76 69 7a 2c 49 |s_viz,He|lp_viz,I|
|00004310| 6e 66 6f 5f 76 69 7a 0d | 67 65 74 20 70 61 72 61 |nfo_viz.|get para|
|00004320| 6d 28 31 29 0d 69 66 20 | 22 54 6f 6f 6c 73 22 20 |m(1).if |"Tools" |
|00004330| 69 73 20 69 6e 20 70 61 | 72 61 6d 28 31 29 20 74 |is in pa|ram(1) t|
|00004340| 68 65 6e 20 67 65 74 20 | 22 48 54 4d 4c 54 6f 6f |hen get |"HTMLToo|
|00004350| 6c 73 22 0d 69 66 20 69 | 74 20 3d 20 22 48 54 4d |ls".if i|t = "HTM|
|00004360| 4c 54 6f 6f 6c 73 22 20 | 74 68 65 6e 20 70 75 74 |LTools" |then put|
|00004370| 20 22 22 20 69 6e 74 6f | 20 74 6f 6f 6c 50 61 6c | "" into| toolPal|
|00004380| 65 74 74 65 0d 69 66 20 | 74 68 65 72 65 20 69 73 |ette.if |there is|
|00004390| 20 61 20 77 69 6e 64 6f | 77 20 70 61 72 61 6d 28 | a windo|w param(|
|000043a0| 31 29 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 20 |1) then |put the |
|000043b0| 6c 6f 63 20 6f 66 20 77 | 69 6e 64 6f 77 20 70 61 |loc of w|indow pa|
|000043c0| 72 61 6d 28 31 29 20 69 | 6e 74 6f 20 63 64 20 66 |ram(1) i|nto cd f|
|000043d0| 6c 64 20 69 74 20 6f 66 | 20 63 64 20 22 70 72 65 |ld it of| cd "pre|
|000043e0| 66 73 22 0d 64 6f 20 22 | 70 75 74 20 46 41 4c 53 |fs".do "|put FALS|
|000043f0| 45 20 69 6e 74 6f 22 26 | 26 6c 61 73 74 20 77 6f |E into"&|&last wo|
|00004400| 72 64 20 6f 66 20 70 61 | 72 61 6d 28 31 29 26 22 |rd of pa|ram(1)&"|
|00004410| 5f 76 69 7a 22 0d 65 6e | 64 20 63 6c 6f 73 65 50 |_viz".en|d closeP|
|00004420| 61 6c 65 74 74 65 0d 0d | 6f 6e 20 75 6e 43 6f 6d |alette..|on unCom|
|00004430| 6d 65 6e 74 0d 73 65 6e | 64 20 74 68 65 20 70 61 |ment.sen|d the pa|
|00004440| 72 61 6d 73 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |rams to |bg btn i|
|00004450| 64 20 33 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 31 of |cd 1 of |
|00004460| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00004470| 75 6e 43 6f 6d 6d 65 6e | 74 0d 0d 6f 6e 20 63 6f |unCommen|t..on co|
|00004480| 6d 6d 61 6e 64 4b 65 79 | 44 6f 77 6e 20 6b 0d 67 |mmandKey|Down k.g|
|00004490| 6c 6f 62 61 6c 20 68 4e | 75 6d 0d 70 75 74 20 74 |lobal hN|um.put t|
|000044a0| 68 65 20 6f 70 74 69 6f | 6e 4b 65 79 20 69 73 20 |he optio|nKey is |
|000044b0| 64 6f 77 6e 20 69 6e 74 | 6f 20 61 6c 74 0d 70 75 |down int|o alt.pu|
|000044c0| 74 20 74 68 65 20 73 68 | 69 66 74 4b 65 79 20 69 |t the sh|iftKey i|
|000044d0| 73 20 64 6f 77 6e 20 69 | 6e 74 6f 20 73 68 69 66 |s down i|nto shif|
|000044e0| 74 65 64 0d 70 75 74 20 | 63 68 61 72 54 6f 4e 75 |ted.put |charToNu|
|000044f0| 6d 28 6b 29 20 69 6e 74 | 6f 20 6e 4b 65 79 0d 49 |m(k) int|o nKey.I|
|00004500| 46 20 6e 4b 65 79 20 3d | 20 33 30 20 61 6e 64 20 |F nKey =| 30 and |
|00004510| 76 69 7a 28 22 48 54 4d | 4c 2e 65 64 69 74 20 48 |viz("HTM|L.edit H|
|00004520| 65 6c 70 22 29 20 74 68 | 65 6e 20 48 54 4d 4c 48 |elp") th|en HTMLH|
|00004530| 65 6c 70 20 22 62 61 63 | 6b 22 0d 45 4c 53 45 20 |elp "bac|k".ELSE |
|00004540| 49 46 20 6e 4b 65 79 20 | 3d 20 33 30 20 74 68 65 |IF nKey |= 30 the|
|00004550| 6e 20 67 6f 20 62 61 63 | 6b 0d 45 4c 53 45 20 49 |n go bac|k.ELSE I|
|00004560| 46 20 6e 4b 65 79 20 3d | 20 36 31 20 74 68 65 6e |F nKey =| 61 then|
|00004570| 20 75 6e 43 6f 6d 6d 65 | 6e 74 0d 45 4c 53 45 20 | unComme|nt.ELSE |
|00004580| 49 46 20 6b 20 3d 20 22 | 2f 22 20 6f 72 20 6b 20 |IF k = "|/" or k |
|00004590| 3d 20 22 3f 22 20 74 68 | 65 6e 20 48 54 4d 4c 48 |= "?" th|en HTMLH|
|000045a0| 65 6c 70 0d 45 4c 53 45 | 20 49 46 20 6b 20 3d 20 |elp.ELSE| IF k = |
|000045b0| 22 30 22 20 74 68 65 6e | 20 73 65 6e 64 20 22 73 |"0" then| send "s|
|000045c0| 65 6c 65 63 74 46 72 6f | 6d 49 6e 64 65 78 20 33 |electFro|mIndex 3|
|000045d0| 36 33 33 22 20 74 6f 20 | 74 68 69 73 20 63 64 20 |633" to |this cd |
|000045e0| 2d 2d 20 af 0d 45 4c 53 | 45 20 49 46 20 6b 20 69 |-- ..ELS|E IF k i|
|000045f0| 73 20 69 6e 20 22 31 32 | 33 34 35 36 22 20 74 68 |s in "12|3456" th|
|00004600| 65 6e 0d 70 75 74 20 6b | 20 69 6e 74 6f 20 68 4e |en.put k| into hN|
|00004610| 75 6d 0d 48 54 4d 4c 20 | 48 65 61 64 69 6e 67 0d |um.HTML |Heading.|
|00004620| 45 4c 53 45 20 69 66 20 | 61 6c 74 20 61 6e 64 20 |ELSE if |alt and |
|00004630| 6b 20 3d 20 22 4c 22 20 | 74 68 65 6e 20 73 68 6f |k = "L" |then sho|
|00004640| 77 43 6c 69 70 0d 45 4c | 53 45 20 69 66 20 73 68 |wClip.EL|SE if sh|
|00004650| 69 66 74 65 64 20 74 68 | 65 6e 0d 69 66 20 6b 20 |ifted th|en.if k |
|00004660| 3d 20 22 46 22 20 74 68 | 65 6e 20 73 65 6c 65 63 |= "F" th|en selec|
|00004670| 74 46 72 6f 6d 49 6e 64 | 65 78 20 37 34 32 37 0d |tFromInd|ex 7427.|
|00004680| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 42 22 20 |else if |k = "B" |
|00004690| 74 68 65 6e 20 48 54 4d | 4c 20 22 54 61 67 22 2c |then HTM|L "Tag",|
|000046a0| 22 3c 42 3e 22 2c 22 3c | 2f 42 3e 22 0d 65 6c 73 |"<B>","<|/B>".els|
|000046b0| 65 20 69 66 20 6b 20 3d | 20 22 43 22 20 74 68 65 |e if k =| "C" the|
|000046c0| 6e 20 48 54 4d 4c 20 22 | 54 61 67 22 2c 22 3c 43 |n HTML "|Tag","<C|
|000046d0| 49 54 45 3e 22 2c 22 3c | 2f 43 49 54 45 3e 22 0d |ITE>","<|/CITE>".|
|000046e0| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 45 22 20 |else if |k = "E" |
|000046f0| 74 68 65 6e 20 48 54 4d | 4c 20 22 54 61 67 22 2c |then HTM|L "Tag",|
|00004700| 22 3c 45 4d 3e 22 2c 22 | 3c 2f 45 4d 3e 22 0d 65 |"<EM>","|</EM>".e|
|00004710| 6c 73 65 20 69 66 20 6b | 20 3d 20 22 49 22 20 74 |lse if k| = "I" t|
|00004720| 68 65 6e 20 48 54 4d 4c | 20 22 54 61 67 22 2c 22 |hen HTML| "Tag","|
|00004730| 3c 49 3e 22 2c 22 3c 2f | 49 3e 22 0d 65 6c 73 65 |<I>","</|I>".else|
|00004740| 20 69 66 20 6b 20 3d 20 | 22 50 22 20 74 68 65 6e | if k = |"P" then|
|00004750| 0d 69 66 20 61 6c 74 20 | 74 68 65 6e 20 48 54 4d |.if alt |then HTM|
|00004760| 4c 20 22 54 61 67 22 2c | 22 3c 50 52 45 20 57 49 |L "Tag",|"<PRE WI|
|00004770| 44 54 48 3d 22 26 74 68 | 65 57 69 64 74 68 26 22 |DTH="&th|eWidth&"|
|00004780| 3e 22 26 72 65 74 75 72 | 6e 2c 22 3c 2f 50 52 45 |>"&retur|n,"</PRE|
|00004790| 3e 22 0d 65 6c 73 65 20 | 48 54 4d 4c 20 22 54 61 |>".else |HTML "Ta|
|000047a0| 67 22 2c 22 3c 50 52 45 | 3e 22 2c 22 3c 2f 50 52 |g","<PRE|>","</PR|
|000047b0| 45 3e 22 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |E>".else| if k = |
|000047c0| 22 53 22 20 74 68 65 6e | 20 48 54 4d 4c 20 22 54 |"S" then| HTML "T|
|000047d0| 61 67 22 2c 22 3c 53 54 | 52 4f 4e 47 3e 22 2c 22 |ag","<ST|RONG>","|
|000047e0| 3c 2f 53 54 52 4f 4e 47 | 3e 22 0d 65 6c 73 65 20 |</STRONG|>".else |
|000047f0| 69 66 20 6b 20 3d 20 22 | 55 22 20 74 68 65 6e 20 |if k = "|U" then |
|00004800| 48 54 4d 4c 20 22 54 61 | 67 22 2c 22 3c 55 3e 22 |HTML "Ta|g","<U>"|
|00004810| 2c 22 3c 2f 55 3e 22 0d | 65 6c 73 65 20 69 66 20 |,"</U>".|else if |
|00004820| 6b 20 3d 20 22 48 22 20 | 74 68 65 6e 20 73 65 6c |k = "H" |then sel|
|00004830| 65 63 74 46 72 6f 6d 49 | 6e 64 65 78 20 31 31 37 |ectFromI|ndex 117|
|00004840| 32 36 0d 65 6c 73 65 20 | 69 66 20 6b 20 3d 20 22 |26.else |if k = "|
|00004850| 4f 22 20 74 68 65 6e 20 | 62 65 65 70 20 2d 2d 20 |O" then |beep -- |
|00004860| 6f 75 74 6c 69 6e 65 0d | 65 6c 73 65 20 69 66 20 |outline.|else if |
|00004870| 6b 20 3d 20 22 54 22 20 | 61 6e 64 20 74 68 65 72 |k = "T" |and ther|
|00004880| 65 20 69 73 20 61 20 63 | 64 20 69 64 20 37 33 35 |e is a c|d id 735|
|00004890| 39 20 74 68 65 6e 20 67 | 6f 20 63 64 20 22 54 61 |9 then g|o cd "Ta|
|000048a0| 62 6c 65 20 55 74 69 6c | 69 74 79 22 0d 65 6c 73 |ble Util|ity".els|
|000048b0| 65 20 70 61 73 73 20 63 | 6f 6d 6d 61 6e 64 4b 65 |e pass c|ommandKe|
|000048c0| 79 44 6f 77 6e 0d 45 4c | 53 45 0d 69 66 20 6b 20 |yDown.EL|SE.if k |
|000048d0| 3d 20 22 72 22 20 74 68 | 65 6e 20 65 78 69 74 20 |= "r" th|en exit |
|000048e0| 63 6f 6d 6d 61 6e 64 4b | 65 79 44 6f 77 6e 0d 65 |commandK|eyDown.e|
|000048f0| 6c 73 65 20 69 66 20 6b | 20 3d 20 22 2d 22 20 74 |lse if k| = "-" t|
|00004900| 68 65 6e 20 48 54 4d 4c | 20 22 54 61 67 22 2c 22 |hen HTML| "Tag","|
|00004910| 3c 21 2d 2d 20 22 2c 22 | 20 2d 2d 3e 22 0d 65 6c |<!-- ","| -->".el|
|00004920| 73 65 20 69 66 20 6b 20 | 3d 20 22 64 22 20 74 68 |se if k |= "d" th|
|00004930| 65 6e 20 48 54 4d 4c 20 | 22 50 6f 73 74 54 61 67 |en HTML |"PostTag|
|00004940| 22 2c 22 3c 54 44 3e 22 | 0d 65 6c 73 65 20 69 66 |","<TD>"|.else if|
|00004950| 20 6b 20 3d 20 22 68 22 | 20 74 68 65 6e 20 48 54 | k = "h"| then HT|
|00004960| 4d 4c 20 48 65 61 64 69 | 6e 67 0d 65 6c 73 65 20 |ML Headi|ng.else |
|00004970| 69 66 20 6b 20 3d 20 22 | 6b 22 20 74 68 65 6e 20 |if k = "|k" then |
|00004980| 64 65 48 54 4d 4c 0d 65 | 6c 73 65 20 69 66 20 6b |deHTML.e|lse if k|
|00004990| 20 3d 20 22 6c 22 20 74 | 68 65 6e 20 48 54 4d 4c | = "l" t|hen HTML|
|000049a0| 20 22 50 6f 73 74 54 61 | 67 22 2c 22 3c 4c 49 3e | "PostTa|g","<LI>|
|000049b0| 22 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 69 |".else i|f k = "i|
|000049c0| 22 20 74 68 65 6e 20 73 | 68 6f 77 49 6e 66 6f 0d |" then s|howInfo.|
|000049d0| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 61 22 20 |else if |k = "a" |
|000049e0| 61 6e 64 20 22 66 69 65 | 6c 64 22 20 69 73 20 69 |and "fie|ld" is i|
|000049f0| 6e 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 43 68 |n the se|lectedCh|
|00004a00| 75 6e 6b 20 74 68 65 6e | 0d 73 65 6c 65 63 74 20 |unk then|.select |
|00004a10| 74 65 78 74 20 6f 66 20 | 74 68 65 20 73 65 6c 65 |text of |the sele|
|00004a20| 63 74 65 64 46 69 65 6c | 64 0d 65 6c 73 65 20 69 |ctedFiel|d.else i|
|00004a30| 66 20 6b 20 3d 20 22 65 | 22 20 74 68 65 6e 0d 73 |f k = "e|" then.s|
|00004a40| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |et the v|isible o|
|00004a50| 66 20 73 63 72 6f 6c 6c | 20 77 69 6e 64 6f 77 20 |f scroll| window |
|00004a60| 74 6f 20 6e 6f 74 20 74 | 68 65 20 76 69 73 69 62 |to not t|he visib|
|00004a70| 6c 65 20 6f 66 20 73 63 | 72 6f 6c 6c 20 77 69 6e |le of sc|roll win|
|00004a80| 64 6f 77 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |dow.else| if k = |
|00004a90| 22 6d 22 20 74 68 65 6e | 0d 73 65 74 20 74 68 65 |"m" then|.set the|
|00004aa0| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 6d 73 67 20 | visible| of msg |
|00004ab0| 74 6f 20 6e 6f 74 20 74 | 68 65 20 76 69 73 69 62 |to not t|he visib|
|00004ac0| 6c 65 20 6f 66 20 6d 73 | 67 0d 65 6c 73 65 20 69 |le of ms|g.else i|
|00004ad0| 66 20 6b 20 3d 20 22 6e | 22 20 74 68 65 6e 20 6e |f k = "n|" then n|
|00004ae0| 65 77 44 6f 63 75 6d 65 | 6e 74 0d 65 6c 73 65 20 |ewDocume|nt.else |
|00004af0| 69 66 20 6b 20 3d 20 22 | 6f 22 20 74 68 65 6e 20 |if k = "|o" then |
|00004b00| 73 65 6e 64 20 22 69 6d | 70 22 20 74 6f 20 74 68 |send "im|p" to th|
|00004b10| 69 73 20 63 64 0d 65 6c | 73 65 20 69 66 20 6b 20 |is cd.el|se if k |
|00004b20| 3d 20 22 70 22 20 74 68 | 65 6e 20 70 72 69 6e 74 |= "p" th|en print|
|00004b30| 54 65 78 74 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |Text.els|e if k =|
|00004b40| 20 22 60 22 20 74 68 65 | 6e 20 67 6f 20 62 61 63 | "`" the|n go bac|
|00004b50| 6b 0d 65 6c 73 65 20 70 | 61 73 73 20 63 6f 6d 6d |k.else p|ass comm|
|00004b60| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 45 4e 44 20 49 |andKeyDo|wn.END I|
|00004b70| 46 0d 65 6e 64 20 63 6f | 6d 6d 61 6e 64 4b 65 79 |F.end co|mmandKey|
|00004b80| 44 6f 77 6e 0d 0d 6f 6e | 20 64 75 70 6c 69 63 61 |Down..on| duplica|
|00004b90| 74 65 44 6f 63 0d 73 65 | 6e 64 20 74 68 65 20 70 |teDoc.se|nd the p|
|00004ba0| 61 72 61 6d 73 20 74 6f | 20 62 67 20 62 74 6e 20 |arams to| bg btn |
|00004bb0| 69 64 20 32 31 20 6f 66 | 20 63 64 20 31 20 6f 66 |id 21 of| cd 1 of|
|00004bc0| 20 62 67 20 22 45 64 69 | 74 6f 72 22 0d 65 6e 64 | bg "Edi|tor".end|
|00004bd0| 20 64 75 70 6c 69 63 61 | 74 65 44 6f 63 0d 0d 6f | duplica|teDoc..o|
|00004be0| 6e 20 72 65 6e 61 6d 65 | 44 6f 63 0d 73 65 6e 64 |n rename|Doc.send|
|00004bf0| 20 74 68 65 20 70 61 72 | 61 6d 73 20 74 6f 20 62 | the par|ams to b|
|00004c00| 67 20 62 74 6e 20 69 64 | 20 32 31 20 6f 66 20 63 |g btn id| 21 of c|
|00004c10| 64 20 31 20 6f 66 20 62 | 67 20 22 45 64 69 74 6f |d 1 of b|g "Edito|
|00004c20| 72 22 0d 65 6e 64 20 72 | 65 6e 61 6d 65 44 6f 63 |r".end r|enameDoc|
|00004c30| 0d 0d 6f 6e 20 63 68 61 | 6e 67 65 50 61 74 68 0d |..on cha|ngePath.|
|00004c40| 73 65 6e 64 20 74 68 65 | 20 70 61 72 61 6d 73 20 |send the| params |
|00004c50| 74 6f 20 62 67 20 62 74 | 6e 20 69 64 20 32 31 20 |to bg bt|n id 21 |
|00004c60| 6f 66 20 63 64 20 31 20 | 6f 66 20 62 67 20 22 45 |of cd 1 |of bg "E|
|00004c70| 64 69 74 6f 72 22 0d 65 | 6e 64 20 63 68 61 6e 67 |ditor".e|nd chang|
|00004c80| 65 50 61 74 68 0d 0d 6f | 6e 20 72 65 73 74 6f 72 |ePath..o|n restor|
|00004c90| 65 50 61 74 68 0d 73 65 | 6e 64 20 74 68 65 20 70 |ePath.se|nd the p|
|00004ca0| 61 72 61 6d 73 20 74 6f | 20 62 67 20 62 74 6e 20 |arams to| bg btn |
|00004cb0| 69 64 20 32 31 20 6f 66 | 20 63 64 20 31 20 6f 66 |id 21 of| cd 1 of|
|00004cc0| 20 62 67 20 22 45 64 69 | 74 6f 72 22 0d 65 6e 64 | bg "Edi|tor".end|
|00004cd0| 20 72 65 73 74 6f 72 65 | 50 61 74 68 0d 0d 6f 6e | restore|Path..on|
|00004ce0| 20 64 6f 4d 65 6e 75 20 | 69 0d 67 6c 6f 62 61 6c | doMenu |i.global|
|00004cf0| 20 75 6e 64 6f 6e 65 0d | 69 66 20 69 20 3d 20 22 | undone.|if i = "|
|00004d00| 4e 65 77 22 20 6f 72 20 | 69 20 3d 20 22 4e 65 77 |New" or |i = "New|
|00004d10| 20 43 61 72 64 22 20 74 | 68 65 6e 0d 69 66 20 74 | Card" t|hen.if t|
|00004d20| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 74 |he short| id of t|
|00004d30| 68 69 73 20 62 67 20 3d | 20 33 36 33 33 20 74 68 |his bg =| 3633 th|
|00004d40| 65 6e 0d 73 65 74 49 6e | 64 65 78 65 64 20 46 41 |en.setIn|dexed FA|
|00004d50| 4c 53 45 0d 70 61 73 73 | 20 64 6f 4d 65 6e 75 0d |LSE.pass| doMenu.|
|00004d60| 65 6c 73 65 20 69 66 20 | 6e 75 6d 62 65 72 28 74 |else if |number(t|
|00004d70| 68 69 73 20 63 64 29 20 | 3d 20 6e 75 6d 62 65 72 |his cd) |= number|
|00004d80| 28 66 69 72 73 74 20 63 | 64 20 6f 66 20 74 68 69 |(first c|d of thi|
|00004d90| 73 20 62 67 29 20 6f 72 | 20 6e 75 6d 62 65 72 28 |s bg) or| number(|
|00004da0| 74 68 69 73 20 63 64 29 | 20 3d 20 6e 75 6d 62 65 |this cd)| = numbe|
|00004db0| 72 28 63 64 73 20 69 6e | 20 74 68 69 73 20 62 67 |r(cds in| this bg|
|00004dc0| 29 20 74 68 65 6e 0d 67 | 65 74 20 28 77 6f 72 64 |) then.g|et (word|
|00004dd0| 20 32 20 6f 66 20 74 68 | 65 20 73 65 6c 65 63 74 | 2 of th|e select|
|00004de0| 65 64 4c 69 6e 65 20 6f | 66 20 63 64 20 66 6c 64 |edLine o|f cd fld|
|00004df0| 20 69 64 20 28 63 64 20 | 66 6c 64 20 69 64 20 35 | id (cd |fld id 5|
|00004e00| 20 6f 66 20 63 64 20 22 | 69 6e 64 65 78 22 29 20 | of cd "|index") |
|00004e10| 6f 66 20 63 64 20 22 69 | 6e 64 65 78 22 29 0d 69 |of cd "i|ndex").i|
|00004e20| 66 20 69 74 20 b3 20 64 | 6f 63 43 6f 75 6e 74 28 |f it . d|ocCount(|
|00004e30| 29 20 6f 72 20 69 74 20 | 3d 20 22 22 20 74 68 65 |) or it |= "" the|
|00004e40| 6e 20 67 6f 20 6c 61 73 | 74 20 63 64 20 6f 66 20 |n go las|t cd of |
|00004e50| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6c 73 65 |bg "Edit|or".else|
|00004e60| 20 67 6f 20 63 64 20 28 | 69 74 2b 31 29 0d 70 61 | go cd (|it+1).pa|
|00004e70| 73 73 20 64 6f 4d 65 6e | 75 0d 65 6c 73 65 0d 67 |ss doMen|u.else.g|
|00004e80| 6f 20 6c 61 73 74 20 63 | 64 20 6f 66 20 74 68 69 |o last c|d of thi|
|00004e90| 73 20 62 67 0d 70 61 73 | 73 20 64 6f 4d 65 6e 75 |s bg.pas|s doMenu|
|00004ea0| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 20 69 66 20 |.end if.|else if |
|00004eb0| 69 20 3d 20 22 4e 65 77 | 20 42 61 63 6b 67 72 6f |i = "New| Backgro|
|00004ec0| 75 6e 64 22 20 74 68 65 | 6e 20 62 65 65 70 0d 65 |und" the|n beep.e|
|00004ed0| 6c 73 65 20 69 66 20 69 | 20 3d 20 22 55 6e 64 6f |lse if i| = "Undo|
|00004ee0| 22 20 74 68 65 6e 0d 69 | 66 20 75 6e 64 6f 6e 65 |" then.i|f undone|
|00004ef0| 20 74 68 65 6e 20 73 65 | 74 55 6e 64 6f 20 72 65 | then se|tUndo re|
|00004f00| 73 74 6f 72 65 0d 65 6c | 73 65 20 70 61 73 73 20 |store.el|se pass |
|00004f10| 64 6f 4d 65 6e 75 0d 65 | 6c 73 65 20 69 66 20 69 |doMenu.e|lse if i|
|00004f20| 20 3d 20 22 49 6d 70 6f | 72 74 20 44 6f 63 75 6d | = "Impo|rt Docum|
|00004f30| 65 6e 74 c9 22 20 74 68 | 65 6e 0d 67 6f 20 6c 61 |ent." th|en.go la|
|00004f40| 73 74 20 63 64 20 6f 66 | 20 62 67 20 22 45 64 69 |st cd of| bg "Edi|
|00004f50| 74 6f 72 22 0d 73 65 6e | 64 20 22 69 6d 70 22 20 |tor".sen|d "imp" |
|00004f60| 74 6f 20 74 68 69 73 20 | 63 64 0d 65 6c 73 65 20 |to this |cd.else |
|00004f70| 69 66 20 69 20 3d 20 22 | 45 78 70 6f 72 74 20 44 |if i = "|Export D|
|00004f80| 6f 63 75 6d 65 6e 74 c9 | 22 20 74 68 65 6e 0d 69 |ocument.|" then.i|
|00004f90| 66 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |f the sh|ort id o|
|00004fa0| 66 20 74 68 69 73 20 62 | 67 20 3d 20 33 36 33 33 |f this b|g = 3633|
|00004fb0| 20 74 68 65 6e 20 73 65 | 6e 64 20 22 65 78 70 22 | then se|nd "exp"|
|00004fc0| 26 26 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |&&the sh|ort id o|
|00004fd0| 66 20 74 68 69 73 20 63 | 64 20 74 6f 20 74 68 69 |f this c|d to thi|
|00004fe0| 73 20 63 64 0d 65 6c 73 | 65 20 62 65 65 70 0d 65 |s cd.els|e beep.e|
|00004ff0| 6c 73 65 20 69 66 20 69 | 20 3d 20 22 45 78 70 6f |lse if i| = "Expo|
|00005000| 72 74 20 44 6f 63 75 6d | 65 6e 74 20 41 73 c9 22 |rt Docum|ent As."|
|00005010| 20 74 68 65 6e 0d 69 66 | 20 74 68 65 20 73 68 6f | then.if| the sho|
|00005020| 72 74 20 69 64 20 6f 66 | 20 74 68 69 73 20 62 67 |rt id of| this bg|
|00005030| 20 3d 20 33 36 33 33 20 | 74 68 65 6e 20 73 65 6e | = 3633 |then sen|
|00005040| 64 20 22 65 78 70 22 26 | 26 28 2d 31 20 2a 20 74 |d "exp"&|&(-1 * t|
|00005050| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 74 |he short| id of t|
|00005060| 68 69 73 20 63 64 29 20 | 74 6f 20 74 68 69 73 20 |his cd) |to this |
|00005070| 63 64 0d 65 6c 73 65 20 | 62 65 65 70 0d 65 6c 73 |cd.else |beep.els|
|00005080| 65 20 69 66 20 69 20 3d | 20 22 43 6f 6d 70 61 63 |e if i =| "Compac|
|00005090| 74 22 20 74 68 65 6e 0d | 63 6c 6f 73 65 50 61 6c |t" then.|closePal|
|000050a0| 65 74 74 65 73 20 22 61 | 6c 6c 22 0d 64 6f 4d 65 |ettes "a|ll".doMe|
|000050b0| 6e 75 20 22 43 6f 6d 70 | 61 63 74 20 53 74 61 63 |nu "Comp|act Stac|
|000050c0| 6b 22 0d 65 6c 73 65 20 | 70 61 73 73 20 64 6f 4d |k".else |pass doM|
|000050d0| 65 6e 75 0d 65 6e 64 20 | 64 6f 4d 65 6e 75 0d 0d |enu.end |doMenu..|
|000050e0| 6f 6e 20 6e 65 77 44 6f | 63 75 6d 65 6e 74 20 6d |on newDo|cument m|
|000050f0| 6f 64 65 0d 64 6f 4d 65 | 6e 75 20 22 4e 65 77 20 |ode.doMe|nu "New |
|00005100| 43 61 72 64 22 0d 73 65 | 74 49 6e 64 65 78 65 64 |Card".se|tIndexed|
|00005110| 20 46 41 4c 53 45 0d 69 | 66 20 6d 6f 64 65 20 ad | FALSE.i|f mode .|
|00005120| 20 22 64 6f 6e 74 41 73 | 6b 22 20 74 68 65 6e 0d | "dontAs|k" then.|
|00005130| 72 65 6e 61 6d 65 44 6f | 63 0d 69 66 20 66 6c 64 |renameDo|c.if fld|
|00005140| 20 22 74 69 74 6c 65 22 | 20 3d 20 22 22 20 74 68 | "title"| = "" th|
|00005150| 65 6e 20 70 75 74 20 22 | 55 6e 74 69 74 6c 65 64 |en put "|Untitled|
|00005160| 2d 22 26 6e 75 6d 62 65 | 72 28 74 68 69 73 20 63 |-"&numbe|r(this c|
|00005170| 64 29 2d 31 26 22 2e 68 | 74 6d 6c 22 20 69 6e 74 |d)-1&".h|tml" int|
|00005180| 6f 20 66 6c 64 20 22 74 | 69 74 6c 65 22 0d 70 75 |o fld "t|itle".pu|
|00005190| 74 20 22 6e 6f 74 20 65 | 78 70 6f 72 74 65 64 22 |t "not e|xported"|
|000051a0| 20 69 6e 74 6f 20 66 6c | 64 20 22 6c 61 73 74 45 | into fl|d "lastE|
|000051b0| 78 70 6f 72 74 65 64 22 | 0d 70 75 74 20 74 68 65 |xported"|.put the|
|000051c0| 20 74 69 63 6b 73 20 69 | 6e 74 6f 20 66 6c 64 20 | ticks i|nto fld |
|000051d0| 22 64 61 74 65 22 0d 65 | 6e 64 20 69 66 0d 73 65 |"date".e|nd if.se|
|000051e0| 74 49 6e 66 6f 54 65 78 | 74 0d 65 6e 64 20 6e 65 |tInfoTex|t.end ne|
|000051f0| 77 44 6f 63 75 6d 65 6e | 74 0d 0d 6f 6e 20 69 64 |wDocumen|t..on id|
|00005200| 6c 65 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |le.if th|ere is a|
|00005210| 20 77 69 6e 64 6f 77 20 | 22 70 72 6f 67 72 65 73 | window |"progres|
|00005220| 73 22 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |s" then |close wi|
|00005230| 6e 64 6f 77 20 22 70 72 | 6f 67 72 65 73 73 22 0d |ndow "pr|ogress".|
|00005240| 70 61 73 73 20 69 64 6c | 65 0d 65 6e 64 20 69 64 |pass idl|e.end id|
|00005250| 6c 65 0d 0d 6f 6e 20 73 | 68 6f 77 41 62 6f 75 74 |le..on s|howAbout|
|00005260| 20 74 68 65 54 69 6d 65 | 0d 69 66 20 74 68 65 54 | theTime|.if theT|
|00005270| 69 6d 65 20 3d 20 22 22 | 20 74 68 65 6e 20 70 75 |ime = ""| then pu|
|00005280| 74 20 39 39 39 20 69 6e | 74 6f 20 74 68 65 54 69 |t 999 in|to theTi|
|00005290| 6d 65 0d 69 66 20 74 68 | 65 20 6f 70 74 69 6f 6e |me.if th|e option|
|000052a0| 4b 65 79 20 69 73 20 75 | 70 20 61 6e 64 20 28 69 |Key is u|p and (i|
|000052b0| 74 65 6d 20 32 20 6f 66 | 20 6c 69 6e 65 20 31 20 |tem 2 of| line 1 |
|000052c0| 6f 66 20 67 65 74 4d 6f | 64 65 28 29 20 b3 20 38 |of getMo|de() . 8|
|000052d0| 29 20 74 68 65 6e 20 73 | 68 6f 77 57 69 6e 64 20 |) then s|howWind |
|000052e0| 22 41 62 6f 75 74 42 6f | 78 22 2c 74 68 65 54 69 |"AboutBo|x",theTi|
|000052f0| 6d 65 0d 65 6c 73 65 20 | 73 68 6f 77 57 69 6e 64 |me.else |showWind|
|00005300| 20 22 41 62 6f 75 74 42 | 6f 78 42 57 22 2c 74 68 | "AboutB|oxBW",th|
|00005310| 65 54 69 6d 65 0d 65 6e | 64 20 73 68 6f 77 41 62 |eTime.en|d showAb|
|00005320| 6f 75 74 0d 0d 6f 6e 20 | 73 68 6f 77 57 69 6e 64 |out..on |showWind|
|00005330| 20 77 69 6e 64 2c 74 69 | 6d 65 0d 67 65 74 20 74 | wind,ti|me.get t|
|00005340| 68 65 20 74 69 63 6b 73 | 0d 70 69 63 74 75 72 65 |he ticks|.picture|
|00005350| 20 77 69 6e 64 2c 72 65 | 73 6f 75 72 63 65 2c 73 | wind,re|source,s|
|00005360| 68 61 64 6f 77 2c 66 61 | 6c 73 65 2c 2c 74 72 75 |hadow,fa|lse,,tru|
|00005370| 65 0d 69 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |e.if the| result |
|00005380| ad 20 22 22 20 74 68 65 | 6e 20 61 6e 73 77 65 72 |. "" the|n answer|
|00005390| 20 22 45 52 52 4f 52 22 | 26 72 65 74 75 72 6e 26 | "ERROR"|&return&|
|000053a0| 74 68 65 20 72 65 73 75 | 6c 74 26 72 65 74 75 72 |the resu|lt&retur|
|000053b0| 6e 26 67 65 74 54 45 58 | 54 28 34 37 30 34 29 0d |n&getTEX|T(4704).|
|000053c0| 65 6c 73 65 0d 73 68 6f | 77 20 77 69 6e 64 6f 77 |else.sho|w window|
|000053d0| 20 77 69 6e 64 0d 77 61 | 69 74 20 75 6e 74 69 6c | wind.wa|it until|
|000053e0| 20 74 68 65 20 6d 6f 75 | 73 65 43 6c 69 63 6b 20 | the mou|seClick |
|000053f0| 6f 72 20 74 68 65 20 74 | 69 63 6b 73 20 2d 20 69 |or the t|icks - i|
|00005400| 74 20 3e 20 28 74 69 6d | 65 20 2a 20 36 30 29 0d |t > (tim|e * 60).|
|00005410| 65 6e 64 20 69 66 0d 76 | 69 73 75 61 6c 20 7a 6f |end if.v|isual zo|
|00005420| 6f 6d 20 63 6c 6f 73 65 | 0d 69 66 20 74 68 65 72 |om close|.if ther|
|00005430| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 77 69 |e is a w|indow wi|
|00005440| 6e 64 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |nd then |close wi|
|00005450| 6e 64 6f 77 20 77 69 6e | 64 0d 65 6e 64 20 73 68 |ndow win|d.end sh|
|00005460| 6f 77 57 69 6e 64 0d 0d | 6f 6e 20 6d 6f 75 73 65 |owWind..|on mouse|
|00005470| 44 6f 77 6e 49 6e 50 69 | 63 74 75 72 65 20 77 69 |DownInPi|cture wi|
|00005480| 6e 64 0d 69 66 20 77 69 | 6e 64 20 3d 20 22 45 6e |nd.if wi|nd = "En|
|00005490| 74 69 74 69 65 73 22 20 | 74 68 65 6e 20 73 65 6c |tities" |then sel|
|000054a0| 65 63 74 45 6e 74 69 74 | 79 0d 65 6c 73 65 20 63 |ectEntit|y.else c|
|000054b0| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 77 69 6e 64 |lose win|dow wind|
|000054c0| 0d 65 6e 64 20 6d 6f 75 | 73 65 44 6f 77 6e 49 6e |.end mou|seDownIn|
|000054d0| 50 69 63 74 75 72 65 0d | 0d 6f 6e 20 63 6f 6d 70 |Picture.|.on comp|
|000054e0| 61 63 74 53 74 61 63 6b | 20 6e 6f 77 0d 67 65 74 |actStack| now.get|
|000054f0| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 54 65 78 | the sel|ectedTex|
|00005500| 74 20 6f 66 20 63 64 20 | 62 74 6e 20 69 64 20 33 |t of cd |btn id 3|
|00005510| 30 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 0d |0 of cd |"prefs".|
|00005520| 69 66 20 69 74 20 3d 20 | 22 41 6c 77 61 79 73 22 |if it = |"Always"|
|00005530| 20 74 68 65 6e 20 67 65 | 74 20 22 3e 30 25 22 0d | then ge|t ">0%".|
|00005540| 65 6c 73 65 0d 64 65 6c | 65 74 65 20 66 69 72 73 |else.del|ete firs|
|00005550| 74 20 63 68 61 72 20 6f | 66 20 69 74 0d 64 65 6c |t char o|f it.del|
|00005560| 65 74 65 20 6c 61 73 74 | 20 63 68 61 72 20 6f 66 |ete last| char of|
|00005570| 20 69 74 0d 70 75 74 20 | 69 74 2f 31 30 30 20 69 | it.put |it/100 i|
|00005580| 6e 74 6f 20 74 68 72 65 | 73 68 6f 6c 64 0d 65 6e |nto thre|shold.en|
|00005590| 64 20 69 66 0d 69 66 20 | 28 74 68 65 20 66 72 65 |d if.if |(the fre|
|000055a0| 65 53 69 7a 65 20 6f 66 | 20 74 68 69 73 20 73 74 |eSize of| this st|
|000055b0| 61 63 6b 2f 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |ack/the |size of |
|000055c0| 74 68 69 73 20 73 74 61 | 63 6b 20 3e 20 74 68 72 |this sta|ck > thr|
|000055d0| 65 73 68 6f 6c 64 29 20 | 6f 72 20 6e 6f 77 20 3d |eshold) |or now =|
|000055e0| 20 54 52 55 45 0d 74 68 | 65 6e 20 64 6f 4d 65 6e | TRUE.th|en doMen|
|000055f0| 75 20 22 43 6f 6d 70 61 | 63 74 20 53 74 61 63 6b |u "Compa|ct Stack|
|00005600| 22 0d 65 6e 64 20 63 6f | 6d 70 61 63 74 53 74 61 |".end co|mpactSta|
|00005610| 63 6b 0d 0d 6f 6e 20 70 | 72 69 6e 74 54 65 78 74 |ck..on p|rintText|
|00005620| 0d 67 65 74 20 28 74 68 | 65 20 73 65 6c 65 63 74 |.get (th|e select|
|00005630| 65 64 54 65 78 74 20 6f | 66 20 63 64 20 62 74 6e |edText o|f cd btn|
|00005640| 20 69 64 20 38 37 20 6f | 66 20 63 64 20 22 50 72 | id 87 o|f cd "Pr|
|00005650| 65 66 73 22 29 0d 69 66 | 20 74 68 65 20 73 68 6f |efs").if| the sho|
|00005660| 72 74 20 69 64 20 6f 66 | 20 74 68 69 73 20 63 64 |rt id of| this cd|
|00005670| 20 3d 20 32 38 37 38 20 | 74 68 65 6e 0d 67 65 74 | = 2878 |then.get|
|00005680| 20 69 74 26 22 20 49 6e | 64 65 78 22 0d 6f 70 65 | it&" In|dex".ope|
|00005690| 6e 20 72 65 70 6f 72 74 | 20 70 72 69 6e 74 69 6e |n report| printin|
|000056a0| 67 20 77 69 74 68 20 74 | 65 6d 70 6c 61 74 65 20 |g with t|emplate |
|000056b0| 69 74 0d 70 72 69 6e 74 | 20 74 68 69 73 20 63 64 |it.print| this cd|
|000056c0| 0d 63 6c 6f 73 65 20 70 | 72 69 6e 74 69 6e 67 0d |.close p|rinting.|
|000056d0| 65 6c 73 65 20 69 66 20 | 74 68 65 20 73 68 6f 72 |else if |the shor|
|000056e0| 74 20 69 64 20 6f 66 20 | 74 68 69 73 20 62 67 20 |t id of |this bg |
|000056f0| 3d 20 33 36 33 33 20 74 | 68 65 6e 0d 6f 70 65 6e |= 3633 t|hen.open|
|00005700| 20 72 65 70 6f 72 74 20 | 70 72 69 6e 74 69 6e 67 | report |printing|
|00005710| 20 77 69 74 68 20 74 65 | 6d 70 6c 61 74 65 20 69 | with te|mplate i|
|00005720| 74 0d 70 72 69 6e 74 20 | 74 68 69 73 20 63 64 0d |t.print |this cd.|
|00005730| 63 6c 6f 73 65 20 70 72 | 69 6e 74 69 6e 67 0d 65 |close pr|inting.e|
|00005740| 6c 73 65 20 62 65 65 70 | 0d 65 6e 64 20 70 72 69 |lse beep|.end pri|
|00005750| 6e 74 54 65 78 74 0d 0d | 6f 6e 20 48 54 4d 4c 48 |ntText..|on HTMLH|
|00005760| 65 6c 70 20 69 0d 73 65 | 6e 64 20 74 68 65 20 70 |elp i.se|nd the p|
|00005770| 61 72 61 6d 73 20 74 6f | 20 62 67 20 62 74 6e 20 |arams to| bg btn |
|00005780| 69 64 20 34 37 20 6f 66 | 20 63 64 20 31 20 6f 66 |id 47 of| cd 1 of|
|00005790| 20 62 67 20 22 45 64 69 | 74 6f 72 22 0d 65 6e 64 | bg "Edi|tor".end|
|000057a0| 20 48 54 4d 4c 48 65 6c | 70 0d 0d 6f 6e 20 70 61 | HTMLHel|p..on pa|
|000057b0| 6c 65 74 74 65 48 65 6c | 70 0d 69 66 20 74 68 65 |letteHel|p.if the|
|000057c0| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 74 | short n|ame of t|
|000057d0| 68 69 73 20 62 67 20 3d | 20 22 45 64 69 74 6f 72 |his bg =| "Editor|
|000057e0| 22 20 74 68 65 6e 20 73 | 65 6e 64 20 22 64 65 48 |" then s|end "deH|
|000057f0| 4c 22 20 74 6f 20 74 68 | 69 73 20 63 64 0d 69 66 |L" to th|is cd.if|
|00005800| 20 74 68 65 20 6f 70 74 | 69 6f 6e 4b 65 79 20 69 | the opt|ionKey i|
|00005810| 73 20 75 70 20 74 68 65 | 6e 0d 68 69 64 65 50 61 |s up the|n.hidePa|
|00005820| 6c 65 74 74 65 73 0d 73 | 68 6f 77 44 69 61 6c 6f |lettes.s|howDialo|
|00005830| 67 20 35 2c 34 37 34 32 | 2c 31 31 2c 67 59 28 31 |g 5,4742|,11,gY(1|
|00005840| 36 39 29 2c 67 58 28 31 | 36 32 29 0d 73 65 65 6b |69),gX(1|62).seek|
|00005850| 50 61 6c 65 74 74 65 73 | 0d 65 6c 73 65 20 73 68 |Palettes|.else sh|
|00005860| 6f 77 57 69 6e 64 20 22 | 57 69 6e 64 6f 77 45 6c |owWind "|WindowEl|
|00005870| 65 6d 65 6e 74 73 22 2c | 39 39 39 0d 65 6e 64 20 |ements",|999.end |
|00005880| 70 61 6c 65 74 74 65 48 | 65 6c 70 0d 0d 6f 6e 20 |paletteH|elp..on |
|00005890| 70 61 6c 65 74 74 65 53 | 69 6d 70 6c 65 48 65 6c |paletteS|impleHel|
|000058a0| 70 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 6e |p.if the| short n|
|000058b0| 61 6d 65 20 6f 66 20 74 | 68 69 73 20 62 67 20 3d |ame of t|his bg =|
|000058c0| 20 22 45 64 69 74 6f 72 | 22 20 74 68 65 6e 20 73 | "Editor|" then s|
|000058d0| 65 6e 64 20 22 64 65 48 | 4c 22 20 74 6f 20 74 68 |end "deH|L" to th|
|000058e0| 69 73 20 63 64 0d 69 66 | 20 74 68 65 20 6f 70 74 |is cd.if| the opt|
|000058f0| 69 6f 6e 4b 65 79 20 69 | 73 20 75 70 20 74 68 65 |ionKey i|s up the|
|00005900| 6e 0d 68 69 64 65 50 61 | 6c 65 74 74 65 73 0d 73 |n.hidePa|lettes.s|
|00005910| 68 6f 77 57 69 6e 64 20 | 22 53 69 6d 70 6c 65 50 |howWind |"SimpleP|
|00005920| 61 6c 65 74 74 65 48 65 | 6c 70 22 2c 39 39 39 20 |aletteHe|lp",999 |
|00005930| 2d 2d 20 31 30 31 39 0d | 73 65 65 6b 50 61 6c 65 |-- 1019.|seekPale|
|00005940| 74 74 65 73 0d 65 6c 73 | 65 20 73 68 6f 77 57 69 |ttes.els|e showWi|
|00005950| 6e 64 20 22 57 69 6e 64 | 6f 77 45 6c 65 6d 65 6e |nd "Wind|owElemen|
|00005960| 74 73 22 2c 39 39 39 0d | 65 6e 64 20 70 61 6c 65 |ts",999.|end pale|
|00005970| 74 74 65 53 69 6d 70 6c | 65 48 65 6c 70 0d 0d 6f |tteSimpl|eHelp..o|
|00005980| 6e 20 63 6c 69 63 6b 49 | 6e 54 65 78 74 20 74 68 |n clickI|nText th|
|00005990| 65 57 6f 72 64 2c 57 4e | 61 6d 65 2c 77 2c 73 31 |eWord,WN|ame,w,s1|
|000059a0| 2c 73 32 2c 66 2c 73 32 | 2c 74 68 65 53 74 79 6c |,s2,f,s2|,theStyl|
|000059b0| 65 0d 69 66 20 57 4e 61 | 6d 65 20 3d 20 22 49 6e |e.if WNa|me = "In|
|000059c0| 66 6f 22 20 74 68 65 6e | 20 73 65 74 49 6e 66 6f |fo" then| setInfo|
|000059d0| 54 65 78 74 0d 65 6c 73 | 65 20 69 66 20 74 68 65 |Text.els|e if the|
|000059e0| 53 74 79 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 22 |Style co|ntains "|
|000059f0| 67 72 6f 75 70 22 20 61 | 6e 64 20 74 68 65 53 74 |group" a|nd theSt|
|00005a00| 79 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 22 75 6e |yle cont|ains "un|
|00005a10| 64 65 72 6c 69 6e 65 22 | 20 74 68 65 6e 20 48 54 |derline"| then HT|
|00005a20| 4d 4c 48 65 6c 70 20 74 | 68 65 57 6f 72 64 0d 65 |MLHelp t|heWord.e|
|00005a30| 6c 73 65 20 69 66 20 57 | 4e 61 6d 65 20 3d 20 22 |lse if W|Name = "|
|00005a40| 43 6c 69 70 22 20 61 6e | 64 20 74 68 65 53 74 79 |Clip" an|d theSty|
|00005a50| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 22 67 72 6f |le conta|ins "gro|
|00005a60| 75 70 22 20 61 6e 64 20 | 22 66 69 65 6c 64 22 20 |up" and |"field" |
|00005a70| 69 73 20 69 6e 20 74 68 | 65 20 73 65 6c 65 63 74 |is in th|e select|
|00005a80| 65 64 43 68 75 6e 6b 20 | 74 68 65 6e 0d 73 65 74 |edChunk |then.set|
|00005a90| 55 6e 64 6f 0d 67 65 74 | 20 67 72 65 70 43 6f 6e |Undo.get| grepCon|
|00005aa0| 76 65 72 74 28 74 68 65 | 57 6f 72 64 29 0d 74 79 |vert(the|Word).ty|
|00005ab0| 70 65 20 72 65 70 28 69 | 74 2c 22 27 22 2c 71 75 |pe rep(i|t,"'",qu|
|00005ac0| 6f 74 65 29 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |ote).end| if.end |
|00005ad0| 63 6c 69 63 6b 49 6e 54 | 65 78 74 0d 0d 6f 6e 20 |clickInT|ext..on |
|00005ae0| 63 6f 70 79 43 6c 69 70 | 0d 73 65 6e 64 20 74 68 |copyClip|.send th|
|00005af0| 65 20 70 61 72 61 6d 73 | 20 74 6f 20 62 67 20 62 |e params| to bg b|
|00005b00| 74 6e 20 69 64 20 33 39 | 20 6f 66 20 63 64 20 31 |tn id 39| of cd 1|
|00005b10| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00005b20| 65 6e 64 20 63 6f 70 79 | 43 6c 69 70 0d 0d 6f 6e |end copy|Clip..on|
|00005b30| 20 63 75 74 43 6c 69 70 | 0d 73 65 6e 64 20 74 68 | cutClip|.send th|
|00005b40| 65 20 70 61 72 61 6d 73 | 20 74 6f 20 62 67 20 62 |e params| to bg b|
|00005b50| 74 6e 20 69 64 20 33 39 | 20 6f 66 20 63 64 20 31 |tn id 39| of cd 1|
|00005b60| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00005b70| 65 6e 64 20 63 75 74 43 | 6c 69 70 0d 0d 6f 6e 20 |end cutC|lip..on |
|00005b80| 67 6f 43 6c 69 70 0d 67 | 6f 20 63 64 20 22 70 72 |goClip.g|o cd "pr|
|00005b90| 65 66 73 22 0d 73 65 74 | 50 72 65 66 73 20 37 0d |efs".set|Prefs 7.|
|00005ba0| 73 65 74 4c 69 62 72 61 | 72 79 20 32 0d 65 6e 64 |setLibra|ry 2.end|
|00005bb0| 20 67 6f 43 6c 69 70 0d | 0d 6f 6e 20 73 68 6f 77 | goClip.|.on show|
|00005bc0| 43 6c 69 70 0d 73 65 6e | 64 20 74 68 65 20 70 61 |Clip.sen|d the pa|
|00005bd0| 72 61 6d 73 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |rams to |bg btn i|
|00005be0| 64 20 33 39 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 39 of |cd 1 of |
|00005bf0| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00005c00| 73 68 6f 77 43 6c 69 70 | 0d 0d 6f 6e 20 63 6c 6f |showClip|..on clo|
|00005c10| 73 65 54 65 78 74 6f 69 | 64 20 57 4e 61 6d 65 0d |seTextoi|d WName.|
|00005c20| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00005c30| 6e 64 6f 77 20 22 43 6c | 69 70 22 20 74 68 65 6e |ndow "Cl|ip" then|
|00005c40| 20 70 75 74 20 74 68 65 | 20 72 65 63 74 20 6f 66 | put the| rect of|
|00005c50| 20 77 69 6e 64 6f 77 20 | 22 43 6c 69 70 22 20 69 | window |"Clip" i|
|00005c60| 6e 74 6f 20 63 64 20 66 | 6c 64 20 22 63 6c 69 70 |nto cd f|ld "clip|
|00005c70| 4c 6f 63 22 20 6f 66 20 | 63 64 20 22 70 72 65 66 |Loc" of |cd "pref|
|00005c80| 73 22 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |s".if th|ere is a|
|00005c90| 20 77 69 6e 64 6f 77 20 | 22 49 6e 66 6f 22 20 74 | window |"Info" t|
|00005ca0| 68 65 6e 20 70 75 74 20 | 74 68 65 20 72 65 63 74 |hen put |the rect|
|00005cb0| 20 6f 66 20 77 69 6e 64 | 6f 77 20 22 49 6e 66 6f | of wind|ow "Info|
|00005cc0| 22 20 69 6e 74 6f 20 63 | 64 20 66 6c 64 20 22 69 |" into c|d fld "i|
|00005cd0| 6e 66 6f 52 65 63 74 22 | 20 6f 66 20 63 64 20 22 |nfoRect"| of cd "|
|00005ce0| 70 72 65 66 73 22 0d 69 | 66 20 57 4e 61 6d 65 20 |prefs".i|f WName |
|00005cf0| 69 73 20 22 4e 6f 74 65 | 22 20 74 68 65 6e 0d 69 |is "Note|" then.i|
|00005d00| 66 20 6e 6f 74 20 74 68 | 65 20 6c 6f 63 6b 54 65 |f not th|e lockTe|
|00005d10| 78 74 20 6f 66 20 77 69 | 6e 64 6f 77 20 22 4e 6f |xt of wi|ndow "No|
|00005d20| 74 65 22 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |te" then|.answer |
|00005d30| 22 53 61 76 65 20 63 68 | 61 6e 67 65 73 20 74 6f |"Save ch|anges to|
|00005d40| 20 4e 6f 74 65 3f 22 20 | 77 69 74 68 20 22 43 61 | Note?" |with "Ca|
|00005d50| 6e 63 65 6c 22 20 6f 72 | 20 22 53 61 76 65 22 0d |ncel" or| "Save".|
|00005d60| 69 66 20 69 74 20 3d 20 | 22 53 61 76 65 22 20 74 |if it = |"Save" t|
|00005d70| 68 65 6e 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |hen.lock| screen.|
|00005d80| 6c 6f 63 6b 20 6d 65 73 | 73 61 67 65 73 0d 70 75 |lock mes|sages.pu|
|00005d90| 73 68 20 63 64 0d 67 6f | 20 63 64 20 22 69 6e 64 |sh cd.go| cd "ind|
|00005da0| 65 78 22 0d 73 65 74 20 | 66 69 65 6c 64 54 72 61 |ex".set |fieldTra|
|00005db0| 6e 73 66 65 72 20 6f 66 | 20 77 69 6e 64 6f 77 20 |nsfer of| window |
|00005dc0| 22 4e 6f 74 65 22 20 74 | 6f 20 22 63 64 20 66 6c |"Note" t|o "cd fl|
|00005dd0| 64 20 69 64 20 37 22 0d | 70 6f 70 20 63 64 0d 75 |d id 7".|pop cd.u|
|00005de0| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 62 69 6e |nlock sc|reen.bin|
|00005df0| 6b 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |k.end if|.end if.|
|00005e00| 65 6e 64 20 69 66 0d 65 | 6e 64 20 63 6c 6f 73 65 |end if.e|nd close|
|00005e10| 54 65 78 74 6f 69 64 0d | 0d 6f 6e 20 73 65 74 49 |Textoid.|.on setI|
|00005e20| 6e 64 65 78 65 64 20 6d | 6f 64 65 0d 67 6c 6f 62 |ndexed m|ode.glob|
|00005e30| 61 6c 20 69 6e 64 65 78 | 65 64 0d 69 66 20 6d 6f |al index|ed.if mo|
|00005e40| 64 65 20 74 68 65 6e 20 | 67 65 74 20 34 32 33 30 |de then |get 4230|
|00005e50| 20 65 6c 73 65 20 67 65 | 74 20 34 32 31 32 0d 73 | else ge|t 4212.s|
|00005e60| 65 74 20 74 68 65 20 69 | 63 6f 6e 20 6f 66 20 63 |et the i|con of c|
|00005e70| 64 20 62 74 6e 20 69 64 | 20 32 31 20 6f 66 20 63 |d btn id| 21 of c|
|00005e80| 64 20 22 69 6e 64 65 78 | 22 20 74 6f 20 69 74 0d |d "index|" to it.|
|00005e90| 70 75 74 20 6d 6f 64 65 | 20 69 6e 74 6f 20 69 6e |put mode| into in|
|00005ea0| 64 65 78 65 64 0d 65 6e | 64 20 73 65 74 49 6e 64 |dexed.en|d setInd|
|00005eb0| 65 78 65 64 0d 0d 6f 6e | 20 73 65 6c 65 63 74 46 |exed..on| selectF|
|00005ec0| 72 6f 6d 49 6e 64 65 78 | 0d 73 65 6e 64 20 74 68 |romIndex|.send th|
|00005ed0| 65 20 70 61 72 61 6d 73 | 20 74 6f 20 62 67 20 62 |e params| to bg b|
|00005ee0| 74 6e 20 69 64 20 32 31 | 20 6f 66 20 63 64 20 31 |tn id 21| of cd 1|
|00005ef0| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00005f00| 65 6e 64 20 73 65 6c 65 | 63 74 46 72 6f 6d 49 6e |end sele|ctFromIn|
|00005f10| 64 65 78 0d 0d 6f 6e 20 | 69 6e 64 65 78 53 74 61 |dex..on |indexSta|
|00005f20| 63 6b 0d 73 65 6e 64 20 | 74 68 65 20 70 61 72 61 |ck.send |the para|
|00005f30| 6d 73 20 74 6f 20 62 67 | 20 62 74 6e 20 69 64 20 |ms to bg| btn id |
|00005f40| 32 31 20 6f 66 20 63 64 | 20 31 20 6f 66 20 62 67 |21 of cd| 1 of bg|
|00005f50| 20 22 45 64 69 74 6f 72 | 22 0d 65 6e 64 20 69 6e | "Editor|".end in|
|00005f60| 64 65 78 53 74 61 63 6b | 0d 0d 2d 2d 20 6f 70 65 |dexStack|..-- ope|
|00005f70| 6e 69 6e 67 20 68 61 6e | 64 6c 65 72 73 0d 0d 6f |ning han|dlers..o|
|00005f80| 6e 20 73 74 61 72 74 75 | 70 0d 73 65 6e 64 20 22 |n startu|p.send "|
|00005f90| 69 6e 69 74 69 61 6c 69 | 7a 65 22 20 74 6f 20 63 |initiali|ze" to c|
|00005fa0| 64 20 69 64 20 32 38 37 | 38 0d 70 61 73 73 20 73 |d id 287|8.pass s|
|00005fb0| 74 61 72 74 75 70 0d 65 | 6e 64 20 73 74 61 72 74 |tartup.e|nd start|
|00005fc0| 75 70 0d 0d 6f 6e 20 73 | 69 7a 65 43 61 72 64 57 |up..on s|izeCardW|
|00005fd0| 69 6e 64 6f 77 0d 67 65 | 74 20 63 64 20 66 6c 64 |indow.ge|t cd fld|
|00005fe0| 20 69 64 20 31 39 20 6f | 66 20 63 64 20 22 70 72 | id 19 o|f cd "pr|
|00005ff0| 65 66 73 22 0d 69 66 20 | 28 74 68 65 20 68 69 6c |efs".if |(the hil|
|00006000| 69 74 65 20 6f 66 20 63 | 64 20 62 74 6e 20 69 64 |ite of c|d btn id|
|00006010| 20 34 37 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 | 47 of c|d "prefs|
|00006020| 22 29 20 61 6e 64 20 74 | 68 65 20 6f 70 74 69 6f |") and t|he optio|
|00006030| 6e 4b 65 79 20 69 73 20 | 75 70 20 61 6e 64 20 28 |nKey is |up and (|
|00006040| 6c 69 6e 65 20 32 20 6f | 66 20 69 74 20 3d 20 74 |line 2 o|f it = t|
|00006050| 68 65 20 73 63 72 65 65 | 6e 52 65 63 74 29 20 74 |he scree|nRect) t|
|00006060| 68 65 6e 0d 73 65 74 20 | 74 68 65 20 72 65 63 74 |hen.set |the rect|
|00006070| 20 6f 66 20 74 68 69 73 | 20 63 64 20 74 6f 20 6c | of this| cd to l|
|00006080| 69 6e 65 20 31 20 6f 66 | 20 69 74 0d 65 6c 73 65 |ine 1 of| it.else|
|00006090| 20 73 65 74 20 74 68 65 | 20 72 65 63 74 20 6f 66 | set the| rect of|
|000060a0| 20 74 68 69 73 20 63 64 | 20 74 6f 20 22 30 2c 34 | this cd| to "0,4|
|000060b0| 30 2c 35 31 32 2c 33 38 | 32 22 0d 65 6e 64 20 73 |0,512,38|2".end s|
|000060c0| 69 7a 65 43 61 72 64 57 | 69 6e 64 6f 77 0d 0d 6f |izeCardW|indow..o|
|000060d0| 6e 20 63 6c 6f 73 65 53 | 74 61 63 6b 0d 67 6c 6f |n closeS|tack.glo|
|000060e0| 62 61 6c 20 74 6f 6f 6c | 50 61 6c 65 74 74 65 0d |bal tool|Palette.|
|000060f0| 73 65 74 20 63 75 72 73 | 6f 72 20 74 6f 20 62 79 |set curs|or to by|
|00006100| 65 0d 70 75 74 20 74 68 | 65 20 72 65 63 74 20 6f |e.put th|e rect o|
|00006110| 66 20 63 64 20 77 69 6e | 64 6f 77 26 72 65 74 75 |f cd win|dow&retu|
|00006120| 72 6e 26 74 68 65 20 73 | 63 72 65 65 6e 52 65 63 |rn&the s|creenRec|
|00006130| 74 20 69 6e 74 6f 20 63 | 64 20 66 6c 64 20 69 64 |t into c|d fld id|
|00006140| 20 31 39 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 | 19 of c|d "prefs|
|00006150| 22 0d 69 66 20 74 68 65 | 20 68 69 6c 69 74 65 20 |".if the| hilite |
|00006160| 6f 66 20 63 64 20 62 74 | 6e 20 69 64 20 32 39 20 |of cd bt|n id 29 |
|00006170| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 20 74 68 |of cd "p|refs" th|
|00006180| 65 6e 20 63 6f 6d 70 61 | 63 74 53 74 61 63 6b 0d |en compa|ctStack.|
|00006190| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|000061a0| 6e 64 6f 77 20 22 48 54 | 4d 4c 2e 65 64 69 74 20 |ndow "HT|ML.edit |
|000061b0| 48 65 6c 70 22 20 74 68 | 65 6e 20 63 6c 6f 73 65 |Help" th|en close|
|000061c0| 20 77 69 6e 64 6f 77 20 | 22 48 54 4d 4c 2e 65 64 | window |"HTML.ed|
|000061d0| 69 74 20 48 65 6c 70 22 | 0d 69 66 20 74 68 65 72 |it Help"|.if ther|
|000061e0| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 74 6f |e is a w|indow to|
|000061f0| 6f 6c 50 61 6c 65 74 74 | 65 20 74 68 65 6e 20 63 |olPalett|e then c|
|00006200| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 74 6f 6f 6c |lose win|dow tool|
|00006210| 50 61 6c 65 74 74 65 0d | 69 66 20 74 68 65 72 65 |Palette.|if there|
|00006220| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 22 45 6e | is a wi|ndow "En|
|00006230| 74 69 74 69 65 73 22 20 | 74 68 65 6e 20 63 6c 6f |tities" |then clo|
|00006240| 73 65 20 77 69 6e 64 6f | 77 20 22 45 6e 74 69 74 |se windo|w "Entit|
|00006250| 69 65 73 22 0d 72 65 73 | 65 74 20 6d 65 6e 75 62 |ies".res|et menub|
|00006260| 61 72 0d 73 65 6e 64 20 | 22 73 65 74 45 6c 61 70 |ar.send |"setElap|
|00006270| 73 65 64 22 20 74 6f 20 | 63 64 20 69 64 20 32 38 |sed" to |cd id 28|
|00006280| 37 38 0d 70 61 73 73 20 | 63 6c 6f 73 65 53 74 61 |78.pass |closeSta|
|00006290| 63 6b 0d 65 6e 64 20 63 | 6c 6f 73 65 53 74 61 63 |ck.end c|loseStac|
|000062a0| 6b 0d 0d 6f 6e 20 73 75 | 73 70 65 6e 64 53 74 61 |k..on su|spendSta|
|000062b0| 63 6b 0d 68 69 64 65 50 | 61 6c 65 74 74 65 73 0d |ck.hideP|alettes.|
|000062c0| 72 65 73 65 74 20 6d 65 | 6e 75 62 61 72 0d 70 61 |reset me|nubar.pa|
|000062d0| 73 73 20 73 75 73 70 65 | 6e 64 53 74 61 63 6b 0d |ss suspe|ndStack.|
|000062e0| 65 6e 64 20 73 75 73 70 | 65 6e 64 53 74 61 63 6b |end susp|endStack|
|000062f0| 0d 0d 6f 6e 20 72 65 73 | 75 6d 65 53 74 61 63 6b |..on res|umeStack|
|00006300| 0d 73 65 65 6b 50 61 6c | 65 74 74 65 73 0d 73 65 |.seekPal|ettes.se|
|00006310| 6e 64 20 22 73 65 74 4d | 65 6e 75 73 22 20 74 6f |nd "setM|enus" to|
|00006320| 20 63 64 20 69 64 20 32 | 38 37 38 0d 70 61 73 73 | cd id 2|878.pass|
|00006330| 20 72 65 73 75 6d 65 53 | 74 61 63 6b 0d 65 6e 64 | resumeS|tack.end|
|00006340| 20 72 65 73 75 6d 65 53 | 74 61 63 6b 0d 0d 2d 2d | resumeS|tack..--|
|00006350| 20 48 54 4d 4c 20 43 6f | 64 69 6e 67 0d 0d 6f 6e | HTML Co|ding..on|
|00006360| 20 48 54 4d 4c 41 64 64 | 72 65 73 73 0d 73 65 6e | HTMLAdd|ress.sen|
|00006370| 64 20 74 68 65 20 70 61 | 72 61 6d 73 20 74 6f 20 |d the pa|rams to |
|00006380| 62 67 20 62 74 6e 20 69 | 64 20 33 31 20 6f 66 20 |bg btn i|d 31 of |
|00006390| 63 64 20 31 20 6f 66 20 | 62 67 20 22 45 64 69 74 |cd 1 of |bg "Edit|
|000063a0| 6f 72 22 0d 65 6e 64 20 | 48 54 4d 4c 41 64 64 72 |or".end |HTMLAddr|
|000063b0| 65 73 73 0d 0d 6f 6e 20 | 48 54 4d 4c 20 69 2c 6a |ess..on |HTML i,j|
|000063c0| 2c 6b 0d 67 6c 6f 62 61 | 6c 20 68 4e 75 6d 0d 70 |,k.globa|l hNum.p|
|000063d0| 75 74 20 74 68 65 20 70 | 61 72 61 6d 20 6f 66 20 |ut the p|aram of |
|000063e0| 28 74 68 65 20 70 61 72 | 61 6d 43 6f 75 6e 74 29 |(the par|amCount)|
|000063f0| 20 69 6e 74 6f 20 6d 6f | 64 65 0d 70 75 74 20 74 | into mo|de.put t|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.