
		// Trap Backspace(8)
	// Except bksp on text/textareas

	if (typeof window.event != 'undefined') // IE
	document.onkeydown = function() // IE
	{
		var t=event.srcElement.type;
		var kc=event.keyCode;
		if ((kc != 8) || ( t == 'text' &&  kc != 13 ) ||
		(t == 'textarea') || ( t == 'submit' &&  kc == 13))
		return true
		else {
			alert('Backspace is not allowed here because that would clear the page!');
			return false
		}
	}
	else
	document.onkeypress = function(e)  // FireFox/Others 
	{
		var t=e.target.type;
		var kc=e.keyCode;
		if ((kc != 40,39,38,37) || ( t == 'text' &&  kc != 13 ) || 
		(t == 'textarea') || ( t == 'submit' &&  kc == 13))
		return true
		else {
			alert('Arrow keys move the page around, duh!'); 
			return false
		}
	}

