function  verifyInfo(oForm)
{
	//Verify First Name has a value
	if  (oForm.FirstName.value.length==0)
	{
		   window.alert('First Name is required.')
			return
	}

	//Verify Last Name has a value
	if  (oForm.LastName.value.length==0)
	{
		   window.alert('Last Name is required.')
			return
	}
	//Verify Zip Code has a value
	if  (oForm.Zip.value.length==0)
	{
		   window.alert('Zip Code is required.')
			return
	}
	
	//Verify Phone has a value
	if  (oForm.Phone.value.length==0&&oForm.Phone1.value.length==0&&oForm.Phone2.value.length==0)
	{
			window.alert('Phone is required.')
			return
	}
	else	
	{
	//Verify Phone Format
		if  (oForm.Phone.value.length < 10)
			{
				window.alert('Phone Number is invalid. Please include the areacode with your phone number.')
				return
			}
	}
	
	//Verify Email has a value	
	if  (oForm.Email.value.length==0)
	{
		   window.alert('Email is required.')
			return
	}
	else
	{
	//Verify valid email address
		if (!isEmailAddr(oForm.Email.value))
			{
				alert("Please enter a valid email address.");
				oForm.Email.focus();
				return
			}
	}
	
	if (oForm.AgeOfHouse.value.length>0)
	{
		if (!isInteger(oForm.AgeOfHouse.value))
			{
				alert("Please enter a valid year for Age of House.");
				oForm.AgeOfHouse.focus();
				return
			}
	}

	oForm.submit()
}

function isInteger (s)

{   var i;

    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.

    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}
function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}

function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}