/*
 * This function disables the enter key on a Web page. It's useful for
 * preventing the user from using the enter key to submit a form because
 * that can have unpredictable results across browsers.
 *
 * For example, there's a bug in IE6 where the submit button for a form isn't
 * POSTed if the form contains one text value and the users submits the form
 * by pressing enter.
 *
 * Also, if there is more than one submit button in the form, different browsers
 * choose different buttons as the default that is submitted when the user presses
 * enter.
 */

function kH(e) 
{
	var pK = document.all? window.event.keyCode:e.which;
	return pK != 13;
}

document.onkeypress = kH;
if ( document.layers )
{
	document.captureEvents(Event.KEYPRESS);
}
