function setRatingValue(r,index) {

	r = Math.round(r * 2) / 2; // round to nearest .5 

	var p = "rating"+index;
	if (p != null) {

		if (r == 1) {
			$(p).className = 'rating setRatingOne';
		} else if(r == 2) {
			$(p).className = 'rating setRatingTwo';
		} else if(r == 3) {
			$(p).className = 'rating setRatingThree';
		} else if(r == 4) {
			$(p).className = 'rating setRatingFour';
		} else if(r == 5) {
			$(p).className = 'rating setRatingFive';
		} else if(r == 0.5) {
			$(p).className = 'rating setRatingZeroPointFive';
		} else if(r == 1.5) {
			$(p).className = 'rating setRatingOnePointFive';
		} else if(r == 2.5) {
			$(p).className = 'rating setRatingTwoPointFive';
		} else if(r == 3.5) {
			$(p).className = 'rating setRatingThreePointFive';
		} else if(r == 4.5) {
			$(p).className = 'rating setRatingFourPointFive';
		}
	}
}

function changeCategoryLabel(aboutCollegeValue, element, labelText)
{
	if(parseInt(aboutCollegeValue) == 1) {
		var words = labelText.split(' ');
		var text = '';
		for (i=0; i<words.length; i++) {
			if(i == 0){
				text += words[i].toLowerCase() + 'ing ';
			} else {
				text += words[i].toLowerCase() + ' ';
			}
		}
		$(element).innerHTML = 'Am ' + text + '<em class="required">*</em>';
	} else if(parseInt(aboutCollegeValue) == 2) {
		$(element).innerHTML = 'Did ' + labelText.toLowerCase()  + '<em class="required">*</em>';
	} else if(parseInt(aboutCollegeValue) == 3 || parseInt(aboutCollegeValue) == 4) {
		$(element).innerHTML = 'Will ' + labelText.toLowerCase()  + '<em class="required">*</em>';
	} 
}

/*	function processCategoryLabelForReview(aboutCollegeValue, applicableCategoryIndex, labelText){
	if((aboutCollegeValue == 1) && (applicableCategoryIndex < 3)) {
	var words = labelText.split(' ');
	var text = '';
	for (i=0; i<words.length; i++) {
		if(i == 0){
			text += words[i].toLowerCase() + 'ing ';
		} else {
			text += words[i].toLowerCase() + ' ';
		}
	}
		document.write(text.toLowerCase());
	} else {
		document.write(labelText.toLowerCase());
	}	
} */