﻿
// this function is working when the button is running at server
function getBtnFocusedOnEnterKeyPress(btnElem)
{
	    var res = window.event.keyCode;
	    if (res == 13){ btnElem.focus();}
	    
	}
	
	
// this function is working when the button is running in client side
function getBtnClickedOnEnterKeyPress(btnElem)
{
	    var res = window.event.keyCode;
	    if (res == 13){ btnElem.click();return false; }
	    return true;
	}

