/*
//
// APUS JS package, last modified $Date: 2005/03/31 15:30:35 $ by $Author: stamina $
//
// This script contains some thread functionality, like validating and clearing the
// input fields.
//
*/

function checkThread() {
	if (document.threadform.name.value == '') {
		alert("Vul een naam in.");
		document.threadform.name.focus();
	} else if (document.threadform.email.value == '') {
		alert("Vul een e-mail adres in.");
		document.threadform.email.focus();
	} else if (document.threadform.reaction.value == '') {
		alert("Vul een reactie in.");
		document.threadform.reaction.focus();
	} else if (!document.threadform.confirmation.value == '') {
		// do nothing
	} else {
		document.threadform.submit();
	}
}

function checkSearchSubmit() {
	if (document.threadform.name.value == '') {
		alert("Vul een naam in.");
		return false;
	} else if (document.threadform.email.value == '') {
		alert("Vul een e-mail adres in.");
		return false;
	} else if (document.threadform.reaction.value == '') {
		alert("Vul een reactie in.");
		return false;
	} else if (!document.threadform.confirmation.value == '') {
		// do nothing
		return false;
	} 
	return true;
}


 



