Here's a simple solution using setTimeout():
var groups = ['461', '6726', '3284', '4', '121', '11', '399', '1735', '17', '19', '1614'];
function nextGroup(idx) {
idx = idx || 0;
if (idx < groups.length) {
myfunction(groups[idx]);
setTimeout(function() {
nextGroup(idx + 1);
}, 5 * 60 * 1000);
}
}
nextGroup();