﻿  
   
   function confirmXoaRecord()   
	    {
		    return confirm("Bạn thật sự muốn xoá?");  
	    }  
	    
   function handleEnter (field, event) {
            var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
            var cFocus;
            var parent;
           if (keyCode == 13 || keyCode == 40 ) {
                cFocus = document.activeElement;
                switch (cFocus.type.toUpperCase()){
                    case 'TEXTAREA':
                    case 'TREEVIEW':
                    case 'SUBMIT':
                        return true; 
                        break;       
                    default :
                        window.event.keyCode = 9; 
                        break;
                }
            } 
            else
            return true;
        }       
        
     var lastColor;    
     function GrdView_changeBackColor(row, highlight)    
    {    
        if (highlight)    
        {    
            row.style.cursor='hand'
            lastColor = row.style.backgroundColor;
            row.style.backgroundColor='#E2F5DA';
        }    
        else    
           row.style.backgroundColor = lastColor;    
    }   

