
	// searches a url for a paramater w/ identifier == 'name'.
	// parameter is prefixed with 'xx' if it is found
	// returns modified url
	function SearchExpireParam(url, name) {
		if(url.indexOf(name + '=') > -1) {
			url = url.replace(name, 'xx' + name);
		}
		
		return url;
	}

	// searches all checkboxes in a div
	// if checkbox is checked, its id is added to a CSV list
	// returns csv list
	function SearchGetList(div) {
		var oList = document.getElementById(div).getElementsByTagName('input');	
		var strList = '';
		for (var i = 0; i < oList.length; i++) {
			oCB = oList[i];
			if(oCB.type == 'checkbox' && oCB.checked){
				strList += ',' + oCB.id;
			}
		}
		if(strList.length > 0) {
			strList = strList.substring(1, strList.length);
		}
		return strList
	}

	// takes a csv list and checks all checkboxes that have id's in that list
	function SearchInitCBList(compare) {
		var arr = compare.split(',');
		for (var ix = 0; ix < arr.length; ix++) {
			var myCB = document.getElementById(arr[ix]);
			if(myCB != null && myCB.type == 'checkbox' && compare.indexOf(myCB.id) >= 0){
				myCB.checked = true;
			}
		}
	}