function play(fl_obj) { var pls = 3; for (var i=1; i<=pls; i++){ var fl_fl = document.getElementById("fl_player"+i); stop(fl_fl.id); } document.getElementById(fl_obj).SetVariable("player:jsPlay", ""); }