// JavaScript Document
function validateSearch() {
	var oFrm = document.search;
	var oFld, txt, urlString;
	
	oFld = oFrm.tSearch.value;
	txt = "Please enter a keyword to search for";
	if (oFld == "" || oFld == "Enter Keyword") {
		alert(txt);
		return false;
	}
	if (oFrm.sSearch.options[oFrm.sSearch.selectedIndex].value != '') {
		urlString = "http://readymade.com/projects/search/"+escape(oFrm.tSearch.value)+"/"+oFrm.sSearch.options[oFrm.sSearch.selectedIndex].value;
	} else {
		urlString = "http://readymade.com/projects/search/"+escape(oFrm.tSearch.value);
	}
	location.href = urlString;
	return false;
}