
function openWin(sUrl, sName, sHeight, sWidth, sFeatures) {
    var sDefaultHeight = "5";
    var sDefaultWidth = "5";
    if (sName == undefined) {
        sName = "";
    }
    if (sHeight == undefined || sHeight == "") {
        sHeight = sDefaultHeight;
    }
    if (sWidth == undefined || sWidth == "") {
        sWidth = sDefaultWidth;
    }
    if (sFeatures == undefined || sFeatures == "") {
        var left = (screen.width / 2) - (sWidth / 2);
        var top = (screen.height / 2) - (sHeight / 2);
        sFeatures = "left=" + left + ",top=" + top;
        sFeatures += ",scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,help=no";
    }
    sFeatures = "width=" + sWidth + ",height=" + sHeight + "," + sFeatures;
    var vResult = window.open(sUrl, sName, sFeatures);
    vResult.focus();
    return vResult;
}
 function ShowUserInfo(userId)
 {
     var url = "/Member/UserInfo.aspx?user="+userId;      
     openWin(url, userId, "510", "850", ""); 
 }
 function showPerson(id,typeId)
 {             
     var url = "ShowPerson.aspx?Id="+id+"&Typeid="+typeId;
     openWin(url, id, "700", "800", "");
 }
 function userJoin(JoinId)   
 {
       $.get("/Ajax.ashx",
                { type: "IsLogin"},
                function(data) {
                   if(data == "1")
                   {
                      alert("对不起,只有登录会员才能报名!");
                      return false;                                            
                   }            
                   if(data == "0")
                   {
                       var url = "/Common/UserJoin.aspx?Id="+JoinId;
                       openWin(url, "userjoin", "400", "800", "");
                    
                   }                   
                });
     
 }