function openWindow(url)
{
	window.open(url,"","height=400,width=495,left=140,top=40,screenX=140,screenY=40,scrollbars=1'");
}

function openUploadWindow(url)
{
	window.open(url,"","height=500,width=600,left=140,top=40,screenX=140,screenY=40,scrollbars=1'");
}

function confirmRSVPForm(form)
      {
         var passed = false;
         var strEmptyFields = "";

        if (form.txtGuests.value == "")
        {
            strEmptyFields = " - Guest Name(s)\n";
        }

        if (form.txtMessage.value == "")
        {
            strEmptyFields = strEmptyFields + " - Message\n";
        }

        if (form.txtSpecialRequirements.value == "")
        {
            strEmptyFields = strEmptyFields + " - Special Requirements";
        }

        if (strEmptyFields != "")
        {
            passed = confirm("You have not entered values in the following field(s):\n\n" + strEmptyFields + "\n\nThe field(s) listed are not required\n\nIf you are sure you do not wish to enter values for the field(s) click 'OK' to continue.\nIf you would like to complete the field(s) click 'Cancel' to return to the form.");
        }
        else
        {
            passed = true;
        }
         return passed;
      }