function fnSearchFormSubmit(f) {
	var f = document.forms[f];
	if (f.search.value == '') {
		alert('You must enter a word or phrase to search for.');
		return false;
	}
	if (location.href.indexOf('search.asp') != -1) location.replace(f.action + '?' + fnPutArgs(f.elements));
	else f.submit();
	return false;
}

function fnStoreLocatorOnSubmit(f) {
	if (fnValidZipCode(f.zipcode.value)) {
		if (location.href.indexOf('StoreLocResults') == -1) return true;
		location.replace(f.action + '?zipcode=' + f.zipcode.value);
		return false;
	} else return fnOnInvalidFld(f.zipcode, 'Please enter a 5-digit zipcode.');
}

