// JavaScript Document
function checkField(field, fieldName) {
	if (field.value.length == 0) {
		alert("Please fill in the " + fieldName + " and all other fields marked with an asterisk (*).");
		field.select();
		field.focus();
		return false;
	}
	return true;
}
function doSubmit() {
	return (
		checkField( document.forms.demoform.contact, "Name" ) &&
		checkField( document.forms.demoform.organization, "Organization" ) &&
		checkField( document.forms.demoform.email, "E-Mail Address" ) &&
		checkField( document.forms.demoform.phone, "Phone (with Area Code)" ) 
	)		
}
