function Form1_Validator(theForm)
{
// check to see if the First Name field is blank
if (theForm.gb_fname.value == "")
{
alert("Please enter your first name.");
theForm.gb_fname.focus();
return (false);
}

// check to see if the Last Name field is blank
if (theForm.gb_lname.value == "")
{
alert("Please enter your last name.");
theForm.gb_lname.focus();
return (false);
}

// check to see if the first address field is blank
if (theForm.gb_addr1.value == "")
{
alert("Please enter your mailing address.");
theForm.gb_addr1.focus();
return (false);
}

// check to see if the city field is blank
if (theForm.gb_city.value == "")
{
alert("Please enter your city.");
theForm.gb_city.focus();
return (false);
}

// check to see if the user selected a city
if (theForm.gb_state.value == "")
{
alert("Please select a state.");
theForm.gb_state.focus();
return (false);
}

// check to see if the user entered a zip code
if (theForm.gb_zip.value == "")
{
alert("Please enter your zip code.");
theForm.gb_zip.focus();
return (false);
}
}

function Form2_Validator(theForm)
{
// check to see if the Name field is blank
if (theForm.e_name.value == "")
{
alert("Please enter your first and last name.");
theForm.e_name.focus();
return (false);
}

// check to see if the email address field is blank
if (theForm.e_email.value == "")
{
alert("Please enter your email address.");
theForm.e_email.focus();
return (false);
}

// check to see if the phone number field is blank
if (theForm.e_message.value == "")
{
alert("Please enter your phone number.");
theForm.e_message.focus();
return (false);
}
}