function CheckContribute(form)
{
	var result = "";
	if(!DataCheck(form.title.value))
	{
		result += "御堂、タイトルを入力して\r\n";
	}
	if(!DataCheck(form.userName.value))
	{
		result += "御堂、名前を忘れてない？\r\n";
	}
	if(!DataCheck(form.mail.value))
	{
		result += "御堂、メールアドレスは持ってるわよね？\r\n";
	}else
	{
		if(!MailCheck(form.mail.value))
		{
			result += "御堂、メールアドレスが間違っている\r\n";
		}
	}
	if(!DataCheck(form.fileContent.value))
	{
		result += "御堂、アップロードするファイルが指定されていない\r\n";
	}
	
	if(0 != result.length)
	{
		jAlert(result,"警告");
		return false;
	}
	return true;
}
function DataCheck(str)
{
	str = str.replace(/^\s+|\s+$/g,"");
	if(0 != str.length)
	{
		return true;
	}
	return false;
}
function MailCheck(str)
{
	if(str.match(/[!#-9A-~]+@[a-z0-9]+\.+[a-z0-9]+/i)){
		return true;
	}
	return false;
}
function CheckVote(form)
{
	var result = "";
	if(!DataCheck(form.comment.value))
	{
		result += "御堂、コメントを入力して\r\n";
		jAlert(result,"警告");
		return false;
	}
	return true;
	
}
