function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function resumeForm(id,cn) {
	var oFrm=MM_findObj('frmOpenForm');
	var err = false;
	if (oFrm) {
		var oE=oFrm.e;
		var oCN=oFrm.cn;
		var oAC=oFrm.add_case;
		if (oE && oCN && oAC) {
			oE.value = id;
			oCN.value = cn;
			oAC.value = '';
			oFrm.submit();
		} else {
			err = true;
		}
	} else {
		err = true;
	}
	if (err) {
		alert("An error has occured.  Please contact Wilder Research if this problem persists at wilder-cfi@"+"wilderresearch.org. ");
	}
}
function printForm(id,cn) {
	var oFrm=MM_findObj('frmPrintForm');
	var err = false;
	var errMsg = '';
	if (oFrm) {
		var oE=oFrm.e;
		var oCN=oFrm.cn;
		if (oE && oCN) {
			oE.value = id;
			oCN.value = cn;
			oFrm.submit();
		} else {
			err = true;
			errMsg = 'no oE && oCN';
		}
	} else {
		err = true;
		errMsg = 'no oFrm';
	}
	if (err) {
		alert("An error has occured.  Please contact Wilder Research if this problem persists at wilder-cfi@"+"wilderresearch.org. "+errMsg);
	}
}