function makeSearchCriteria(formName) {
	//loop through forms to find the right one
	formLength = document.forms.length;
	for (xx=0;xx < formLength; xx++) {
		if(document.forms[xx].name == formName) {
			theFormObj = document.forms[xx];	
		}
	}
	searchCriteria = "";
	theDelimiter = "";
	// last name
	if (theFormObj.last_name.value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	searchCriteria = searchCriteria + "<br/>Last Name: " + theFormObj.last_name.value;
	}
	// member category
	var mcSelected = theFormObj.Member_Category_ID.selectedIndex;
	if (theFormObj.Member_Category_ID[mcSelected].value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	searchCriteria = searchCriteria + theDelimiter + "<br/>Category:" + theFormObj.Member_Category_ID[mcSelected].text;
	}
	//medium
	var medSelected = theFormObj.Medium_Category_ID.selectedIndex;
	if (theFormObj.Medium_Category_ID[medSelected].value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	theMed = theFormObj.Medium_Category_ID[medSelected].text;	
	searchCriteria = searchCriteria +  "<br/>Medium: " + theMed.replace("--","");
	}
	//keyword
	  var selectedArray = new Array();
	  //var selObj = document.getElementById('Keyword_ID');
	  var i;
	  var count = 0;
	  for (i=0; i<theFormObj.Keyword_ID.options.length; i++) {
		if (theFormObj.Keyword_ID.options[i].selected) {
		  selectedArray[count] = theFormObj.Keyword_ID.options[i].text;
		  count++;
		}
	  }
	  if (selectedArray != "") {
	  	searchCriteria = searchCriteria + "<br/>Keywords: " + selectedArray;
	  }
	// city
	if (theFormObj.City.value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	searchCriteria = searchCriteria + "<br/>City: " + theFormObj.City.value;
	}
	// state
	var stateSelected = theFormObj.State.selectedIndex;
	if (theFormObj.State[stateSelected].value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	theState = theFormObj.State[stateSelected].text;	
	searchCriteria = searchCriteria +  "<br/>State: " + theState.replace("--","");
	}
	//country
	var ctrySelected = theFormObj.Country_Code.selectedIndex;
	if (theFormObj.Country_Code[ctrySelected].value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	theCountry = theFormObj.Country_Code[ctrySelected].text;	
	searchCriteria = searchCriteria +  "<br/>Country: " + theCountry.replace("--","");
	}
	//other terms
	if (theFormObj.search_terms_plus.value != "") {
		if (searchCriteria != "") {
			theDelimiter = ",";
		}
	searchCriteria = searchCriteria + "<br/>Other Terms: " + theFormObj.search_terms_plus.value;
	}
	theFormObj.searchCriteria.value = searchCriteria; 
}