isOKNav = !((navigator.appName == "Netscape") &&
	    (navigator.appVersion.substring(0,1) == "3"));

function openHelpWin() {
    helpArgs = openHelpWin.arguments;
    if (helpArgs[0]) {
	docName = helpArgs[0];
    } else {
	docName = "/static/blank.ws";
    }
    if (helpArgs[1]) {
	winWidth = helpArgs[1];
    } else {
	winWidth = 600;
    }
    if (helpArgs[2]) {
	winHeight = helpArgs[2];
    } else {
	winHeight = 400;
    }
    if (helpArgs[3]) {
	winScrollbars = helpArgs[3];
    } else {
	winScrollbars = 1;
    }
    if (helpArgs[4]) {
	winResizable = helpArgs[4];
    } else {
	winResizable = 1;
    }

// below line must be deleted when Show Search Criteria will be ready!  
// if(docName.indexOf("criteria") != -1) return
  
    HelpWinProps = "toolbar=0,location=0,directories=0,status=0,menubar=0" +
	",scrollbars=" + winScrollbars +
	",resizable=" + winResizable +
	",width=" + winWidth +
	",height=" + winHeight;
    HelpWin = window.open(docName,"HelpWin",HelpWinProps);
}
function on() {
    if(isOKNav) {
	var i, j=0, x, a=on.arguments;
	document.MM_sr = new Array;
	for (i=0 ; i<(a.length-1); i+=2) {
	    if ((x=MM_findObj(a[i]))!=null) {
		document.MM_sr[j++]=x;
		if(!x.oSrc) {
		    x.oSrc=x.src;
		}
		x.src=a[i+1];
	    }
	}
    }
}

function off() {
    if(isOKNav){ 
	var i, x, a = document.MM_sr;
	for (i=0; a && i < a.length && (x = a[i]) && x.oSrc; i++) {
	    x.src=x.oSrc;
	}
    }
}
function MM_findObj(n, d) {
    var p,i,x;
    if(!d) {
	d=document;
    }
    if ((p=n.indexOf("?")) > 0 && parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document;
	n=n.substring(0,p);
    }
    if (!(x=d[n]) && d.all) {
	x=d.all[n];
    }
    for (i=0;!x&&i<d.forms.length;i++) {
	x=d.forms[i][n];
    }
    for (i=0; !x && d.layers && i < d.layers.length; i++) {
	x=MM_findObj(n,d.layers[i].document);
    }
    return x;
}