window.onload = setTimer;

function setTimer() {
    // <script type="text/javascript" src="/scripts/timer.js" />
	window.setInterval ( "hisir()", 540000 ); // 540000 = 9 minutes
	// left to make for easy testing
	//window.setInterval( "hisir()", 5000 ); // 60000 = 1 minutes
}

function hisir() {
    console.log("making gogii request to keep session alive while you are on this page.");
    new Ajax.Request("/hisir.jsp?x=" + escape(new Date()), {
        method: 'get',
        onSuccess: function (transport){
            //nothing
        }
    });

}
