﻿
function GetXmlHttp() {
    var xmlhttp = false;
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest()
    }
    else if (window.ActiveXObject)// code for IE
    {
        try {
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
        }
        catch (e) {
            try {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
            }
            catch (E) {
                xmlhttp = false
            }
        }
    }
    return xmlhttp;
}


function AddItem(itemid) {
    alert('ggggg');
    //event.cancel = true;
    var xmlhttp = new GetXmlHttp();

    if (xmlhttp) {
        alert('der');
        xmlhttp.open("GET", "/handler.ashx?itemID=" + itemid , true);
        xmlhttp.send(null);
    }
    alert('her');
    return false;
}



