//<!--

function countItems(module, where)
{
    xmlSyncRequestXml('/modules/count_items.php?m=' + module, '', parseXmlContent);
	if ('undefined' != typeof(gridAjaxFile) && module == where) {
		xmlSyncRequestText(gridAjaxFile, Form_MakeQueryString(gridFormName), gridSpanId);
	}
}

var inboxID;
function getNewItems(milsec, module, where) {
	//** Cod functie
    countItems(module, where);
    //** /Cod fnctie

    window.clearTimeout(inboxID);
    inboxID = window.setTimeout('getNewItems('+ milsec +',\'' + module + '\')', milsec);
}

//-->