JavaScript Timer function for session time out.

<script language=”javascript” type=”text/javascript”>
document.onkeypress= resetTimer
document.onmousemove= resetTimer
document.onmousedown= resetTimer
document.Onfocus= resetTimer

var timerId;

timerId = window.setTimeout(“timeOut()”,7200000);

function resetTimer() {
timerId = window.setTimeout(“timeOut()”,7200000);

function timeOut(){
// do something here

alert(“Your session is times out. You will not be able to continue. Please login again “);
var x=1;
//do something here

Bouncing back…soon!

Already one month turned past in the New Year.

This year I intentionally didn’t make any resolutions.But in my mind I am very much clear and aware of what one (yes…only one thing) thing I should do in this year for my own benefit.But I didn’t document it anywhere. After all, it is only one thing and my memory is not poor!

But if I review this year till now, I haven’t woke up at 5AM on any day. I am killing time like anything. I am getting too much into time-killing activities like playing computer games at home(I completely stopped touching book when at home), browsing too much on Internet.


Even if I make mistake and allow myself to be distracted, it is normal and natural and not the end of the world.Though it is painful that I have disappointed myself, I still can bounce back.

And I am bouncing back shortly to all my good habits which I paused temporarily.

As I read somewhere- Winners and losers will both stumble. The difference is, winners have learned to quickly get back up.

2007 in the hindsight

If there is one word which I can use to describe how 2007 was for me, it would be “UNCERTAIN” . 2007 was the year I spent much of time in uncertainty.

There were many good happenings like engagement(Feb-4) , marriage(Mar-29) , got new job offer(May-25) , started life with Sailu (Jun-24), role change(Oct-5) etc. Equally were the not-so-good things like couldn’t realize onsite dream, orthodontic treatment got discontinued, stuck at unwanted location etc.

I made few very good friends and happened to meet many assholes.Unfortunately number of assholes far exceeds number of good relations.

My Resolutions for 2007 were totally ignored, my onsite dream was shattered, my new job offer was expired and my wish to move to Hyderabad was unfulfilled.

My spending habits were positively changed and I became very disciplined spender.Started counting every rupee I spend.I have been able to keep my word to all my lenders and I got rid of most of my debt.

Personally 2007 has been a great year at least though I faced many unexpected debacles in my work life for which, I have to work for betterment in 2008.