function validate_quickcontact(thisform) {
	with (thisform) {
		if (emptyvalidation(wozniakCName, "Woops! You forgot to fill in your Name") == false) {
			wozniakCName.focus();
			return false;
		}
		if (wozniakphone.value.length < 10) {
			alert('Woops! You have entered an invalid phone numeber!');
			wozniakphone.focus();
			return false;
		}
		if (emptyvalidation(wozniakmail, "Woops! You forgot to fill in your Email Address") == false) {
			wozniakmail.focus();
			return false;
		}
		var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		var address = thisform.wozniakmail.value;

		if (reg.test(address) == false) {
			alert('Woops! You have entered an invalid Email Address');
			wozniakmail.focus();
			wozniakmail.select();
			return false;
		}

		if (emptyvalidation(wozniakcomments, "Woops! You forgot to fill in your Comments") == false) {
			wozniakcomments.focus();
			return false;
		}

	}
	thisform.submit();
}

function emptyvalidation(entered, alertbox) {
	with (entered) {
		while (value.charAt(0) == ' ')
			value = value.substring(1);
		while (value.charAt(value.length - 1) == ' ')
			value = value.substring(0, value.length - 1);
		if (value == null || value == "") {
			if (alertbox != "")
				alert(alertbox);
			return false;
		} else
			return true;
	}
}

