function lastUpdate()
{
	var lastUpdate = '17 april 2004';
	return lastUpdate;
}

function WriteEmailAddress(VoorApeStaartje, NaApeStaartje, Onderwerp, Naam, DocTekst)
{
	document.write("<a href=\"mailto:" + VoorApeStaartje + "@" + NaApeStaartje + "?Subject=" + Onderwerp + "\" onMouseOver=\"self.status=\'E-mail naar " + Naam + "\'; return true\" onMouseOut=\"self.status=\' \'; return true\">"); 
	document.write(DocTekst); 
	document.write("</a>"); 
}

function maakrood(naam){
	document.form1(naam).style.backgroundColor= '#FDCBC8';
}

function maakwit(naam){
	document.form1(naam).style.backgroundColor= '#FFFFFF';
}

function check (naam,change){
	if (change==""){
	change=naam;	
	}
	var objRegExp = /^[/"/']*$/;
	if(document.form1(naam).value==""){
 		maakrood(change);
 		return true;
	}else{
		if(objRegExp.test(document.form1(naam).value)){
			maakrood(change);
    		return true;
		}else{
 			maakwit(change);
 			return false;
 		}
 	}
}

function isEmail(emailadres)
{
	
	invalidChars = " ~\'^\`\"*+=\\|][(){}$&!#%/:,;";

    // Check for null
    if (emailadres == "") {
	return (false);
    }

    // Check for invalid characters
    for (i=0; i<invalidChars.length; i++) {
        badChar = invalidChars.charAt(i);
        if (emailadres.indexOf(badChar,0) > -1) {
         return (false);
        }
    }

    //is the period at the beginning of the email address?  or directly at the end?
    lengthOfEmail = emailadres.length;
    if ((emailadres.charAt(lengthOfEmail - 1) == ".") || (emailadres.charAt(lengthOfEmail - 2) == ".")) {
       return (false);
    }

    //is the address something@. ?
    Pos = emailadres.indexOf("@",1);
    if (emailadres.charAt(Pos + 1) == ".") {
       return (false);
    }

    //is the address something.@ ?
    Pos = emailadres.indexOf("@",1);
    if (emailadres.charAt(Pos - 1) == ".") {
       return (false);
    }

    //is the address something.. ?
    while ((Pos < lengthOfEmail) && ( Pos != -1)) {
        Pos = emailadres.indexOf(".",Pos);
        if (emailadres.charAt(Pos + 1) == ".") {
        return (false);
        }
        if (Pos != -1) {
            Pos++;
        }
    }

    // There must be an @ symbol
    atPos = emailadres.indexOf("@",1);
    if (atPos == -1) {
       return (false);
    }

    // But only ONE @ symbol
    if (emailadres.indexOf("@",atPos+1) != -1) {
       return (false);
    }

    // Is there at least one period after the @ symbol
    periodPos = emailadres.indexOf(".",atPos);
    if (periodPos == -1) {
        return (false);
    }
    if (periodPos+3 > emailadres.length) {
	return (false);
    }

	return (true);
	
}

