function show_menu(itm, total, has_remote) { var top = itm; var last = total + 1 var nxt = top + 1; if (has_remote == 1) { for (i=0; i