 	function getLocations(locationNumber, incAll, selectBoxId, parentLocationId,selected){  
		$.post('/ajax/get_location.php', { locationNumber: locationNumber, parentLocationId: parentLocationId, includeAll: incAll,selected: selected },
			function(data) {
		  		$('#'+selectBoxId).empty();
				var result = new Array();
				result = data.split('%%');
				var loc = new Array();
				$('#'+selectBoxId).append('<option value="0">All</option>');
				for(var i=0;i<result.length-1;i++){
					loc=result[i].split('|');
					if(selected!='' && loc[0]==selected) $('#'+selectBoxId).append('<option value="'+loc[0]+'" selected="selected">'+loc[1]+'</option>');
					else $('#'+selectBoxId).append('<option value="'+loc[0]+'">'+loc[1]+'</option>');
				}
				$('#'+selectBoxId).removeAttr('disabled');
				if(selected=='') $('#'+selectBoxId+' option:first').attr('selected','selected');
			});

	}
	
	
	function resetLocations(){
		for(var i=0; i<arguments.length;i++){ //chrome fix
			$('#'+arguments[i]).html('<option value="0">All</option>');
		}
	}
