function stripSpaces(strText) {
	x = strText;
	while (x.substring(0,1) == ' ') x = x.substring(1);
	while (x.substring(x.length-1,x.length) == ' ') x = x.substring(0,x.length-1);
	return x;
}

// check if radio or checkbox group has at least one thing checked
function IsGroupChecked(group) {
	var counter;

	for ( counter=0; counter < group.length; counter++ ) {
		if ( group[counter].checked)
		{
			return true;
		}
	}
	return false;
}

