<!--
function popup( url, winname, width, height ) {

  if (winname == "") {
    winname = "popup";
  }
  
  if (width == "") {
    width = "400";
  }
  
  if (height == "") {
    height = "300";
  }

  var top = (screen.height) / 2 - (height / 2);
  var left = (screen.width) / 2 - (width / 2);
 
  var win_arg = "scrollbars=yes,status=yes,resizable=yes,location=no,toolbar=no,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
  
  window.open(url,winname,win_arg);
}



function CheckAll(formname) {
	formobj = eval('document.' + formname);
	for (i=0; i < formobj.length; i++) {
		if (formobj.elements[i].name.substr(0,8) == 'checked_') formobj.elements[i].checked = formobj.checkall.checked;
	}
}


function CheckAllSpecial(formname, basefield, prefix) {
	formobj = eval('document.' + formname);
	basefield = eval('document.' + formname + '.' + basefield);
	for (i=0; i < formobj.length; i++) {
		if (formobj.elements[i].name.substr(0, prefix.length) == prefix) formobj.elements[i].checked = basefield.checked;
	}
}

-->