<!--
function checkData() {
    if (!checkEditFields())
        return false;
}

function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}

function checkEditFields() {
    // List of fields to be checked.
    fields = new Array(
        document.eformation.first_name2,
        document.eformation.last_name2,
        document.eformation.company3,
        document.eformation.email3,
        document.eformation.title,
        document.eformation.department,
        document.eformation.street,
        document.eformation.city,
        document.eformation.state3,
        document.eformation.zip,
        document.eformation.country3,
        document.eformation.phone3,
        document.eformation.fax3);
    // String used in message if field is not filled in.
    // NOTE:  Must match array of fields above.
    prompts = new Array(
        "First Name",
        "Last Name",
        "Company Name",
        "E-Mail",
        "Title",
        "Department",
        "Address",
        "City",
        "State / Province",
        "Postal Code",
        "Country",
        "Phone Number",
        "Fax Number");

    // Verify each required field is filled in.
    for(i in fields)
    {
        if (trim(fields[i].value) == "")
        {
            alert("Please fill in " + prompts[i] + ".");
            fields[i].focus();
            return false;
        }
		else if (fields[i].value == " ")
		{
			alert("Please fill in " + prompts[i] + ".");
			fields[i].focus();
			return false;
		}

    return true;
}
// -->
