function toolHover(captionTxt) {
	document.getElementById('caption').innerHTML = captionTxt;
}
function toggleHideId(id) {
	document.getElementById(id).style.display = (document.getElementById(id).style.display=="") ? "none" : "";
	
	// change icon to reflect hidden/shown
	
	// set cookie setting for this panel
}
function getRadioValue(radioGroupObj) {
	// returns the value of the selected radio button (or empty string)
	// must be used with groups (not a single radio button)
	var j=-1;
	var i=0;
	while ( i<radioGroupObj.length ) {
		if (radioGroupObj[i].checked) {
			j = i;
			break;
		}
		i++;
	}
	if (j==-1) {
		return '';
	} else {
		return radioGroupObj[j].value;
	}
}
// class for creating and submitting hidden POST values
function hiddenForm(submitScript) {
	this.form = document.createElement('form');
	this.form.method = 'post';
	this.form.action = submitScript;
}
hiddenForm.prototype.createInput = function(name, value) {
	var inputObj = document.createElement('input');
	inputObj.type = 'hidden';
	inputObj.name = name;
	inputObj.value = value;
	this.form.appendChild(inputObj);
};
hiddenForm.prototype.submitForm = function() {
	document.body.appendChild(this.form).submit();
};
