function AjaxCore(url,method,pars,response)
{
	var GridRequest = new Ajax.Request(
		url, 
		{
			method: method, 
			parameters: pars, 
			onComplete: response
		});
}
	
function AjaxCoreTimer(handle, ms)
{
    this.handle = handle;
    this.ms = ms;
    this.timer = 0;
}

AjaxCoreTimer.prototype.start = function()
{
    if (this.timer > 0)
        this.reset();
    this.timer = window.setTimeout(this.handle, this.ms);
}

AjaxCoreTimer.prototype.reset = function()
{
    if (this.timer > 0)
        window.clearTimeout(this.timer);
    this.timer = 0;
}

	

