function ajaxRequestShopLogin(shopid){
  var url = '/ajax/shopLogin.php';

  new Ajax.Request(url, {
    method: "get",
    parameters: "shopid=" + shopid,
    onSuccess: getAddr, 
    ansynchronous: true,
    onFailure: function(){}
  });
}

function getAddr(httpObj) {
    eval("var data =" + httpObj.responseText);
    if(data.stat == "ok") {
        window.location.href = data.url;
    }else{
      alert(data.msg);
    }
}

