nc6 = (typeof(window.controllers) != 'undefined' && typeof(window.locationbar) != 'undefined')? true:false;
nc4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

var message = '';

function clavier_entree(e) {
	if (nc6 || nc4) {
		var numero_touche = e.which;
		if (numero_touche != 13 && numero_touche != 0) {
			if (numero_touche == 8) {
				message = message.substring(0,message.length - 1);
				}
			else {
				numero_touche = String.fromCharCode(e.which);
				message += numero_touche;
				}
			}
		}
	if (ie4) {
		var numero_touche = event.keyCode;
		if (numero_touche != 13 && numero_touche != 0) {
			numero_touche = String.fromCharCode(window.event.keyCode);
			message += numero_touche;
			}
		}
	window.status = message;
	}
if (window.document.captureEvents!=null) {
	document.captureEvents(Event.KEYPRESS);
	}
document.onkeypress = clavier_entree;
