function onTimeout() { for (i=0;i<itemscount;i++) { if (items[i].type==5) removeitem(i); } setTimer(0.05);}