
function DisplayNumberOfProductMatches(f)
{
	var strURL, strResponse;


	strURL = '';
	strURL = "/common/getNumberOfProductMatches.asp";
	strURL += "?category=" + f.category.value;
	strURL += "&brand=" + f.brand.value;
	strURL += "&size=" + f.size.value;
	strURL += "&comfort=" + f.comfort.value;
	strURL += "&priceFrom=" + f.priceFrom.value;
	strURL += "&priceTo=" + f.priceTo.value;
	strURL += "&x=" + Math.random()


	strResponse = sendXmlHttpRequest(strURL);

	//Set the value for the hidden productsCount input tag
	f.productsCount.value = strResponse

	// Write response to layer
	MM_setTextOfLayer('productsMatched','',strResponse);
}


function validateForm(f)
{
	if(f.productsCount.value == 0){
		alert('Sorry! There are no product matches to view')
		return false;
	}
	return true;
}

