Rev 92 | Rev 201 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
144 | jmachado | 1 | function set(form, value) |
2 | { |
||
1 | fvelez | 3 | form.dispatch.value = value; |
4 | } |
||
5 | |||
6 | function getFileMonth(path) |
||
7 | { |
||
8 | var fso, f, s; |
||
9 | |||
10 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
11 | f = fso.GetFile(path); |
||
12 | |||
13 | return(new Date(f.DateLastModified).getMonth() + 1); |
||
14 | } |
||
15 | function getFileYear(path) |
||
16 | { |
||
17 | var fso, f, s; |
||
18 | |||
19 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
20 | f = fso.GetFile(path); |
||
21 | |||
22 | return(new Date(f.DateLastModified).getYear()); |
||
23 | } |
||
24 | function getFileDay(path) |
||
25 | { |
||
26 | var fso, f, s; |
||
27 | |||
28 | fso = new ActiveXObject("Scripting.FileSystemObject"); |
||
29 | f = fso.GetFile(path); |
||
30 | |||
31 | return(new Date(f.DateLastModified).getDate()); |
||
92 | jmachado | 32 | } |
144 | jmachado | 33 | |
34 | function horizontal() |
||
35 | { |
||
36 | |||
37 | var navItems = document.getElementById("menu_dropdown").getElementsByTagName("li"); |
||
38 | |||
39 | for (var i = 0; i < navItems.length; i++) |
||
40 | { |
||
41 | if (navItems[i].className == "submenu") |
||
42 | { |
||
43 | if (navItems[i].getElementsByTagName('ul')[0] != null) |
||
44 | { |
||
45 | navItems[i].onmouseover = function() |
||
46 | { |
||
47 | this.getElementsByTagName('ul')[0].style.display = "block"; |
||
48 | this.style.backgroundColor="#cccccc"; |
||
49 | } |
||
50 | navItems[i].onmouseout = function() |
||
51 | { |
||
52 | this.getElementsByTagName('ul')[0].style.display = "none"; |
||
53 | this.style.backgroundColor=""; |
||
54 | } |
||
55 | } |
||
56 | } |
||
57 | } |
||
58 | |||
59 | } |