function siteSearch(form) {
	var keywords = form.keywords.value;
	var manufacturer = form.manufacturerterm.value;
	var theme = form.themeterm.value;

	if (!hasValue(keywords) && manufacturer == 0 && theme == 0) {
		alert("Please enter a term to search for.");
		form.keywords.focus();
		return(false);
	}

	form.submit();
}

function getschool(county, form) {
	// Get the checked school type
	for (var i = 0; i < form.schooltype.length; i++) {   
		if (form.schooltype[i].checked) { 
			break 
		}
	}
	type = form.schooltype[i].value;

	target = "/?action=schools&county=" + county + "&type=" + type;
	location = target;
}

function size_chart() {
	var target = "/size/size.html";
	win = window.open(target, "SizeChart", "toolbar=no,scrollbars=yes,width=400,height=450");
}

function color_chart(id) {
	var target = "/color/color.php?id=" + id;
	win = window.open(target, "ColorChart", "toolbar=no,scrollbars=yes,width=400,height=450");
}
