function addCert_url(obj)
{
    RequestByGet_url("cert","add",obj);
    //obj.bear=parseInt(obj.bear)+1;
    //init_cert(obj);
}

function lostCert_url(obj)
{
    RequestByGet_url("cert","lost",obj);
    //obj.combat=parseInt(obj.combat)+1;
    //init_cert(obj);
}


function RequestByGet_url(type,act,obj) 
{ 
     var xmlhttp 
     if (window.XMLHttpRequest) 
     { 
         //isIE = false; 

         xmlhttp = new XMLHttpRequest(); 
     } 
     else if (window.ActiveXObject) 
     { 
         //isIE = true; 

         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
     } 
     //Web page location. 

     var URL="ajax/updateURL.aspx?type="+type+"&act="+act+"&atid="+obj.atid+"&t="+now(); 
     xmlhttp.open("GET",URL, false); 
     //xmlhttp.SetRequestHeader("Content-Type","text/html; charset=Shift_JIS") 
     xmlhttp.send(null); 
     var result = xmlhttp.status; 
     //OK 
     if(result==200) 
     { 
        if(xmlhttp.responseText.indexOf('regok')>=0)
        {
            if(act=="add")
            {
                obj.bear=parseInt(obj.bear)+1;
            }
            if(act=="lost")
            {
                obj.combat=parseInt(obj.combat)+1;
            }
            init_cert(obj);
        }
         //document.getElementById("div_RightBarBody").innerHTML=xmlhttp.responseText; 
     } 
     xmlhttp = null;

}

