function chkFields()
{

// check for amount
if (document.mainform.amount.value == "")
	{
		alert
		("Please enter the amount you are paying.");
		document.mainform.amount.focus();
		return false;
	}
	
// check for name
if (document.mainform.first_name.value == "")
	{
		alert
		("Please enter your first name.");
		document.mainform.first_name.focus();
		return false;
	}

// check for name
if (document.mainform.last_name.value == "")
	{
		alert
		("Please enter your last name.");
		document.mainform.last_name.focus();
		return false;
	}
	
	
// check for e-mail entry
// for correct format ampersand, period, no blank characters in between
if (document.mainform.email.value == "" || document.mainform.email.value.indexOf("@") == -1 || document.mainform.email.value.indexOf(".") == -1 || document.mainform.email.value.indexOf(" ") != -1 || document.mainform.email.value.length < 6)
	
	{
		alert("Please enter a valid e-mail address. Be sure to\n" + "include the @ sign and at least one period.");
		document.mainform.email.focus();
		return false;
	}
}

// Validate all numeric

function check(contents) 
{
     if (((contents / contents) != 1) && (contents != 0)) 
	 {
	 alert
	 ("The amount  should be all numeric. Do not use a dollar sign.");
	 document.mainform.amount.focus();
	return false;
	 }
}


