<!--
//***** formcheck image algemeen ******\\
function chkFormImg(xform) {

	if (xform.image.value == "") {
		alert('Please select an image-file');
		xform.image.focus();
		xform.image.select();
		return false;
	}
	return true;
}

//***** formcheck homepage ******\\
function chkFormShout(xform) {

	if (xform.user.value == "" || xform.user.value == "Your Name") {
		alert('Please fill in your name');
		xform.user.focus();
		xform.user.select();
		return false;
	}

	if (xform.shoutit.value == "" || xform.shoutit.value == "Your Message") {
		alert('Please leave a message or leave the shoutbox');
		xform.shoutit.focus();
		xform.shoutit.select();
		return false;
	}
	return true;
}

function chkFormNewsLtr(xform) {

	if (xform.email.value == "" || xform.email.value == "Enter your e-mail address") {
		alert('Please fill in your email-address');
		xform.email.focus();
		xform.email.select();
		return false;
	}
	return true;
}

//***** formcheck register ******\\
function chkFormRegister(xform) {

	if (xform.name.value == "" || xform.name.value == "Your First Name") {
		alert('Please fill in your name');
		xform.name.focus();
		xform.name.select();
		return false;
	}

	if (xform.username.value == "" || xform.username.value == "Your Username") {
		alert('Please fill in a username');
		xform.username.focus();
		xform.username.select();
		return false;
	}

	if (xform.email.value == "" || xform.email.value == "Your Email") {
		alert('Please fill in your email-address');
		xform.email.focus();
		xform.email.select();
		return false;
	}

	return true;

}

function chkTerms(thisform) {

	if (document.register.name.value == "" || document.register.name.value == "Your First Name") {
		alert('Please fill in your name');
		document.register.name.focus();
		document.register.name.select();
		return false;
	}

	if (document.register.username.value == "" || document.register.username.value == "Your Username") {
		alert('Please fill in a username');
		document.register.username.focus();
		document.register.username.select();
		return false;
	}

	if (document.register.email.value == "" || document.register.email.value == "Your Email") {
		alert('Please fill in your email-address.\n\nNote that hotmail-addresses are not allowed.');
		document.register.email.focus();
		document.register.email.select();
		return false;
	}

	if (document.register.checkterm.checked == 0) {
		alert('You have to agree with our terms in order to proceed');
		return false;
	}
	
	document.getElementById('regbirdy').src = 'img/register/regBird2.gif';
	return true;
}

//***** formcheck submission ******\\
function chkFormSubmis(xform) {

	if (xform.image.value == "") {
		alert('Please select the image-file of your design');
		xform.image.focus();
		xform.image.select();
		return false;
	}
	
	if (xform.image2.value == "") {
		alert('Please select the detail image-file');
		xform.image2.focus();
		xform.image2.select();
		return false;
	}
	
	if (xform.design.value == "") {
		alert('Please enter the name of your design');
		xform.design.focus();
		xform.design.select();
		return false;
	}
	return true;
}

//***** formcheck homepage ******\\
function chkFormComm(xform) {

	if (xform.name.value == "" || xform.name.value == "Your name") {
		alert('Please fill in your name');
		xform.name.focus();
		xform.name.select();
		return false;
	}

	if (xform.comment.value == "" || xform.comment.value == "Your comment here") {
		alert('Please leave a message');
		xform.comment.focus();
		xform.comment.select();
		return false;
	}
	return true;
}
//-->
