function checkForm(theForm) {
	// Check if domain name field is empty
	if (theForm.domainname.value == "") { 
		alert ("Please enter a domain name to check");
		return false; 
	}
	dotPos = theForm.domainname.value.lastIndexOf(".");
	domainLower = theForm.domainname.value.toLowerCase();
	// Check if domain name field is missing a dot or missing an appropriate extension
	if 	(	(dotPos == -1) || 
			(domainLower.indexOf("com",dotPos) == -1 &&
			domainLower.indexOf("net",dotPos) == -1 &&
			domainLower.indexOf("org",dotPos) == -1 &&
			domainLower.indexOf("biz",dotPos) == -1 &&
			domainLower.indexOf("info",dotPos) == -1 )
		) {
		alert ("Please include a .com, .net, .org, .biz, or .info extension");
		return false;
	}
	return true;
}
