function fnSearch(blnDisplayPrice, blnUserLoggedIn)
{
	var frm = document.frmAdvancedSearch;
	if(blnDisplayPrice != "1" || blnUserLoggedIn == "True")
	{
		if(frm.txtMinPrice.value != '' || frm.txtMaxPrice.value != '')
		{			
			if(!validate_CURRENCY(frm.txtMinPrice,"minimum price")){return false;}
			if(!validate_CURRENCY(frm.txtMaxPrice,"maximum price")){return false;}
			if(frm.txtMaxPrice.value == "")
			{
				alert("The maximum price should be entered.")
				frm.txtMaxPrice.focus();
				return false;
			}
			if(frm.txtMinPrice.value == "")
			{
				alert("The minimum price should be entered.");
				frm.txtMinPrice.focus();
				return false;
			}
			if(parseFloat(frm.txtMaxPrice.value) < parseFloat(frm.txtMinPrice.value))
			{
				alert("The maximum price cannot be less than the minimum price.")
				frm.txtMaxPrice.focus();
				return false;
			}
		}
	}
}
