/** Generated by js.php */
searchFromTag = function(criteria,public)
{
	if (public){
		switchToPublic(true);
		$('mainContentCriteria').value = criteria;
		activeSearchButton();
		searchUrls(encodeURIComponent(criteria),0,1);
	} else {
		if (!$('switchMenu')) {
			new Ajax.Updater('module_2_content','/tags/searchFromBookmarkPortlet', {onComplete:function() {
				searchBookmarks(encodeURIComponent(criteria),0, 1);
			}});
		} else {
			switchToPrivate(true);
			searchBookmarks(encodeURIComponent(criteria),0, 1);
		}
	}
}

displayAllMyTags = function(displayAll) {
	if (displayAll) {
		new Ajax.Updater('module_2_content','/tags/get/true');
	} else {
		updateModule(BOOKMARK_MODULE);
	}
}

