function selectCategory(pageid,c,t) {
	var elementList = document.getElementsByClassName("t_dir_cat_on");
	for(i=0;i<elementList.length;i++) { Element.removeClassName(elementList[i],"t_dir_cat_on"); }
	Element.addClassName(t,"t_dir_cat_on");
	currentCategory = c;
	Element.update('listings',webLoaderImg);
	new Ajax.Updater(
		'alpha',
		ajaxPath + 'ajax.cfm?PageID='+pageid+'&action=showalpha&categoryid='+c,
		{
			onFailure:function(t){ alert("Error retrieving directory listing"); },
			asynchronous:true
		}
	);
	new Ajax.Updater(
		'listings',
		ajaxPath + 'ajax.cfm?PageID='+pageid+'&action=showlisting&categoryid='+c,
		{
			onFailure:function(t){ alert("Error retrieving directory listing"); },
			asynchronous:true
		}
	);
	t.blur();
}
function selectAlpha(pageid,a,t) {
	var elementList = document.getElementsByClassName("t_dir_alpha_on");
	for(i=0;i<elementList.length;i++) { Element.removeClassName(elementList[i],"t_dir_alpha_on"); }
	Element.addClassName(t,"t_dir_alpha_on");
	Element.update('listings',webLoaderImg);
	new Ajax.Updater(
		'listings',
		ajaxPath + 'ajax.cfm?PageID='+pageid+'&action=showlisting&categoryid='+currentCategory+'&alpha='+a,
		{
			onFailure:function(t){ alert("Error retrieving directory listing"); },
			asynchronous:true
		}
	);
	t.blur();
}