/**An object definition for iterating through result lists**/function AjaxListIterator(listType, pageSize, searchPath, keyword){	var listType_ = listType;	var pageSize_ = pageSize;	var startIndex_ = 0;		var searchPath_ = searchPath;	var keyword_ = keyword;	this.getList = getList;	/**Gets the list for this list type. forward is a boolean indicating direction**/	function getList(forward){				if (forward){			startIndex_+=pageSize_;		} else {			if(startIndex_>0){				startIndex_-=pageSize_;			} else {				return;			}		}						var callback = {			success:function(o){				var ul = document.getElementById(listType_+'List');				ul.innerHTML = o.responseText;				setUI();			},			failure: function(o){}		}		//		document.body.style.cursor="wait";		var url = searchPath_+"/"+keyword_+"/"+listType+"List/"+startIndex_;		YAHOO.util.Connect.asyncRequest('GET', url, callback, null);	}	function setUI(){		var backLink = document.getElementById(listType_+'Back');		var forwardLink =  document.getElementById(listType_+'Forward');		var ul = document.getElementById(listType_+'List');		var noDisplayed = ul.getElementsByTagName("li").length;		var forwardLink =  document.getElementById(listType_+'Forward');		if (noDisplayed<pageSize_){			forwardLink.style.visibility = "hidden";		} else {			forwardLink.style.visibility = "visible";		}	//	document.body.style.cursor="pointer";	}}