function validate()
{
    var s="";
    if ( document.lillylynn.name.value=="" )
        {
            s = s+"<li>Please provide your name.</li>";
        }
    if ( document.lillylynn.email.value=="" )
	{
            s = s+"<li>Please provide an email address.</li>";
        }
    if ( document.lillylynn.event.value=="" )
        {
            s = s+"<li>Please provide your event type.</li>";
        }
    if ( document.lillylynn.event.value=="Other" )
        {
    	     if ( document.lillylynn.otherevent.value=="" )
        	{
            		s = s+"<li>Please provide your event type.</li>";
        	}
	}
    if (s=="")
    {
        document.lillylynn.submit()
    }
    else
    {
        msg=window.open("validate.php","Error","scrollbars=no,width=400,height=300");
        msg.document.write("<p><strong>Oops! The following information is needed:</strong></p><ul>"+s+"</ul>");
        msg.document.write("<f"+"orm><p align=\"center\">Please enter the missing information and try again.</p>");
        msg.document.write("<p align=\"center\"><input type=\"BUTTON\" value=\"Close\" onclick=\"self.close()\"></p></for"+"m>");
    }
    return false;
}