function DisableDeclineReason()
{
	//  User clicks "Yes", so we need to disable/reset the "Decline Reason" box
	document.getElementById('AwardDeclineReason').disabled=true;  //  disable the field
	document.getElementById('AwardDeclineReason').value='';  //  clear the contents of the field
	document.getElementById('AwardDeclineReason').style.backgroundColor='#ccc';  //  make the background grey
	document.getElementById('AwardDeclineReason').style.opacity='0.5';
}

function EnableDeclineReason()
{
	//  User clicks "No", so we need to enable the "Decline Reason" box
	document.getElementById('AwardDeclineReason').disabled=false;  //  enable the field
	document.getElementById('AwardDeclineReason').style.backgroundColor='#fff';  //  clear the background color
	document.getElementById('AwardDeclineReason').style.opacity='1';
	AwardDeclineReason.focus();  //  set the cursor focus here
}

function validate_required(field,alerttxt)
{
	with (field)
	{
		if (value==null||value=="")
		{
			alert(alerttxt);return false;
		}
		else
		{
			return true;
		}
	}
}


function validate_form(thisform)
{
	with (thisform)
	{
//		if (validate_radio(AwardAcceptance,"You must select \"Yes\" or \"No\" to accept or decline the award.")==false)
//					{return false;}
//		if (!validate_radio(thisform.AwardAcceptance))
//					{alert("You must select \"Yes\" or \"No\" to accept or decline the award.");}
//		SR (2010-05-13):  I cannot get validation to work on the radio buttons.
		if (validate_required(UserFirstName,"You must enter your first name.")==false)
			{UserFirstName.focus();return false;}
		if (validate_required(UserLastName,"You must enter your last name.")==false)
			{UserLastName.focus();return false;}
		if (validate_required(UserTitle,"You must enter your title.")==false)
			{UserTitle.focus();return false;}
		if (validate_required(AwardAcceptanceInitials,"You must enter your initials.")==false)
			{AwardAcceptanceInitials.focus();return false;}
	}
}

