﻿$(document).ready(function(){
        $(".dbt").hide();
        document.onkeyup = respondonkey;                                  
});    
	                       


function respondonkey(e)
{   
    var KeyID = (window.event) ? event.keyCode : e.keyCode;    
    
    var isintern = $("input[name$='m_isIntern']").get(0).value;
    switch(KeyID)
    {
    case 19:
        if(isintern == 'True' ) 
        {
            //Show DebugTable
            var div_m_dbt = document.getElementById('m_dbt');
            var prop = div_m_dbt.style.display;
            if ( prop != 'none')
            {
                $(document).ready(function(){
                $(".dbt").animate({height: 'hide', width: 'hide',
                    opacity: 'hide'}, 'slow');
                });
            }
            else
            {
                $(document).ready(function(){
                $(".dbt").animate({height: 'show', width: 'show',
                    opacity: 'show'}, 'slow');
                });            
            };
        };
     break;
    };                 
};
