I need a script that i can put on any page in an application and it will run X amount of time. When it hits the amount of time that is specified in the js it will open either an overlay on the page or a child popup window. Inside either window i will give you what the text should say.
in the new window they will have two buttons.
resume logout
if they click resume you will kill the overlay or popup window and refresh the parent page. if they click logout you will redirect to a url.
all of this should be configured in the js. The overlay window will be simple so i dont need anything complex like jquery. just some nice clean OOP js handmade will be fine.