﻿function getEventTarget(e) {

    e = e || window.event;
    return e.target || e.srcElement;
}

function editCell(a) {




    var target = getEventTarget(a);

    try {
        if (target.tagName.toLowerCase() != 'input' && target.tagName.toLowerCase() != 'select' && target.tagName.toLowerCase() != 'a' && target.tagName.toLowerCase() != 'textarea') {
            //document.getElementById('txtName').value = target.tagName.toLowerCase();
            document.oncontextmenu = new Function("return false;")
            a.returnValue = false;
            a.preventDefault();
            document.getElementByID('sdffd').value = 'asd';
            return false;

        }
        else {
            document.oncontextmenu = new Function("return true;")

        }
    }
    catch (exp) {
    }
}  
