/********************************************************************************
 *	Make sure you add this script file to the top of any aspx page				*
 *	that calls the SetDefBtn() vb function!										*
 *																				*
 *	An example of how to add this to the head of your aspx page is:				*
 *																				*
 *	<script src="Includes/SetDefBtn.js" type="text/javascript"></script>		*
 *																				*
 ********************************************************************************/

function clickButton(e, buttonid)
{ 
    var buttontype = document.getElementById(buttonid); 
    if (buttontype)
    {
		      if (typeof buttontype == 'object')
		      { 
			        if (event)
			        {
				        if (event.keyCode == 13)
				        {buttontype.click(); return false;}
			        }
			        else
			        {
				        if (e.keyCode == 13)
				        {buttontype.click(); return false;}
			        }
		      }
    }
}