/*	This function was added because, in order to maintain sublist filtering, we
   	had to keep the core field names on the search page.  However, before sending
	the search to the core code we have to rename these fields so that it doesn't
	send them off to FAST as is but rather uses what we specify in filter.py */

function convertSearchableFields()
{
	var fieldsToChange = ["FLD_JP_POSITION_CATEGORY"];
	for(var i = 0; i< fieldsToChange.length; i++)
	{
		changeFields(fieldsToChange[i]);
	}

}

function changeFields(fieldName)
{
	var target = document.getElementById("com.peopleclick.cp.formdata." + fieldName);
	target.name = "nonsearchable." + fieldName;
}
