// JavaScript Document

//This function controls display of organization information elements

function hideshow(ObjId){	
	
	//check whether this function works
	if (!document.getElementById) {
		alert("This part of the form requires javascript");
	return
	}
	//set variables for divs to be hidden/made visible
	var orgName = document.getElementById('name');
	var unitInfo = document.getElementById('unit_info');
	var council = document.getElementById('council_choice');
	
	//Return all divs to hidden
	orgName.style.display = "none";
	unitInfo.style.display = "none";
	council.style.display = "none";
	
	//Turn on the divs needed.
	switch(ObjId) {
		case "radio":
			orgName.style.display="";
			break
		case "radio1":
			orgName.style.display="";
			break
		case "radio2":
			orgName.style.display="";
			break
		case "radio4":
			unitInfo.style.display="";
			council.style.display="";
			break
		case "radio5":
			unitInfo.style.display="";
			council.style.display="";
			break
		case "radio7":
			council.style.display="";
			break
	}

}

<!-- Limit the number of characters per textarea -->
<!-- Dynamic Version by: Nannette Thacker -->
<!-- http://www.shiningstar.net -->
<!-- Original by :  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Use one function for multiple text areas on a page -->
<!-- Begin
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
