<script language="JavaScript" type="text/javascript">

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function clearSearchTypes(){
 stuff = document.getElementsByName('SEARCHTYPES')
 if( stuff != undefined){
  for(x=0;x<stuff.length;x++){
   e = stuff[x]
   if(e.type == 'hidden'){ e.disabled =true}
   if(e.type == 'radio' &&  ! e.checked ){e.disabled =true}
  }
 }
}


function removeNotNeeded(name){
  clearSearchTypes();
  stuff = document.getElementsByName(name);
  for(i=0;i<stuff.length;i++){
   stuff[i].disabled = true
  }
  stuff = document.getElementsByName(name);  
  image = document.getElementById('button2');
  image.disabled = true;
  return true
}



function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}

// refFile() identifies current file for reference
function refFile(){
	document.write ("(")
	document.write (location.href)
	document.write (")")
}

//emailRef() takes the current file location to update the email this page link

function emailRef(){
	document.write ("<a href='mailto:?Subject=Thought%20this%20would%20interest%20you&Body=The%20News%20Release%20can%20be%20found%20at%20%3C"+location.href+"%3E!%0A%0AThis%20message%20is%20from%20the%20National%20Agricultural%20Library.%20The%20above%20link%20will%20take%20you%20to%20a%20page%20within%20the%20NAL%27s%20site%20(note%20the%20%22.gov%22%20Web%20address),%20or%20you%20may%20type%20"
+location.href+"%20into%20your%20browser.%0A'><strong>E-mail this News Release</strong></a><br>If you send this link to someone else, the FTC will not collect any personal information about you or the recipient.")

}

</script>