<!--
function checkForm() {

resourceName = document.resourceNew.resourceName.value;
resourceBio = document.resourceNew.resourceBio.value;
resourceType = document.resourceNew.resourceType.selectedIndex;
url = document.resourceNew.url.value;
resourceEmail = document.resourceNew.email.value;


if (resourceName.length < 5 || resourceName.length > 100) {
	alert("Please enter the name of the resource or website.\r\rIMPORTANT: Make sure there are between 5 and 100 characters.");
	}
	
else if (resourceBio.length < 10 || resourceBio.length > 400) {
	alert("Please enter a *brief* description of the web resource.\r\rIMPORTANT: Make sure there are between 10 and 400 characters.");
	}	

else if (resourceType == 0) {
	alert("Please choose the type of resource to be placed into the directory.");
	}

else if (url.length < 3) {
	alert("Please enter the URL (website address) of the resource or website.");
	}

else if (url.length > 150) {
	alert("Please limit the web address to 200 characters, and remove the 'http:' text.");
	}
	
else if (resourceEmail.length > 100) {
	alert("Please limit the email address to 100 characters.");
	}	
	
else {
	document.eventNew.submit()
	}
}


//-->