var arr1=[3, 'a', 'a', 'a', 2, 3, 'a', 3, 'a', 2, 4, 9, 3]; var mf = 1; var m = 0; var item; for (var i=0; i