function ValidateForm(MyForm)
{
    var szTest              = new String();
    var szSubTest           = new String();
    var szErrMsg            = new String();
    var nCnt                = new Number();
    var bFocusSet           = new Boolean();
    var bPhoneNumberDay     = new Boolean();
    var bPhoneNumberNite    = new Boolean();

    nCnt                = 1;
    bFocusSet           = false;
    bPhoneNumberDay     = false;
    bPhoneNumberNite    = false;
    szTest              = "";
    szSubTest           = "";
    szErrMsg            = "";

    with(MyForm)
    {
        szTest = name_first.value;
        if(!szTest.length)
        {
            szErrMsg = nCnt + ". First Name\n";
            bFocusSet = true;
            name_first.focus();
            nCnt++;
        }

        szTest = name_middle.value;
        szTest = name_last.value;
        if(!szTest.length)
        {
            szErrMsg += nCnt + ". Last Name\n";
            if(!bFocusSet)
            {
                bFocusSet = true;
                name_last.focus();
            }
            nCnt++;
        }

        szTest = Address1.value;
        if(szTest.length)
        {
            szTest = City.value;
            if(!szTest.length)
            {
                szErrMsg += nCnt + ". Your City\n";
                if(!bFocusSet)
                {
                    bFocusSet = true;
                    City.focus();
                }
                nCnt++;
            }

            szTest = State.value;
            if(!szTest.length)
            {
                szErrMsg += nCnt + ". Your State\n";
                if(!bFocusSet)
                {
                    bFocusSet = true;
                    State.focus();
                }
                nCnt++;
            }

            szTest = Zip.value;
            if(!szTest.length)
            {
                szErrMsg += nCnt + ". Your Postal Code\n";
                if(!bFocusSet)
                {
                    bFocusSet = true;
                    Zip.focus();
                }
                nCnt++;
            }

            szTest = Country.value;
            if(!szTest.length)
            {
                szErrMsg += nCnt + ". Your Country\n";
                if(!bFocusSet)
                {
                    bFocusSet = true;
                    Country.focus();
                }
                nCnt++;
            }
        }

        szSubTest = DayAreaCode.value;
        szTest = DayPhone.value;
        if(szTest.length && !szSubTest.length)
        {
            szErrMsg += nCnt + ". Day Phone Area Code\n";
            if(!bFocusSet)
            {
                bFocusSet = true;
                DayAreaCode.focus();
            }
            nCnt++;
        }

        if(szTest.length && szSubTest.length)
            bPhoneNumberDay = true;

        szSubTest = NiteAreaCode.value;
        szTest = NitePhone.value;
        if(szTest.length && !szSubTest.length)
        {
            szErrMsg += nCnt + ". Night Phone Area Code\n";
            if(!bFocusSet)
            {
                bFocusSet = true;
                NiteAreaCode.focus();
            }
            nCnt++;
        }

        if(szTest.length && szSubTest.length)
            bPhoneNumberNite = true;

        if(!bPhoneNumberDay && !bPhoneNumberNite)
        {
            szErrMsg += nCnt + ". Provide at least one phone number\n";
            if(!bFocusSet)
            {
                bFocusSet = true;
                DayAreaCode.focus();
            }
            nCnt++;

        }

        szTest = EMail.value;
        if(!szTest.length)
        {
            szErrMsg += nCnt + ". Email Address\n";
            if(!bFocusSet)
            {
                bFocusSet = true;
                EMail.focus();
            }
            nCnt++;
        }

        szTest = Fish_Date.value;
        if(!szTest.length)
        {
            szErrMsg += nCnt + ". Select a fishing date\n";
            nCnt++;
        }

/*
        szTest = YourMessage.value;
        if(!szTest.length)
        {
            szErrMsg += nCnt + ". Reservation details";
            if(!bFocusSet)
            {
                bFocusSet = true;
                YourMessage.focus();
            }
            nCnt++
        }
*/
        if(nCnt > 1)
        {
            alert("Please fill out the following:\n\n" + szErrMsg);
            return false;
        }
        else
        {
            MyState.value=1
            return true;
        }
    }
}
function ClearForm(MyForm)
{
    //document.location.url="reservations.asp";
    with(MyForm)
    {

        MyState.value=0;
        submit();
        return;

        name_first.value = "";
        name_middle.value = "";
        name_last.value = "";
        Address1.value = "";
        Address2.value = "";
        City.value = "";
        State.value = "";
        Zip.value = "";
        Country.value = "USA";
        DayAreaCode.value = "";
        DayPhone.value = "";
        NiteAreaCode.value = "";
        NitePhone.value = "";
        EMail.value = "";
        YourMessage.value = "";
    }
}