	function validateItem(item, type) {
		var oopsString = "Please make a selection from the form items.";
		if (item == "") {
			alert(oopsString + "\n\n" + type + " must be selected");
			return false;
		} else { 
			return true;
		}
	}

	function formSubmit(category) {

		if(category == "jobs")
		{
		
			// setup vars
			var categoryVal = document.loadzaSearch.category.value;
			var locationVal = document.loadzaSearch.location.value;
			var keywordVal = document.loadzaSearch.Keyword.value;
			var jobsUrlString = "http://www.loadzajobs.ie/do-search.jobs?newSearch=1";
			
			if (categoryVal == "") {
				document.loadzaSearch.location.value = "All Categories";
			}
			if (categoryVal == "All Categories" && locationVal == "") {
				alert("Please select from one of the job search options: Category or Location");
				return false;
			} else {
				if (keywordVal == "Keyword") {
					keywordVal = "";
				}

				document.loadzaSearch.action = jobsUrlString;
//				window.open(jobsUrlString + keywordVal + "&searchModel.category=" + categoryVal + "&searchModel.location=" + locationVal + "&searchModel.employerType=Both", "jobSearch");
				document.loadzaSearch.submit();
			}
				
		}
		else if(category == "cars")
		{
		
			// setup vars
			var makeVal = document.LzCarsSearch.make.options[document.LzCarsSearch.make.selectedIndex].text;
			var carsUrlString = "http://www.loadzacars.ie/cars/used/search/results/";
			
			if (makeVal == "Any Make") {
				alert("Please select a car make.");
				return false;
			} else {
				queryString="";
			firstItemOnQueryString=true;

//				document.LzCarsSearch.make.selectedIndex.value = makeVal;
				appendToQueryString("make",document.LzCarsSearch.make.options[document.LzCarsSearch.make.selectedIndex].text);
			var yearRange=document.LzCarsSearch.YearRange.options[document.LzCarsSearch.YearRange.selectedIndex].value;
			appendToQueryString("YearRange",yearRange);
//alert("-"+makeVal+"-"+queryString+"-");

				document.LzCarsSearch.action = carsUrlString + "?" + queryString;
//				window.open(jobsUrlString + keywordVal + "&searchModel.category=" + categoryVal + "&searchModel.location=" + locationVal + "&searchModel.employerType=Both", "jobSearch");
				document.LzCarsSearch.submit();
			}
				
		}
		else if(category == "propertynews"){
			//var propertyType = document.propertynews.Type[].value;
			var keywordVal = document.propertynews.Keywords.value;
			
			if (keywordVal == "Keyword") {
				document.propertynews.Keywords.value = "";
			
			}
			
			document.propertynews.submit();
			return false;
			
		}
			
	}  //  formSubmit
	
	
	
	