function checkSubmit(myform)
        {
        var pass = true;

        for (ix = 0; ix < myform.elements.length; ix++)
                {
                if (myform.elements[ix].name == "5")
                        {
                        if (myform.elements[ix].value == "")
                                {
                                window.alert("You must enter a valid email address in order for us to send a postcard.");
                                pass = false;
                                }
                        else
                                {
                                var atcount = 0;
                                var dotcount = 0;
                                for (jx = 0; jx < myform.elements[ix].value.length; jx++)
                                        {
                                        if (myform.elements[ix].value.charAt(jx) == "@")
                                                {
                                                atcount++;
                                                }
                                        if ((myform.elements[ix].value.charAt(jx) == ".") && (atcount == 1))
                                                {
                                                dotcount++;
                                                }
                                        }
                                if ((atcount != 1) || (dotcount <= 0))
                                        {
                                        window.alert("You must enter a valid email address in order for us to send a postcard");
                                        pass = false;
                                        }
                                }
                        }
                }
        if (pass)
                {
                //window.alert("All is good.");
                myform.submit();
                }
        }
