| 2 |
rsolanki |
1 |
/*
|
|
|
2 |
*
|
|
|
3 |
* Common Java Scripts
|
|
|
4 |
*
|
|
|
5 |
*/
|
|
|
6 |
<!--
|
|
|
7 |
function MM_preloadImages() { //v3.0
|
|
|
8 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
|
|
9 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
|
|
10 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
function MM_reloadPage(init) { //reloads the window if Nav4 resized
|
|
|
15 |
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
|
|
|
16 |
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
|
|
|
17 |
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
|
|
|
18 |
}
|
|
|
19 |
MM_reloadPage(true);
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
function MM_openBrWindow(theURL,winName,features) { //v2.0
|
|
|
23 |
window.open(theURL,winName,features);
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
function MM_findObj(n, d) { //v4.0
|
|
|
28 |
var p,i,x;
|
|
|
29 |
if(!d) d=document;
|
|
|
30 |
if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|
|
31 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
|
|
|
32 |
}
|
|
|
33 |
if(!(x=d[n])&&d.all) x=d.all[n];
|
|
|
34 |
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|
|
35 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|
|
36 |
if(!x && document.getElementById) x=document.getElementById(n);
|
|
|
37 |
return x;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
function ToggleDisplay () {
|
|
|
41 |
var i, args, div_name, visibility
|
|
|
42 |
args=ToggleDisplay.arguments;
|
|
|
43 |
for (i=0; i<(args.length); i+=1) {
|
|
|
44 |
div_name=args[i];
|
|
|
45 |
if ( MM_findObj(div_name).style.display == 'block' ) {
|
|
|
46 |
MM_findObj(div_name).style.display = 'none';
|
|
|
47 |
} else {
|
|
|
48 |
MM_findObj(div_name).style.display = 'block';
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
function confirmAction(m)
|
|
|
55 |
{
|
|
|
56 |
var agree=confirm(m);
|
|
|
57 |
if (agree) {
|
|
|
58 |
ShowProgress();
|
|
|
59 |
return true;
|
|
|
60 |
} else {
|
|
|
61 |
return false;
|
|
|
62 |
}
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
function go_submit( formname, actionname )
|
|
|
67 |
{
|
|
|
68 |
formname.action.value = actionname;
|
|
|
69 |
formname.submit();
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
function ShowProgress ()
|
|
|
73 |
{
|
|
|
74 |
MM_findObj('divProgressBar').style.visibility='visible';
|
|
|
75 |
}
|
|
|
76 |
//-->
|