function SetButtonStatus(target, status){
	document.getElementById(target).disabled = status;
}

function SetButtonValue(target, value){
	document.getElementById(target).disabled = status;
}

function EnableAttourneySection(){
	SetButtonStatus('attourneyname', false);
	SetButtonStatus('attourneyphone', false);
}

function DisableAttourneySection(){
	SetButtonStatus('attourneyname', '');
	SetButtonStatus('attourneyphone', '');
	SetButtonStatus('attourneyname', true);
	SetButtonStatus('attourneyphone', true);
}

function GetBestContact(){
	for (var i=0; i < document.frmapplication.BestContact.length; i++) {
	   if (document.frmapplication.BestContact[i].checked) {
		  return document.frmapplication.BestContact[i].value;
	   }
	}
	return "";
}
