function validateInput(control) 
{
	var parentid = control.id.substring(0, control.id.lastIndexOf("_")+1);
	var nameBox = window.document.getElementById(parentid+"txtFirstName");
	var lastBox = window.document.getElementById(parentid+"txtLastName");				
	var emailBox = window.document.getElementById(parentid+"txtEmail");
	var cmntsBox = window.document.getElementById(parentid+"txtCmnts");
	
	if (nameBox.value == "") {
		alert('Please provide your First Name');
		nameBox.focus();
		return false;
	}
	else if (lastBox.value == "") {
		alert('Please provide your Last Name');
		lastBox.focus();
		return false;
	}
	else if (!isValidEmail(emailBox.value)) {
		alert('Please provide your email address');
		emailBox.focus();
		return false;
	}
	else if (cmntsBox.value == "") {
		alert('Please enter comments');
		cmntsBox.focus();
		return false;
	}	
	else
		frm.submit();
}
