xxxxxxxxxx
function findAndReplace(array, property, value, replaceProperty, replaceValue) {
$.each(array, function(index, result) {
if (result[property] == value) {
result[replaceProperty] = replaceValue;
}
});
}