<!--				
function SpecialCheck1()
{	//if ANR Program Area is checked, an ANR Specialty must be checked
	//alert("in specialcheck1");
	var msg_addition;
	if (window.document.getElementById('anr').checked == true)	//ie if ANR is checked
	{
		//alert(window.document.getElementById('anr').name + "is true");
		if (window.document.getElementById('animalsci').checked != true && window.document.getElementById('cropsoilsci').checked != true &&
			window.document.getElementById('dairysci').checked != true && 
			window.document.getElementById('envirsci').checked != true && window.document.getElementById('farmbus').checked != true &&
			window.document.getElementById('envirhort').checked != true && window.document.getElementById('envirhort').checked != true &&
			window.document.getElementById('natrlres').checked != true && window.document.getElementById('tobacco').checked != true &&
			window.document.getElementById('equine').checked != true)
		{
			//alert(form.elements[i].name + ";" + "i is " + i);
			msg_addition = window.document.getElementById('s1_anrspec').value	//add the value (error string) of the hidden field to the message
		}
		else
		{
			msg_addition = ""
		}
	}
	else
	{
		msg_addition = ""
	}
	//alert ("SpecialCheck1 is getting ready to return " + msg_addition);
	return msg_addition;
}

function SpecialCheck2(form, x, fieldname, i, first)
{	//TODO: fix this when FCS specialties are added
	//if FCS Program Area is checked, an FCS specialty must be checked
	var msg_addition;
	if (window.document.getElementById('fcs').checked == true)	//ie if FCS is checked
	{
		if (window.document.getElementById('anr').checked != true && window.document.getElementById('anr').checked != true &&
			window.document.getElementById('anr').checked != true)
		{
			//alert(form.elements[i].name + ";" + "i is " + i);
			window.document.getElementById('s1_fcsspec').checked	//add the value (error string) of the hidden field to the message
		}
		else
		{
			msg_addition = ""
		}
	}
	else
	{
		msg_addition = ""
	}
	//alert ("SpecialCheck2 is getting ready to return " + msg_addition);
	return msg_addition;
}

function SpecialCheck3(form, x, fieldname, i, first)
{	//there are no write-in titles at this time, so this is not called; TODO: update it to refer to elements by ID
	//if write-in titles are given, no radio buttons should be selected
	var ProgAreaIndex = GetIndex(form, "ProgArea")
	var ANRSpecIndex = GetIndex(form, "ANRSpec")
	var FCSSpecIndex = GetIndex(form, "FCSSpec")
	var UCIndex = GetIndex(form, "UC")
	var Title1Index = GetIndex(form, "Title1")
	var Title2Index = GetIndex(form, "Title2")
/*
	if ((form.elements[Title1Index].value != "" || form.elements[Title2Index].value != "") &&
		(form.elements[ANRSpecIndex].checked == true || form.elements[ANRSpecIndex + 1].checked == true &&
			form.elements[ANRSpecIndex + 2].checked == true || 
			form.elements[ANRSpecIndex + 3].checked == true || form.elements[ANRSpecIndex + 4].checked == true ||
			form.elements[ANRSpecIndex + 5].checked == true || form.elements[ANRSpecIndex + 6].checked == true ||
			form.elements[ANRSpecIndex + 7].checked == true || form.elements[ANRSpecIndex + 8].checked == true ||
			form.elements[FCSSpecIndex].checked == true || form.elements[FCSSpecIndex + 1].checked == true ||
			form.elements[FCSSpecIndex + 2].checked == true || form.elements[ProgAreaIndex].checked == true ||
			form.elements[UCIndex].checked == true
		))
	{
		msg_addition = form.elements[i].value		
	}
	else */
		msg_addition = ""
	return msg_addition;
}

function SpecialCheck4(form, x, fieldname, i, first)
{	//a title is required--either an agent or an 'other' title must be selected

	/*if title1 is blank && title2 is blank &&
	  no ANR specialty is checked &&
	  4H ext agent isn't checked && FCS ext agent isn't checked && FNH ext agent isn't checked &&
	  no other title is checked
	*/
	//alert(window.document.getElementById('pgmasstfnp').checked)
	
	/*window.document.getElementById('ait').checked != true && window.document.getElementById('distadminasst').checked != true && 
	window.document.getElementById('stateadminasst').checked != true && 
	window.document.getElementById('unitadminasst').checked != true && window.document.getElementById('unitsupport').checked != true && */
	if (window.document.getElementById('fourh').checked != true && window.document.getElementById('anr').checked != true &&
			window.document.getElementById('fcs').checked != true && 
			window.document.getElementById('arecdirector').checked != true && window.document.getElementById('areaescoord').checked != true &&
			window.document.getElementById('depthead').checked != true &&
			window.document.getElementById('dd').checked != true &&
			window.document.getElementById('distpgmldr').checked != true && 
			window.document.getElementById('extenspec').checked != true && window.document.getElementById('centerdir').checked != true &&
			window.document.getElementById('centerpgmdir').checked != true && window.document.getElementById('pgmassoc').checked != true && 
			window.document.getElementById('pgmasstfnp').checked != true && 
			window.document.getElementById('pgmasstanr').checked != true && window.document.getElementById('pgmasstfcs').checked != true &&
			window.document.getElementById('pgmasst4h').checked != true && window.document.getElementById('pgmasstother').checked != true && 
			window.document.getElementById('resassoc').checked != true && 			
			window.document.getElementById('other').checked != true
		)
	{
		msg_addition = window.document.getElementById('s4_title2').value		
	}
	else
		msg_addition = "" 
	return msg_addition;
}

//function SpecialCheck5(form, LastIndex, fieldname, CurIndex, FirstIndex)
function SpecialCheck5(form, x, fieldname, i, first)
{
	//alert (window.document.getElementById('district').name)
	//var DistrictIndex = GetIndex(form, "District")
	//alert ("district " + form.elements[DistrictIndex].selectedIndex)
	var msg_addition;

	if (window.document.getElementById('district').selectedIndex == -1)
	{
		msg_addition = window.document.getElementById('s5_district').value		
		//msg_addition = "s5 test"
	}
	else
		msg_addition = ""
	return msg_addition;
}

function SpecialCheck6(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
	var msg_addition;
	//alert("in special check 6");
	if (window.document.getElementById('extenspec').checked == true && window.document.getElementById('specialtytypein').value == "")
	{
		msg_addition = window.document.getElementById('s6__specialtytypein').value
	}
	else
	{
		msg_addition = "";
	}
	return msg_addition;

}

function SpecialCheck7(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
	//alert("s7 begin");
	var msg_addition;
	if (window.document.getElementById('pgmasstother').checked == true && window.document.getElementById('pgmasstothertypein').value == "")
	{
		msg_addition = window.document.getElementById('s7__pgmasstothertypein').value
	}
	else
	{
		msg_addition = "";
	}
	//alert("*" + msg_addition + "*");

	return msg_addition;

}

function SpecialCheck8(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
	//other type in must be filled if 'other' is selected
	var msg_addition;
	if (window.document.getElementById('other').checked == true && window.document.getElementById('othertypein').value == "")
	{
		msg_addition = window.document.getElementById('s8__othertypein').value
	}
	else
	{
		msg_addition = "";
	}
	//alert("*" + msg_addition + "*");

	return msg_addition;
	
}

function SpecialCheck9(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
}

function SpecialCheckA(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
}

function SpecialCheckB(form, LastIndex, fieldname, CurIndex, FirstIndex)
{
}

function SpecialCheckC(form, LastIndex, fieldname, CurIndex, FirstIndex)
{}


//-->
