// js
	tFormName = "spende";

	//

	function updateForm(tVal) {
		
		tForm = document.forms[tFormName];
		tModus2 = tForm.MODUS2.value;
	
		switch (tModus2){
			case "-1":
			default:
				//document.formtext_datum.value="einzel";
				document.getElementById('formtext_datum').innerHTML = "Ich spende im";
				tForm.VERWENDUNG.disabled = false;
				
				break;
			case "1":
			case "2":
			case "4":
			case "12":
				document.getElementById('formtext_datum').innerHTML = "Ich spende ab dem";
				
				tOut = "";
				i=0;
				tIndex = -1;
				for(i=0;i < tForm.VERWENDUNG.options.length && tIndex == -1;i++) {
					if (tForm.VERWENDUNG.options[i].value == "9990") {
						tIndex = i;
					}
				}
				//alert(tOut);
				tForm.VERWENDUNG.selectedIndex = tIndex;
				tForm.VERWENDUNG.disabled = true;
								
				break;
		}
	}

	function setBetrag(tValue) {
		tForm = document.forms[tFormName];
		tForm.BETRAG.value = tValue;
		
	}

  	function spendentool_DoFSCommand(command, args) {
        if (command == "set_betrag") {
		   setBetrag(args);
 		}
	}

