|
@@ -1,66 +0,0 @@
|
1
|
|
-function goTo( url ) {
|
2
|
|
- window.location.href = url;
|
3
|
|
-}
|
4
|
|
-
|
5
|
|
-function goToNew( url ) {
|
6
|
|
- window.open(url)
|
7
|
|
-}
|
8
|
|
-
|
9
|
|
-function navBar( tableCellRef, hoverFlag, navStyle, sTip) {
|
10
|
|
- if ( hoverFlag ) {
|
11
|
|
- switch ( navStyle ) {
|
12
|
|
- case 0:
|
13
|
|
- tableCellRef.style.backgroundColor = '#FFB200';
|
14
|
|
- break;
|
15
|
|
- case 1:
|
16
|
|
- tableCellRef.style.backgroundColor = '#FFB200';
|
17
|
|
- break;
|
18
|
|
- case 2:
|
19
|
|
- tableCellRef.style.backgroundColor = '#FFECBF';
|
20
|
|
- break;
|
21
|
|
- }
|
22
|
|
- } else {
|
23
|
|
- switch ( navStyle ) {
|
24
|
|
- case 0:
|
25
|
|
- tableCellRef.style.backgroundColor = '';
|
26
|
|
- break;
|
27
|
|
- case 1:
|
28
|
|
- tableCellRef.style.backgroundColor = '#2E2EB2';
|
29
|
|
- break;
|
30
|
|
- case 2:
|
31
|
|
- tableCellRef.style.backgroundColor = '#C0C0EC';
|
32
|
|
- break;
|
33
|
|
- }
|
34
|
|
- }
|
35
|
|
-
|
36
|
|
- window.status = sTip;
|
37
|
|
-}
|
38
|
|
-
|
39
|
|
-function navBarClick( tableCellRef, navStyle, url ) {
|
40
|
|
- navBar( tableCellRef, 0, navStyle );
|
41
|
|
- goTo( url );
|
42
|
|
-}
|
43
|
|
-
|
44
|
|
-function navBarClickNew( tableCellRef, navStyle, url ) {
|
45
|
|
- navBar( tableCellRef, 0, navStyle );
|
46
|
|
- goToNew( url );
|
47
|
|
-}
|
48
|
|
-
|
49
|
|
-function openPopup( url, name, widgets, openerUrl )
|
50
|
|
-{
|
51
|
|
- var host = location.hostname;
|
52
|
|
- var popupWin = window.open( url, name, widgets );
|
53
|
|
-
|
54
|
|
- if ( popupWin && popupWin.opener ) {
|
55
|
|
- if ( openerUrl )
|
56
|
|
- {
|
57
|
|
- popupWin.opener.location = openerUrl;
|
58
|
|
- popupWin.focus();
|
59
|
|
- }
|
60
|
|
- popupWin.opener.top.name = "opener";
|
61
|
|
- }
|
62
|
|
-}
|
63
|
|
-
|
64
|
|
-function swapColours(oCell, nColour){
|
65
|
|
- oCell.style.backgroundColor = nColour;
|
66
|
|
- }
|