i know gmail does this, but how can iI use javascript to detect inactivity in a certain DIV for example then return a function or anything else?