function ConsultantSearch()
{
	this.consultants = {};
	this.searchConsultants = function(queryLocation)
	{
		var queryRE = new RegExp(queryLocation, "i");

		for (var item in this.consultants)
		{
			if (queryRE.test(item)) return this.consultants[item]
		}
		return false;
	};
	this.addConsultant = function(name, location, link)
	{
		this.consultants[location] = { 'name': name, 'link': link };
	};
	this.constructResults = function(place)
	{
		var result = this.searchConsultants(place);
		if (result == false)
			//return place + " is not in the database."
			return "Please call 413.538.9500 for information regarding this location.";
		else
			return '<a href="' + result['link'] + '">' + result['name'] + '</a> is the representative for ' + place;
			
			// 
			//	 Note : exceptions to these results are found in the mortgage_consultants stylesheet
			//
	};
}
