﻿// JScript File

/*  Ex, version 1.1.0
 *  (c) 2007 Basil Goldman <basil@mantis.co.il>
 *
 *  Ex is freely distributable with Prototype 1.4.0 under the terms of an MIT-style license.
 *  For details:
 *
/*--------------------------------------------------------------------------*/

var Ex = {
    
    _t:null,
    _flag:true,
    
    AjaxTimeOutRefresh: function() {
        
        Mantis.Curver.Pages.Default.AjaxTimeOutRefresh(
            Ex._flag,
            AjaxProOutput(
                function(value) { /*alert(value);*/ Ex.StartTimer(); }    
            )
        );
    },
    
    StartTimer: function() {
        Ex._t=setTimeout("Ex.AjaxTimeOutRefresh()",300000);
    },
    
    StopTimer: function() {
        clearTimeout(Ex._t);
    },
    
    Init: function() { Ex.StartTimer(); }
}

/*--------------------------------------------------------------------------*/
