| 119 |
ghuddy |
1 |
/*
|
|
|
2 |
*
|
|
|
3 |
* Common Java Scripts
|
|
|
4 |
*
|
|
|
5 |
*/
|
|
|
6 |
<!--
|
|
|
7 |
|
|
|
8 |
function MM_jumpMenu(targ,selObj,restore){ //v3.1
|
|
|
9 |
if (selObj.options[selObj.selectedIndex].value) {
|
|
|
10 |
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
|
|
|
11 |
if (restore) selObj.selectedIndex=0;
|
|
|
12 |
}
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
function MM_preloadImages() { //v3.0
|
|
|
16 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
|
|
17 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
|
|
18 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
function MM_reloadPage(init) { //reloads the window if Nav4 resized
|
|
|
22 |
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
|
|
|
23 |
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
|
|
|
24 |
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
|
|
|
25 |
}
|
|
|
26 |
MM_reloadPage(true);
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
function MM_findObj(n, d) { //v4.0
|
|
|
30 |
var p,i,x;
|
|
|
31 |
if(!d) d=document;
|
|
|
32 |
if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|
|
33 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
|
|
|
34 |
}
|
|
|
35 |
if(!(x=d[n])&&d.all) x=d.all[n];
|
|
|
36 |
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|
|
37 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|
|
38 |
if(!x && document.getElementById) x=document.getElementById(n);
|
|
|
39 |
return x;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
|
| 2735 |
dpurdie |
43 |
function MM_openBrWindow(theURL,winName,features) { //v2.0 in scripts/common.js
|
| 119 |
ghuddy |
44 |
window.open(theURL,winName,features);
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
function ToggleDisplay () {
|
|
|
49 |
var i, args, div_name, visibility
|
|
|
50 |
args=ToggleDisplay.arguments;
|
|
|
51 |
for (i=0; i<(args.length); i+=1) {
|
|
|
52 |
div_name=args[i];
|
|
|
53 |
if ( MM_findObj(div_name).style.display == 'block' ) {
|
|
|
54 |
MM_findObj(div_name).style.display = 'none';
|
|
|
55 |
} else {
|
|
|
56 |
MM_findObj(div_name).style.display = 'block';
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
}
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
function DisplayArea() {
|
|
|
63 |
var i, args, row_name, visibility, persist;
|
|
|
64 |
|
|
|
65 |
args=DisplayArea.arguments;
|
|
|
66 |
for (i=0; i<(args.length); i+=3) {
|
|
|
67 |
row_name=args[i];
|
|
|
68 |
visibility=args[i+1];
|
|
|
69 |
persist=args[i+2];
|
|
|
70 |
MM_findObj(row_name).style.display = visibility;
|
|
|
71 |
if (persist) {
|
|
|
72 |
document.cookie = "DM_"+ row_name +"="+ visibility +";";
|
|
|
73 |
}
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
function go_submit( formname, actionname )
|
|
|
79 |
{
|
|
|
80 |
formname.action.value = actionname;
|
|
|
81 |
formname.submit();
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
function ShowProgress ()
|
|
|
85 |
{
|
|
|
86 |
MM_findObj('divProgressBar').style.visibility='visible';
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
function ExpandAll()
|
|
|
90 |
{
|
|
|
91 |
var elem
|
|
|
92 |
|
|
|
93 |
if (document.all)
|
|
|
94 |
{
|
|
|
95 |
// Run this for IE
|
|
|
96 |
elem = document.all;
|
|
|
97 |
} else {
|
|
|
98 |
// Run this for other browsers
|
|
|
99 |
elem = document.getElementsByTagName('div');
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
for (i in elem)
|
|
|
103 |
{
|
|
|
104 |
if (elem[i].id)
|
|
|
105 |
{
|
|
|
106 |
if (elem[i].id.indexOf('SHORT_') == 0) elem[i].style.display = 'none';
|
|
|
107 |
if (elem[i].id.indexOf('LONG_') == 0) elem[i].style.display = 'block';
|
|
|
108 |
}
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
function CollapseAll()
|
|
|
114 |
{
|
|
|
115 |
var elem
|
|
|
116 |
|
|
|
117 |
if (document.all)
|
|
|
118 |
{
|
|
|
119 |
// Run this for IE
|
|
|
120 |
elem = document.all;
|
|
|
121 |
} else {
|
|
|
122 |
// Run this for other browsers
|
|
|
123 |
elem = document.getElementsByTagName('div');
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
for (i in elem)
|
|
|
127 |
{
|
|
|
128 |
if (elem[i].id)
|
|
|
129 |
{
|
|
|
130 |
if (elem[i].id.indexOf('SHORT_') == 0) elem[i].style.display = 'block';
|
|
|
131 |
if (elem[i].id.indexOf('LONG_') == 0) elem[i].style.display = 'none';
|
|
|
132 |
}
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
/*
|
|
|
138 |
function getPaneStatus() {
|
|
|
139 |
var i, args
|
|
|
140 |
args=getPaneStatus.arguments;
|
|
|
141 |
for (i=0; i<(args.length); i+=1) {
|
|
|
142 |
MM_findObj(args[i]).style.display = GetCookie("DM_"+ args[i]);
|
|
|
143 |
}
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
function GetCookieVal (offset) {
|
|
|
148 |
var endstr = document.cookie.indexOf (";", offset);
|
|
|
149 |
if (endstr == -1) { endstr = document.cookie.length; }
|
|
|
150 |
return unescape(document.cookie.substring(offset, endstr));
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
function GetCookie (name) {
|
|
|
155 |
var arg = name + "=";
|
|
|
156 |
var alen = arg.length;
|
|
|
157 |
var clen = document.cookie.length;
|
|
|
158 |
var i = 0;
|
|
|
159 |
|
|
|
160 |
while (i < clen) {
|
|
|
161 |
var j = i + alen;
|
|
|
162 |
if (document.cookie.substring(i, j) == arg) return GetCookieVal (j);
|
|
|
163 |
i = document.cookie.indexOf(" ", i) + 1;
|
|
|
164 |
if (i == 0) break;
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
return null;
|
|
|
168 |
}
|
|
|
169 |
*/
|
|
|
170 |
//-->
|