function isblank(s)
		{
			for (var i=0;i<s.length;i++){
				var c=s.charAt(i);
				if ((c!=' ')&&(c!='\t')&&(c!='\n')) return false;
			}
			return true;
		}
		
		function verify(f)
		{
			var msg;
			var empty_fields="";
			var errors="";
			
			
			switch (glbLang){
			case "de":
				var text1="- Das Feld ";
				var text2="  muss eine Zahl enthalten";
				var text3=" die größer ist als ";
				var text4=" und kleiner ist als ";
				var text5=" die kleiner ist als ";
				var text6="   Folgende(r) Fehler ist/sind aufgetreten    \n";
				var text7=" - Bitte füllen Sie folgende Felder aus:";
				break;
			default:
				var text1="- The Field ";
				var text2="  must be a number";
				var text3=" that is greater than ";
				var text4=" and less than ";
				var text5=" that is less than ";
				var text6="     The following error(s) have occured      \n";
				var text7=" - The following required field(s) are empty:";
				break;
			}
			
					
			for (var i=0;i<f.length;i++){
				var e=f.elements[i];
				if (((e.type=="text")||(e.type=="textarea")) && !e.optional){
					if ((e.value==null)||(e.value=="")||isblank(e.value)){
						empty_fields+="\n          "+e.name;
						continue;
					}
					if (e.numeric||(e.min!=null)||(e.max!=null)){
						var v=parseFloat(e.value);
						if (isNaN(v)||((e.min!=null)&&(v<e.min))||((e.max!=null)&&(v>e.max))){
							errors+=text1+e.name + text2;
							if (e.min!=null)
								errors+=text3 + e.min;
							if (e.max!=null && e.min!=null)
								errors+=text4 + e.max;
							else if (e.max!=null)
								errors+=text5 +e.max;
							errors+=".\n";
						}
					}
				}
			}
			if (!empty_fields && !errors)
				return true;
				
			msg ="_____________________________________________\n\n";
			msg+=text6;
			msg+="_____________________________________________\n\n";
			
			if (empty_fields){
				msg+=text7 + empty_fields + "\n";
				if (errors)
					msg+="\n";
			}
			msg+=errors;
			alert(msg);
			return false;
		}

