function showPrevSearch(iMax)
{
	if(typeof(iMax) == 'undefined') iMax = 5; 
	var oPs = core_cookie.getValue('SEARCH_REMEMBER');
	var sPs = "";
	var iCnt = 0;
	var sExist = ",";
	for(x in oPs) {
		sVal = trim(oPs[x].keyword);		
		sVal = sVal.replace(/\+/g, ' ');
		if(sExist.search(sVal) >= 0) continue;
		sExist = sExist + "," + sVal;
		if(sVal.length > 23) sVal = sVal.substr(0,20) + "...";
		sPs = "<a href='" + oPs[x].url + "' title='" + oPs[x].title + "'>" + sVal + "</a><br />" + sPs;		
		iCnt++;
		if(iCnt >= iMax)break;
	}
	return sPs;
}
var strPrevSearch = showPrevSearch();