var oHttpReq = GetAjaxObject();

function GetAjaxObject()
{
    var ajax=false; 
    try 
    { 
        ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
    }
    catch (e) 
    { 
        try
        { 
            ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
        }
        catch (E)
        { 
            ajax = false; 
        }
    }   
    if (!ajax && typeof XMLHttpRequest!='undefined') 
    {
        ajax = new XMLHttpRequest(); 
    } 
    return ajax;
}

function ajax_verify(str,type){
    oHttpReq.open("POST", "/has_client/buy/domain_service/checklimit.asp?lx=" + Trim(type) + "&w=" + Trim(str), false);
    oHttpReq.send("");
    result = oHttpReq.responseText.replace(/(^\s*)|(\s*$)/g, "");
  //  alert(result);
    if( result.toLowerCase() == "1" ){
        return true
    }
    return false;
}

