<!--
function checkForm(that) {
	errmsg='';
	if (that.name.value.length < 1) {
		errmsg+='-> Enter your name\n';
	}
	if (that.email.value.length < 1) {
		errmsg+='-> Enter your e-mail address\n';
	}
	if (!isValidEmail(that.email.value)) {
		errmsg+='-> Enter a valid e-mail address\n';
	}
	if (errmsg.length > 0) {
		alert('The following errors have occurred\n\n'+errmsg+'\nPlease fix any errors and try again. Thanks.\n');
		return false;
	} else {
		return true;
	}
}

function isValidEmail(address) {
	if (address != '' && address.search) {
  	if (address.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
			return true;
		} else {
			return false;
		} 
	} else {
		return true;
	}
}

function toggleOtherRow() {
	otherRow = document.getElementById('other_row');
	currentClass = otherRow.className;
	if (currentClass == 'tableHideRow') {
		nextClass = 'tableShowRow';
	} else {
		nextClass = 'tableHideRow';
		document.getElementById('other').value = '';
	}
	otherRow.className = nextClass;
	if (nextClass == 'tableShowRow') {
		document.getElementById('other').className = 'inputText';
	} else {
		document.getElementById('other').className = 'tableHideRow';
	}
}

function resetForm() {
	document.getElementById('other').className = 'tableHideRow';
	document.getElementById('other_row').className = 'tableHideRow';
	document.contactForm.reset();
}
//-->
