source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/IndianHealthService.BMXNet.Doc/Help/Presentation/Shared/scripts/samples.js@ 1146

Last change on this file since 1146 was 1146, checked in by Sam Habiel, 13 years ago

Initial Import of BMX4

File size: 1.4 KB
Line 
1
2function closeMe()
3{
4 window.close();
5}
6
7function ChangeViewCodeIcon(key)
8{
9 var i;
10 var imageElements = document.getElementsByName("vcImage");
11 for(i=0; i<imageElements.length; ++i)
12 {
13 if(imageElements[i].parentElement == key)
14 {
15 if(imageElements[i].src == viewImage.src)
16 imageElements[i].src = viewHoverImage.src;
17 else
18 imageElements[i].src = viewImage.src;
19 }
20 }
21}
22
23function ChangeDownloadCodeIcon(key)
24{
25 var i;
26 var imageElements = document.getElementsByName("dcImage");
27 for(i=0; i<imageElements.length; ++i)
28 {
29 if(imageElements[i].parentElement == key)
30 {
31 if(imageElements[i].src == downloadImage.src)
32 imageElements[i].src = downloadHoverImage.src;
33 else
34 imageElements[i].src = downloadImage.src;
35 }
36 }
37}
38
39function ViewSampleSource(name)
40{
41 // variables
42 var wConfig;
43 var oSelectBox = document.all.item(name);
44 var url;
45 var sIndex;
46
47 // Get the selectedIndex
48 sIndex = oSelectBox.selectedIndex;
49
50 if (sIndex >= 0)
51 {
52 // Get the URL to the file
53 url = oSelectBox.options[sIndex].value;
54
55 // Set the configuration
56 wConfig += 'directories=0,';
57 wConfig += 'location=0,';
58 wConfig += 'menubar=0,';
59 wConfig += 'resizable=1,';
60 wConfig += 'scrollbars=1,';
61 wConfig += 'status=0,';
62 wConfig += 'toolbar=0';
63
64 // Launch the window
65 window.open(url, 'ViewSampleSource', wConfig);
66 }
67}
Note: See TracBrowser for help on using the repository browser.