function GoBackToLastSearch() {
	var cookies = new CookieManager();

	if(document.referrer.match(/Results.aspx/) ||
		(cookies.getValue('trackSearches') && document.referrer.match(cookies.getValue('trackSearches').replace('?','\\?').replace('+','\\+')))) {
		// use browser "back" if possible
		//   this will re-position the user's page for one (if they are at the bottom of the search page)
		history.go(-1);
	}
	else {
		location.href = cookies.getValue('trackSearches', '/');
	}
}
