/******************************************************************************
 setScore sets the competitor's score.
 ******************************************************************************/
function setScore() {
	if(inRange(this.score)) {
	  // The scores are within range, so calculate the score.
	  this.score = scorify(this.score);
	}
	else {
	  // Scores were not entered, return non-breaking space.
	  this.score = "&nbsp;";
	}
}

/******************************************************************************
 competitor is an object.  This is the definition for that object.  'new'
 will create a new instance of competitor and stuff parameter data into and
 initialize properties of the object.
 ******************************************************************************/
function competitor(indiv, fName, lName, year, school, score) {
	this.indiv = indiv;											// bool
	this.fName = fName;											// string
	this.lName = lName;											// string
	this.year = year;												// int
	this.school = school;										// string
	this.score = score;      								  // float
	this.place = "&nbsp;";									// string
	this.getFullName = getFullName;					// getFullName() returns string with competitor's full name
	this.setScore = setScore;               // setScore() sets the competitor's score
}