function checkEmailForm()                                         	
{									
	var theform = document.emailform;				

	if (theform.name.value == "")					
	{								
		alert("Please fill in your NAME");			
		theform.name.focus();					
		return false;						
	}								
	if (theform.email.value == "")				
	{								
		alert("Please fill in your EMAIL ADDRESS");		
		theform.email.focus();					
		return false;						
	}								
	if (theform.email_confirm.value == "")			
	{								
		alert("Please confirm your EMAIL ADDRESS.");		
		theform.email_confirm.focus();				
		return false;						
	}								
	if (theform.email.value != theform.email_confirm.value)		
	{								
		alert("Your emails do not match.\nPlease re-enter.");
		theform.email.focus();					
		return false;						
	}								
	if (theform.email.value != "")				
	{								
		var emailval = theform.email.value
		if ((emailval.indexOf("@") == -1) || (emailval.indexOf(".") == -1))
		{							
			alert("Error: Invalid Email Address.\nMissing @ and\/or extension \(.com, .org, etc...\).\nPlease Try Again.\n");
			theform.email.focus();				
			return false;					
		}		
		if ((emailval.length - 1) == emailval.indexOf("."))
		{							
			alert("Error: Invalid Email Address.\nMissing extension \(.com, .org, etc...\).\nPlease Try Again.\n");
			theform.email.focus();				
			return false;					
		}							
	}								
	if (theform.subject.value == "")				
	{								
		alert("Please fill in the SUBJECT");			
		theform.subject.focus();				
		return false;						
	}								
	if (theform.security.value == "blank")
	{
		alert("Please select an answer for the Security Question");
		theform.security.focus();
		return false;
	}
	if (theform.message.value == "")				
	{								
		alert("Please fill in your MESSAGE");			
		theform.message.focus();				
		return false;						
	}								
}
