//********************************************************************************
//                   GENERAL SDNA MEMBER MANAGER FUNCTIONS
//********************************************************************************


//***************************************************
//                 Load City
//*************************************************** 
	function getDirectory(startletter,endletter) {

		if (document.getElementById('circulation') == null) {
			var circulation = "all";
		}
		else {
			var circulation = document.getElementById('circulation').value;
		}
		if (document.getElementById('city') == null) {
			var city = "0";
		}
		else {
			var city		= document.getElementById('city').value;
		}

		$.ajax({
			method: "get",url: "ajax_sdna_members.php", data: "mode=directory&startletter=" + startletter + "&endletter=" + endletter + "&circulation=" + circulation + "&city=" + city,
			beforeSend: function(){$("#directory").html('Loading...');},
			success: function(html){
				$("#directory").html(html);
			}
		});
	}

//***************************************************
//                 Load City
//*************************************************** 
	function getNewspaper(newspaperid) {

		$.ajax({
			method: "get",url: "ajax_sdna_members.php", data: "mode=newspaper&newspaperid=" + newspaperid,
			beforeSend: function(){$("#directory").html('Loading...');},
			success: function(html){
				$("#directory").html(html);
			}
		});
	}