/* selectJump() is used to automatically go to desired 
	page upon selecting an option in a select menu */
function selectJump(menuId) {
	var menu = document.getElementById(menuId);
	var val = menu.options[menu.selectedIndex].value;

	if(val != '') {
		window.location.href = val;
	}
}


/* blankOnFocus() removes text, if matching given text */
function blankOnFocus(element, text) {
	var el = document.getElementById(element);
	if(el.value == text) {
		el.value = '';
	}
}

/* populateOnBlur() replaces a blank with given text */
function populateOnBlur(element, text) {
	var el = document.getElementById(element);
	if(el.value == '') {
		el.value = text;
	}
}
