﻿

function ka(URLsite) {
    //alert('hi there');
    //if(navigator.appVersion.indexOf("Windows") != -1){
    //var url = URLsite+"Test_webservice.asp?getitem="+itemnum+"&position="+position;
    var ser = Math.round(Math.random() * 1000000); // Anti-caching random number
    var url = URLsite + "/javascripts/session.asp?code=" + ser;
    // code for Mozilla, etc.
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = state_Change3;
        xmlhttp.open("GET", url, true);
        xmlhttp.send(null);
    }
    // code for IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
        if (xmlhttp) {
            xmlhttp.onreadystatechange = state_Change3;
            xmlhttp.open("GET", url, true);
            xmlhttp.send(null);
        }
    }
}
