
	function selectCriteria(id)
	{
		obj = document.getElementById('c[' + id + ']');
		var state = obj.checked;
		var oList = document.getElementsByTagName('INPUT');
		
		// Check-Uncheck all children
		for (var i = 0; i < oList.length; i++) {
			var oItem = oList.item(i);
			if (obj.id == oItem.id.substring(0, obj.id.length - 1) + ']') {
				oItem.checked = state;
			}
		}
		
		// Check-Uncheck parent if "all-not all" children selected
		var all = true;
		for (var i = 0; i < oList.length; i++) {
			var oItem = oList.item(i);
			if (obj.id.substring(0, obj.id.length - 3) == oItem.id.substring(0, oItem.id.length - 3)) {
				if (!oItem.checked) all = false;
			}
		}
		oParent = document.getElementById(obj.id.substring(0, obj.id.length - 3) + ']');
		if (oParent != null) {
			oParent.checked = all;
		}
	}

	function displayWindow(theURL,winName,width,height,features) { //v3.1
		// Made by Eddie Traversa modified from Macromedia Code
		// http://nirvana.media3.net/
		var window_width = width;
		var window_height = height;
		var newfeatures= features;
		var window_top = (screen.height-window_height)/2;
		var window_left = (screen.width-window_width)/2;
		newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
		newWindow.focus();
	}