function ajaxWMrefresh(url, div, interval) {
    setInterval('ajaxWM(\''+url+'\', \''+div+'\')', interval);
}
function ajaxWM(url, div) {
    var ajaxWMhttp = (window.XMLHttpRequest ? new XMLHttpRequest() : (window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false));

    ajaxWMhttp.open("GET", url, true);
    ajaxWMhttp.onreadystatechange = function () {
        if (ajaxWMhttp.readyState == 4 && (ajaxWMhttp.status == 200 || ajaxWMhttp.status == 304)) {
            document.getElementById(div).innerHTML = ajaxWMhttp.responseText;
        }
    };
    ajaxWMhttp.setRequestHeader("Content-Type", "text/html;charset=UTF-8");
    ajaxWMhttp.send(null);
}
