function func_submit() {
   		var store_maxpri = document.getElementById("store_maxpri").value;
		var store_minpri = document.getElementById("store_minpri").value;
		
		// Error trap for Bargain Buys Selection
		
   		if (store_maxpri != "XXX" && store_maxpri !="" && store_maxpri.length !=0 && store_maxpri != null) {
			if (store_minpri != "XXX" && store_minpri !="" && store_minpri.length !=0 && store_minpri != null) {
   				var intMinPri=parseInt(store_minpri)
				var intMaxPri=parseInt(store_maxpri)
				//alert("Min"+intMinPri);
				//alert("Max"+intMaxPri);
   				if (intMinPri > intMaxPri) {
		  			alert("Maximum Price Cannot Be Less Than Minimum Price");
		  			return ;
				} else {
				//document.location.href = "search_list.php";
					document.frmSearch.action = "ipm/properties/search_list.php";
					document.frmSearch.submit();
				}
			} else {
				document.frmSearch.action = "ipm/properties/search_list.php";
				document.frmSearch.submit();
			}
		} else {
			document.frmSearch.action = "ipm/properties/search_list.php";
			document.frmSearch.submit();
		} 
	}
   
   
    function func_store_tratyp(param) {
	  document.getElementById("store_tratyp").value = param;
	  reset_all();
	  document.frmSearch.action = "index.php";
	  document.frmSearch.submit();
    }
   
    function func_store_minpri(param) {
	   document.getElementById("store_minpri").value = param;
    }
   
    function func_store_maxpri(param) {
	   document.getElementById("store_maxpri").value = param;
    }
   
   function func_store_locati(param) {
	  document.getElementById("store_locati").value = param;
	  if (document.getElementById("store_locati").value=="438") {
		  document.getElementById("store_locati").value="XXX";
	  }
	  //alert(document.getElementById("store_locati").value);
	  //window.location.reload();
	  return;
   }
   
   function func_store_bedroo(param) {
	  document.getElementById("store_bedroo").value = param;
   }
   
   function func_store_protyp(param) {
	  document.getElementById("store_protyp").value = param;
   }
   
   function func_store_proage(param) {
	  document.getElementById("store_proage").value = param;
   }
   
   function func_store_prosec(param) {
	  document.getElementById("store_prosec").value = param;
   }
    
   function func_store_perpag(param) {
	  document.getElementById("store_perpag").value = param;
   }
     
   function reset_all() {
		//document.getElementById("store_minpri").value = "";
		//document.getElementById("store_maxpri").value = "";
		//document.getElementById("store_locati").value = "";
		//document.getElementById("store_bedroo").value = "";
		//document.getElementById("store_protyp").value = "";
		//document.getElementById("store_prosec").value = "";
		//document.getElementById("store_perpag").value = "";
		document.getElementById("store_reload").value = "Yes";
   }
