// JavaScript Document
function Validate() {
	// \n is a line break;
	var sErrorMessage = "Please enter in the following information:\n";
	var iErrorCount = 0;

	// the following are variables that point to the actual control on the page
	var oname = document.getElementById("fFromName");
	var oemailaddress = document.getElementById("fFromEmail");
	
	if(oname.value.length <= 0)
	{
		// the next line increments iErrorCount by 1
		iErrorCount++;
		// the next line adds the value on the right hand side to sErrorMessage
		//    variable
		sErrorMessage += iErrorCount + ". Your name\n";
	}

	if(oemailaddress.value.length <= 0)
	{
		iErrorCount++;
		sErrorMessage += iErrorCount + ". Your email address\n";
	}
	if(iErrorCount > 0)
	{
		alert(sErrorMessage);
		return false;
	}
	
	if(iErrorCount > 0)
	{
		alert(sErrorMessage);
		return false;
	}
	
	else
	{
		return true;
	}
}