function ajax()
{
    var xmlhttp;
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    } else if (window.ActiveXobject) {
        xmlhttp = new ActiveXobject("Microsoft.XMLHTTP");
    } else {
        alert("oops");
    }
    return xmlhttp;
}