<!--		
	function init(){
		define('fldFirst','string','Voornaam',1,50);
		define('fldLast','string','Achternaam',2,80);		
		define('fldCompany','string','Bedrijfsnaam',2,160);
		define('fldPosition','string','Functie',3,80);
		define('fldAddress','string','Adres',3,80);
		define('fldPC','string','Postcode',6,7);
		define('fldCity','string','Plaats',3,80);		
		define('fldPhone','string','Telefoon',10,20);			
		define('fldFax','string','Fax',null,20);			
		define('fldEmail','email','Email');						
		define('fldNumAccounts','num','Aantal gebruikers',1,100);
	}

  function adjustPrice() {
    var thePrice = 0;

    for (var i=0; i < document.forms['z'].fldAboType.length; i++) {
      if (document.forms['z'].fldAboType[i].checked) {
          var rad_val = document.forms['z'].fldAboType[i].value;
      }
    }
    var the_base_price = 0;
    var the_var_price = 0;
    if (rad_val == "volledig") {
      the_base_price = 1015;
      the_var_price = 170;
    } else if (rad_val == "20caos") {
      the_base_price = 675;
      the_var_price = 122;
    } else if (rad_val == "10caos") {
      the_base_price = 479;
      the_var_price = 95;
    } else if (rad_val == "proef") {
      the_base_price = 0;
      the_var_price = 0;
    }
    var the_abo_count = 1;
    if (!isNaN(document.forms['z'].fldNumAccounts.value)) {
      the_abo_count = document.forms['z'].fldNumAccounts.value;
    }
    thePrice = the_base_price + (the_abo_count - 1) * the_var_price;
    if (document.forms['z'].fldAboPR.checked) {
      if (rad_val == "volledig") {
        the_base_price = 153.25;
      } else if (rad_val == "20caos") {
        the_base_price = 206.25;
      } else if (rad_val == "10caos") {
        the_base_price = 156;
      } else if (rad_val == "proef") {
        the_base_price = 0;
      }
      the_var_price = 64;
      thePrice = thePrice + the_base_price + (the_abo_count - 1) * the_var_price;
    }
    if ((the_abo_count < 1) || (the_abo_count > 100)) {
      document.getElementById('aboprijs').innerHTML = "De abonnementsprijs onbekend: Ongeldige invoer.";
    } else {
      document.getElementById('aboprijs').innerHTML = "De abonnementsprijs bedraagt &euro;" + thePrice + " per jaar.";
    }
    return true;
  }

	function SubmitForm() {
		validate();

		if (returnVal) {
      for (var i=0; i < document.forms['z'].fldAboType.length; i++) {
        if (document.forms['z'].fldAboType[i].checked) {
          var rad_val = document.forms['z'].fldAboType[i].value;
        }
      }
      if ((rad_val == "proef") && (document.forms['z'].fldNumAccounts.value > 1)) {
        alert('Waarschuwing: Een proefabonnement is altijd voor een enkele gebruiker');
      }
    }

		if (returnVal) {
			return true;	
		}
		else{
			return false;	
		}
	}
	
	function ResetForm() {
		document.forms['z'].reset();
	}
		
	function ClearForm(){
		var o ;
		o = document.forms.x;
		var e;
		if (o && (e = o.elements)){
			var len
			var tn;
			var ty; 
			len = e.length; 
			for (var i = 0; i < len; i++){
				o = e[i];
				if ((tn = o.tagName) && (ty = o.type) && ((tn = tn.toLowerCase()) == "input" && ty.toLowerCase() == "text")	|| tn == "textarea") {
					o.value = "";
				}
			}
		}
	}	


	init();		
//-->

