function clearItem(ref,string) {
	if(ref.value == string) {
		ref.value = '';
	}
}

function toggle_box(id) {
	var currentState = null;
	var id = document.getElementById(id);
	currentState = id.style.display;
	if(currentState == null || currentState == "none") {
		id.style.display = 'block';
	} else {
		id.style.display = 'none';
	}
}


function selectChange(selectId,searchboxForm) {
   selIdx = document.getElementById(selectId).selectedIndex;
   newSel = document.getElementById(selectId).options[selIdx].title;
   document.getElementById(searchboxForm).action = newSel;
}