/**
 *	Searchtools...
 */


function tool_search ( sAction ){
	if ( typeof search_query == 'string' ) {
		if ( search_query || ( sAction == 'modify' ) ) {
			var sStem = '';
			switch ( sAction ){
				case "modify" 	: sStem = '/ajax/search?'; break;
				case "save"		: sStem = '/ajax/my/alerts?type=basic&'; break;
				case "email"	: sStem = '/ajax/my/alerts?type=email&'; break;
				case "rss"		: sStem = '/ajax/my/alerts?type=rss&'; break;
			}
			if ( sStem ) {
				sUri = sStem + search_query;
				saf.navigate( sUri );
				//window.open( sUri );
				return true;
			}
		} else {
			alert("You can't save a search for 'everything'.\nPlease be a little more specific");
			return true;
		}
	}
	alert("Sorry, something strange happened and I can't complete your requested action.\nIf symptoms persist please consult support.");
}
