

function ValidateFrmAddEventPublic(F)
{
    if ( F.CategoryID[F.CategoryID.selectedIndex].value == '' )
        {
        alert("Please select a category for this event.");
        F.CategoryID.focus();
        }
    else
    if ( F.ItemDesc.value.length > 7999 )
        {
        alert("Full Event Description is too long.  Please limit to 8000 characters.");
        F.ItemDesc.focus();
        }
    else
	if( IsEmpty(F.ItemName) )
        {
        alert('Please select a name for this event.');
        F.ItemName.focus();
        }
	else
    if( IsEmpty(F.ItemDescShort) )
        {
        alert('Please give a short description for this event.');
        F.ItemDescShort.focus();
        }
	else
    if( IsEmpty(F.ItemPrice) )
        {
        alert('Please enter a price for this event.');
        F.ItemPrice.focus();
        }
	else
    if( IsEmpty(F.EventStartDate) || !IsUSMDYDate(F.EventStartDate))
        {
        alert('Please enter a start date for this event.\n[Format: MM/DD/YYYY]');
        F.EventStartDate.focus();
        }
	else
    if( IsEmpty(F.EventEndDate) || !IsUSMDYDate(F.EventEndDate) )
        {
        alert('Please enter an end date for this event.\n[Format: MM/DD/YYYY]');
        F.EventEndDate.focus();
        }
	else
    if( IsEmpty(F.EventLocation) )
        {
        alert('Please enter a location for this event.');
        F.EventLocation.focus();
        }
	else
	if ( F.lstGeographicArea[F.lstGeographicArea.selectedIndex].value == '' )
        {
        alert("Please select a geographic area for this event.");
        F.lstGeographicArea.focus();
        }
    else
	if( !F.chkEventAllDay.checked && IsEmpty(F.EventStartTime) )
        {
        alert('Please enter a Start Time or select All Day Event.');
        F.lstStartHour.focus();
        }
    else
    if( (F.lstEndHour.selectedIndex > 0 && F.lstEndMinutes.selectedIndex > 0 && F.lstEndAmPm.selectedIndex < 1) ||
        (F.lstEndHour.selectedIndex > 0 && F.lstEndMinutes.selectedIndex < 1 && F.lstEndAmPm.selectedIndex > 0) ||
        (F.lstEndHour.selectedIndex > 0 && F.lstEndMinutes.selectedIndex < 1 && F.lstEndAmPm.selectedIndex < 1) ||
        (F.lstEndHour.selectedIndex < 1 && F.lstEndMinutes.selectedIndex > 0 && F.lstEndAmPm.selectedIndex > 0) ||
        (F.lstEndHour.selectedIndex < 1 && F.lstEndMinutes.selectedIndex > 0 && F.lstEndAmPm.selectedIndex < 1) )
        {
        alert('Enter a complete ending time (hours, minutes, AM/PM), or \nselect \'..\' in all ending time items if there is no ending time.');
        F.lstEndHour.focus();
        }
	else
	if( CheckFilenameChars(F.ImageFileA) )
        {
        alert('The image file name may contain only letters, numbers, and dashes.');
        F.ImageFileA.focus();
        }
	else
	if( CheckFilenameChars(F.ImageFileB) )
        {
        alert('The image file name may contain only letters, numbers, and dashes.');
        F.ImageFileB.focus();
        }
	else
    if( IsEmpty(F.ContributorName) )
        {
        alert('Please enter your name.');
        F.ContributorName.focus();
        }
	else
    if( ! IsEmail(F.ContributorEmail) )
        {
        alert('Please enter your e-mail address.');
        F.ContributorEmail.focus();
        }
	else
    if( IsEmpty(F.ContributorOrganization) )
        {
        alert('Please enter your organization\'s name or URL.');
        F.ContributorOrganization.focus();
        }
	else
        return( true );
    
    return( false );
}