you can use the following javaScript function, you need JQuery to be able to run this function
distinct: function (anArray) {
var result = [];
$.each(anArray, function (i, v) {
if ($.inArray(v, result) === -1) result.push(v);
});
return result;
}
var result = [];
$.each(anArray, function (i, v) {
if ($.inArray(v, result) === -1) result.push(v);
});
return result;
}