function add( nom ) {	
	if (document.getElementById( nom ).value > -1) {document.getElementById( nom ).value ++; document.getElementById( nom ).focus();}
}

function substract( nom ) {
	if (document.getElementById( nom ).value > 0) {document.getElementById( nom ).value --; document.getElementById( nom ).focus();}
}

function isNumberKey(evt)
{
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	return false;

	return true;
}

function isDateKey(evt)
{
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	return false;

	return true;
}
