function setRecipient(){
	if($("select[name='category']").length>0){
		if($("select[name='category']")[0].selectedIndex<2){
			// 'all' or 'letters' is selected
			$("input[name='recipient']").removeAttr("disabled");
		}else{
			$("input[name='recipient']")[0].value="";
			$("input[name='recipient']").attr("disabled", true); 
		}
	}
}

function init(){
	setRecipient();
}

function quickClick(element){
	if (element.value=="QUICK SEARCH"){
		element.value="";
	}
}