function validate_event()
{
	var startDate = new Date(top.document.event_info.year.value,top.document.event_info.month.value-1,top.document.event_info.day.value);
	var endDate = new Date(top.document.event_info.end_year.value,top.document.event_info.end_month.value-1,top.document.event_info.end_day.value);
	var today = new Date();

	if( startDate > endDate )
	{
		alert( "Start date is after end date." );
		return false;
	}

	if( top.document.event_info.event.value == "" )
	{
		alert( "No event specified." );
		return false;
	}

	if( today > startDate )
	{
		alert( "The start date for the event is in the past." );
	}

	return true;
}

function validate_profile()
{
	if( top.document.profile_info.business.value == "" )
	{
		alert( "No business name specified." );
		return false;
	}

	return true;
}

function validate_catagory()
{
	if( top.document.catagory_info.catagory.value == "" )
	{
		alert( "No catagory specified" );
		return false;
	}
	return true;
}

function validate_photo()
{
	if( top.document.photo_info.catagory.value < 0 )
	{
		alert( "No catagory specified" );
		return false;
	}

	if( top.document.photo_info.image.value == "" )
	{
		alert( "No photo specified" );
		return false;
	}

	return true;
}

function validate_issue()
{
	if( top.document.issue_info.issue.value == "" )
	{
		alert( "No issue specified" );
		return false;
	}
	return true;
}

function validate_article()
{
	if( top.document.article_info.title.value == "" )
	{
		alert( "No title specified" );
		return false;
	}
	if( top.document.article_info.content.value == "" )
	{
		alert( "No content specified" );
		return false;
	}
	return true;
}