
function clickButton(e, buttonid) {

    var key;

    if (window.event)
        key = window.event.keyCode;      //IE
    else
        key = e.which;      //firefox

   
    if (key == 13) {
        //Get the button the user wants to have clicked
        var btn = document.getElementById(buttonid);

        if (btn != null) { //If we find the button click it
           // alert(btn);
            btn.click();

           // alert('in');
            return false;

        }
    }



    }
