﻿function checkForm()
{
    msg = "";
    if (document.rsvpform.Name.value == "") msg += "Name\n";
    if (document.rsvpform.Address.value == "") msg += "Address\n";
    if (document.rsvpform.City.value == "") msg += "City\n";
    if (document.rsvpform.State.value == "") msg += "State\n";
    if (document.rsvpform.Zip.value == "") msg += "Zip\n";
    if (document.rsvpform.Phone.value == "") msg += "Phone\n";
    if (document.rsvpform.Email.value == "") msg += "Email\n";
    
    if (msg != "")
    {
        msg = "Please fill in the following fields:\n\n" + msg;
        alert(msg);
        return false;
    }
    else
        return true;    
}



var movWidth = "300";
var movHeight = "200";
var movFile = "video.wmv";
// Note: if you change the width, you'll want to
//  adjust the CSS width of the #close_video rule
// The height cannot be taller than 500px.
// Also, the control bar subtracts 45px of useable space
//  from the overall video height (500-45 = 455 actual video height).

function showVideo()
{
    videoHTML = '<object id="video" type="video/x-ms-wmv" width="' + movWidth + '" height="' + movHeight + '"' +
           'data="' + movFile + '">' +
            '<param name="movie" value="' + movFile + '" />' +
            '</object><div id="close_video"><a href="#" onclick="return hideVideo()">[close]</a></div>';
    obj = document.getElementById("home_left");
    obj.innerHTML = videoHTML;
    return false;
}
function hideVideo()
{    obj = document.getElementById("home_left");
    obj.innerHTML = "&nbsp;";
    return false;
}

