/*********************************************************************************************************************
Version:
	20030327 RMV v1 created
	20041210 EBA v2 crossbrowser compatibel
	20050413 EBA quick dirty hack that ctrl+v works 
Function: autorize only numbers from keyboard
Example:
1) load script on browser: <script language="JavaScript" type="text/javascript" src="/jscripts/onlyNumeric.js"></script>
2) call function on a textearea or text field and send parameters: onkeypress="javascript:CheckNumeric('language=de&country=ch')";
**********************************************************************************************************************/

//<!--
function checkNumeric(evt,sQuery) {
	var oEvent = (window.event) ? window.event : evt, key;

	if(window.event) { // for IE, e.keyCode or window.event.keyCode can be used
		key = oEvent.keyCode; 
	}
	else if(oEvent.which) { // netscape
		key = oEvent.which; 
	}
	else {
		// no event, so pass through
		return true;
	}

	if((key >= 48 && key <= 57) ||(key == 8) ||(key == true) || (key == 118)) {
		return;
	} else if(key == 13) { // if enter, send request
		chkReferenceID(sQuery);
	} else {
		if(document.all){ //ie
			oEvent.returnValue = false;
		} else { //ns
			oEvent.preventDefault();
			oEvent.stopPropagation();
		}
	}
}
//-->