function addMatch()
{
	if($('e_date').value == ''){alert('Please, enter the match date');return false;}
	if($('e_date').value!='' && !_IsDate($('e_date').value, 'mmddyyyy', '-')){alert('Incorrect Match Date');return false;}
	if($('e_time').value == ''){alert('Please, enter the start time of the match');return false;}
	if($('e_tteam1').value=='' || $('e_tteam1_id').value != $('e_tteam1').value){alert('Please, enter the name of the first team');return false;}
	if($('e_tteam2').value=='' || $('e_tteam2_id').value != $('e_tteam2').value){alert('Please, enter the name of the second team');return false;}
//	if($('e_goals1').value == ''){alert('Please, enter the score for the first team');return false;}
//	if($('e_goals2').value == ''){alert('Please, enter the score for the second team');return false;}
	if($('e_tstadium').value=='' || $('e_tstadium_id').value != $('e_tstadium').value){alert('Please, enter the name of the stadium');return false;}
//SACO POR AHORA, VOLVER	if($('turing').value == ''){alert('Incorrect Code');reloadCaptcha();return false;}

	return true;
}

function editMatch()
{
	if($('e_date').value == ''){alert('Please, enter the match date');return false;}
	if($('e_date').value!='' && !_IsDate($('e_date').value, 'mmddyyyy', '-')){alert('Incorrect Match Date');return false;}
	if($('e_time').value == ''){alert('Please, enter the start time of the match');return false;}
	if($('e_tteam1').value=='' || $('e_tteam1_id').value != $('e_tteam1').value){alert('Please, enter the name of the first team');return false;}
	if($('e_tteam2').value=='' || $('e_tteam2_id').value != $('e_tteam2').value){alert('Please, enter the name of the second team');return false;}
//	if($('e_goals1').value == ''){alert('Please, enter the score for the first team');return false;}
//	if($('e_goals2').value == ''){alert('Please, enter the score for the second team');return false;}
	if($('e_tstadium').value=='' || $('e_tstadium_id').value != $('e_tstadium').value){alert('Please, enter the name of the stadium');return false;}
//	if($('turing').value == ''){alert('Incorrect Code');reloadCaptcha();return false;}

	return true;
}
