function loadurla(dest) {
	try {
		// Moz supports XMLHttpRequest. IE uses ActiveX.
		// browser detction is bad. object detection works for any browser
		xmlhttp1 = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
		// browser does not support ajax. handle however you want
		alert("Security??????????????");
	}
	// open takes in the HTTP method and url.
	xmlhttp1.open("GET", dest);
	// the xmlhttp object triggers an event everytime the status changes
	// triggered() function handles the events
	xmlhttp1.onreadystatechange = triggered1;
	// send the request. if this is a POST request we would have
	// sent post variables: send("name=aleem&gender=male)
	// Moz is fine with just send(); but
	// IE expects a value here, hence we do send(null);
	xmlhttp1.send(null);
}
function triggered1() {
	// if the readyState code is 4 (Completed)
	// and http status is 200 (OK) we go ahead and get the responseText
	// other readyState codes:
	// 0=Uninitialised 1=Loading 2=Loaded 3=Interactive
	//alert(xmlhttp1.status);
	var stampa=document.getElementById("stampa");
	if (stampa!=null) {
		stampa.style.visibility = (xmlhttp1.readyState == 4)?"hidden":"";
	}
	if ((xmlhttp1.readyState == 4) && (xmlhttp1.status == 200)) {
		// xmlhttp.responseText object contains the response.
		//var OutputDiv = document.getElementById(xmlhttp1.getResponseHeader("OutputDiv"));
		//alert(xmlhttp1.responseText);
		jason = eval('(' + xmlhttp1.responseText + ')');
		divs=document.getElementById('featuredProducts').getElementsByTagName('div');
		changeFeatured();
		//if ((OutputDiv!="") && (OutputDiv!=null)) {
			//OutputDiv.innerHTML = xmlhttp1.responseText;
		//}
	} else {
		if (xmlhttp1.readyState == 4) {
			//alert(xmlhttp1.status);
			//alert(xmlhttp1.responseText);
		}
	}
}
function filterFeatured(){
	var cPath = document.getElementById("cPath");
	var dest = cPath.form.action+'&moo=boo';
	if (cPath.value != "") {
		dest+= '&cPath='+cPath.value;
	}
	loadurla(dest);
	//setTimeout("filterFeatured()",5000);
}
