try { document.execCommand("BackgroundImageCache", false, true);} catch(err) {}



var sort_results = function(sortBy) {
	var wlocation = window.location.toString();

	//missing query string
	if ( wlocation.indexOf('?') == -1 ) {
		wlocation += '?';
	}

	if ( wlocation.indexOf('sortBy=') > -1 ) {
		wlocation = wlocation.replace(/sortBy=[^&]*/, ('sortBy='+sortBy));
	} else {
		wlocation = (wlocation + '&sortBy=' + sortBy);
	}

	window.location = wlocation;
}

