function validateKeyPress(theEvent)
	{
		var charCode;
		
		if(!theEvent) {
			theEvent = window.event;
		}
		
		if(theEvent.metaKey || theEvent.ctrlKey || theEvent.altKey) {
			return true;
		}
		
		charCode = (theEvent.charCode) ? theEvent.charCode :
			((theEvent.keyCode) ? theEvent.keyCode : ((theEvent.which) ? theEvent.which : 0));
			
		if((charCode >= 48 && charCode <= 57) || charCode < 32 || charCode > 126 || (charCode >= 37 && charCode <= 40 && !theEvent.shiftKey)) {
			return true;
		}
		
		return false;
	}