/********************************************************************************
 *	SetDefBtn.Js -- version 2 (now works with firefox)							*
 *	By Mike Jensen																*
 *																				*
 *	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 bt = document.getElementById(buttonid); 
      if (bt)
      {
		  if (typeof bt == 'object'){ 
			if (event)
			{
				if (event.keyCode == 13)
				{bt.click(); return false;}
			}
			else
			{
				if (e.keyCode == 13)
				{bt.click(); return false;}
			}
		}
	}
}