// JavaScript Document

  function checkSelection()
    {
	  var mnuValue =  document.getElementById("mnuCategory").value;
	  
	 
	  if(mnuValue == "land sales"){
	      document.getElementById("divPropertyParam").style.display  = "none";
	   }else{
	      document.getElementById("divPropertyParam").style.display  = "block";
	   }
	   
	   
	}
	
	
	function submitForm()
	{
		var mnuCat = document.getElementById("mnuCategory");
		var mnuLoc = document.getElementById("mnuLocation");
		var mnuPrice = document.getElementById("mnuPriceRange");
		var mnuType = document.getElementById("mnuType");
		var mnuBed = document.getElementById("mnuBed");
		var txtBox = document.getElementById("txtk");
		
		
		if(mnuCat.value == ""  && mnuLoc.value =="" && mnuPrice.value == ""  && mnuType.value == ""  && mnuBed.value == "")
		  {
			  alert("You must enter or select at least 1 parameter to search by.");
		  }else
		  {
			  if(txtBox.value == "Enter Search Term (optional)")
			  {
				 
				  txtBox.value = "";
			  }
			  document.searchform.submit();
		  }
		
		
	}
	
	
	//Keyword Text Box display properties
	function clearField()
	{
		var txtBox = document.getElementById("txtk");
		
		if(txtBox.value == "Enter Search Term (optional)")
		{
			txtBox.value = "";
			
		}txtBox.style.color = "#000000";
	}
	
	
	