  
        function CloseDetailInfo()
       {
        $get("detailInfo").style.visibility = "hidden";
        $get("PleaseWait").style.display = "block";
        $get("DetailInfoContents").innerHTML = "";

        
        return false;
        
       }
       

        function GetTableInfo(casinoKey, tableName)
        {
            $get("detailInfo").style.visibility = "visible";


  
            PageMethods.GetTableInfo(casinoKey, tableName, OnDetailInfoSucceeded, OnDetailInfoFailed);

            event.returnValue = false;
            
            return false;
        }
        
        function GetTournamentInfo(casinoKey, tournamentName)
        {
            $get("detailInfo").style.visibility = "visible";
            PageMethods.GetTournamentInfo(casinoKey, tournamentName, OnDetailInfoSucceeded, OnDetailInfoFailed);

             event.returnValue = false;
            return false;
        }
        function OnDetailInfoSucceeded(result) {
        

            $get("PleaseWait").style.display = "none";
            
            if (result == "error")
                DisplayError();
            else
                $get("DetailInfoContents").innerHTML = result;
        }

        function OnDetailInfoFailed(error) {
            

            $get("PleaseWait").style.display = "none";
             
            $get("PleaseWait").display = "none";
            
            DisplayError();
            
            alert(error);
        }   
        
        function DisplayError()
        {
            $get("DetailInfoContents").innerHTML = "<h2>There was an error retrieving information for the table, please try again later.</h2>";
        }

