<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Language" content="nl-be" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Bestelformulier</title>
<script language="JavaScript" type="text/javascript">
function update(form){
var totaal = 0;
var persnr = "";
form.bedrag1.value= 15 * form.aantal1.value;
totaal += (15 * form.aantal1.value);
form.bedrag2.value= 25 * form.aantal2.value;
totaal += (25 * form.aantal2.value);
form.bedrag3.value= 1 * form.aantal3.value;
totaal += (1 * form.aantal3.value);
form.bedrag4.value= 1 * form.aantal4.value;
totaal += (1 * form.aantal4.value);
form.totaal.value= parseFloat(totaal);
var struct1 = "";
form.struct1.value = form.persnr.value;
var sub;
sub = form.activiteit.value;
var tekst;
form.tekst.value=sub.substring(0,6)+form.persnr.value.substring(0,4);
var rest;
form.rest.value = form.tekst.value % 97;
var rest2 ="0";
if (form.rest.value<10) {
form.rest.value=rest2+form.rest.value
}
else {
form.rest.value=form.rest.value
};
var struccode;
form.struccode.value = " "+sub.substring(0,3)+"-"+sub.substring(3,6)+form.struct1.value.substring(0,1)+"-"+form.struct1.value.substring(1,4)+form.rest.value;
}
function herstel(){
if (confirm('Weet u zeker dat u de huidige gegevens wilt wissen?')){
return true;
}
else{
return false;
}
}
</script>
</head>
<body>
<form>
<pre>
Personeelsnummer: <input type="text" name="persnr" size="4" /> 0123
Naam en voornaam: <input type="text" name="naam" size="50" />
Telefoonnummer: <input type="text" name="telefoon" size="11" /> ../...... of ..../......
E
-mail: <input type
="text" name
="email" size
="60" />
Activiteit: <select size="1" name="activiteit">
<option>080393 - 25 apr 2008 - Boottocht voor de Seniores</option>
<option>080388 - 17 mei 2008 - Ruienwandeling in Antwerpen</option>
<option>080417 - 17 mei 2008 - Water Shuttle Tornooi VMW</option>
<option>080394 - 31 mei 2008 - Ochtendwandeling in Zoerselbos</option>
</select>
Kaarten voor leden € 15 <input type="text" value="0" name="aantal1" size="5" onChange="update(this.form)" /> te betalen <input type="text" name="bedrag1" size="8" onFocus="blur()" />
Kaarten voor niet-leden € 25 <input type="text" value="0" name="aantal2" size="5" onChange="update(this.form)" /> te betalen <input type="text" name="bedrag2" size="8" onFocus="blur()" />
Administratiekosten € 1 <input type="text" value="0" name="aantal3" size="5" onChange="update(this.form)" /> te betalen <input type="text" name="bedrag3" size="8" onFocus="blur()" />
Verzendkosten € 1 <input type="text" value="0" name="aantal4" size="5" onChange="update(this.form)" /> te betalen <input type="text" name="bedrag4" size="8" onFocus="blur()" />
Totaal te betalen <input type="text" name="totaal" size="8" align="right" onFocus="blur()" />
</pre>
<fieldset><legend> Gelieve te betalen op rekening 979-7424736-43</legend>
<pre>
Gestructureerde code <input type="text" name="struccode" size="20" onchange="update(this.form)" onFocus="blur()" />
</pre>
</fieldset>
<br />
<input type="button" value="formulier verzenden" onclick="this.form.submit()" />
<input type="reset" value="formulier leegmaken" />
<input type="hidden" name="struct1" size="8" onchange="update(this.form)" onFocus="blur()" />
<input type="hidden" name="tekst" size="50" onchange="update(this.form)" onFocus="blur()" />
<input type="hidden" name="rest" size="40" onchange="update(this.form)" onFocus="blur()" />
</form>
</body>
</html>