function editPersonInfo()
{
	//if(!validate_catpcha()){return false;}
	var result = true;
	if($('tdateofbirth').value!='' && !_IsDate($('tdateofbirth').value, 'mmddyyyy', '-')){alert('Date of birth incorrect');result = false;}
	if($('tcountry').value!='' && $('tcountry_id').value != $('tcountry').value){alert('Please, choose a valid country from the list');return false;}
	if($('tteam').value!='' && $('tteam_id').value != $('tteam').value){alert('Please, choose a valid team from the list');return false;}
	if($('tnationalteam').value!='' && $('tnationalteam_id').value != $('tnationalteam').value){alert('Please, choose a valid national team from the list');return false;}
//	if($('turing').value == ''){alert('Incorrect Code');reloadCaptcha();result = false;}
	return result;
}

function editPersonCareer()
{
	var result = true;
//	if($('turing').value == ''){alert('Incorrect Code');reloadCaptcha();result = false;}
	/*if($('tname').value == ''){result = false;}
	if($('tfullname').value == ''){result = false;}
	if($('tfilename').value == ''){result = false;}*/
	return result;
}

function editPersonHonours()
{
	var result = true;
//	if($('turing').value == ''){alert('Incorrect Code');reloadCaptcha();result = false;}
	/*if($('tname').value == ''){result = false;}
	if($('tfullname').value == ''){result = false;}
	if($('tfilename').value == ''){result = false;}*/
	return result;
}

/*function edit_favorite(action)
{
	var url = "modules/person/edit_favorite.php?user=&item=&itemtype=1&action="+action;
	new Ajax.Updater('capa_favorite', url, {method: "get", evalScripts:true);
}*/
