function selectAll(formObj, checkboxMaster, checkBoxStem) 
{
checkBoxMasterObj = MM_findObj(checkboxMaster);
if (checkBoxMasterObj != null)
	{
	for (var i=0;i < formObj.length;i++) 
		{
		fldObj = formObj.elements[i];
		//alert(fldObj.type);
		//alert(fldObj.name);
		//alert(fldObj.name.indexOf(checkBoxStem));
		if ((fldObj.type == 'checkbox') && (fldObj.name.indexOf(checkBoxStem) >= 0))
			{ 
			fldObj.checked = checkBoxMasterObj.checked;
			}
		}
	}
}

function MM_findObj(n, d) { //v4.0
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 && document.getElementById) x=document.getElementById(n); return x;
}

function popUp(URL, width, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' +width+ ',height=' +height+ ',left = 150,top = 300');");
}
