function showSubCat(maincatid) {
	var subCatElement = document.getElementById("sub_of_" + maincatid);
	if (subCatElement) {
		if (subCatElement.className != "hide") {
			subCatElement.className = "hide";
		}
		else {
			subCatElement.className = "";
		}
	}
	else {
		window.location = "browse.asp?catid=" + maincatid;
	}
}

function jumpToPage(field) {
	if (field.value && field.value != "")
		window.location = field.value;
}

function clearField(field) {
	if (field)
		field.value = "";
}