/********************************************************************************
 *	SetDefBtn.Js								*
 *	By Mike Jensen (Web Team 2005)						*
 *										*
 *	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 (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
} 
