﻿

function refreshChatStatus(interval, type, skiplink, targetId) {
    var i = d = 180000; //default refresh time 3 minutes

    try
    {i = parseInt(interval); }
    catch (ex)
    {i = d}
    self.setInterval("checkChatStatus('" + type + "', '" + skiplink + "', '" + targetId + "')", i) // *** dopo il test modificare l'intervallo di tempo
};



function checkChatStatus(type, skiplink, targetId) {
    $.getScript('/LiveSupport/CuteSoft_Client/CuteChat/Support-Image-Button.js.aspx?type='+ type + '&skiplink=' + skiplink + '&targetId=' + targetId, null);
}


