

	var oldstring


		function CheckNumbers(obj) {


			var text = obj.value;
			
				if(isNaN(text)==true){
				
					obj.value=oldstring;
					
				} else {        
				
					oldstring=text;       
					
					if(text=="" || text=="undefined") {   

					
						text="";
						
					}
					
				}
				
		}
		
		
		
		
	function check(id) {
	
			
		if(id.value.length > 3) {
		
			id.value="";
						
			alert('Die Feldlänge darf nicht mehr als 3 Zahlen betragen.');
		} 
	
	}
	
	
	
	function check4(id) {
	
			
		if(id.value.length > 4) {
		
			id.value="";
						
			alert('Die Feldlänge darf nicht mehr als 4 Zahlen betragen.');
		} 
	
	}
	
	
	
	function check30(id) {
	
			
		if(id.value.length > 30) {
		
			id.value="";
						
			alert('Die Feldlänge darf nicht mehr als 30 Zeichen betragen.');
		} 
	
	}
	