function BGPD2006SwitchTab(tabname) {	// alert ("BGPD 2006 Switch Tab" ) ;	// clear the tabs	document.getElementById('Tab1').style.display='none';	document.getElementById('Tab2').style.display='none';	document.getElementById('Tab3').style.display='none';	document.getElementById('Tab4').style.display='none';	document.getElementById('Tab5').style.display='none';	document.getElementById('Tab6').style.display='none';	document.getElementById('Tab7').style.display='none';	document.getElementById('Tab8').style.display='none';			// alert ("Tab Name:" + tabname );			// display the correct tab   	if(tabname)	{		// Check for the special cases		document.getElementById(tabname).style.display='';	};};function HouseWatchSwitchTab(tabname) {	// alert ("House Watch Switch Tab" ) ;	// clear the tabs	document.getElementById('Tab1').style.display='none';	document.getElementById('Tab2').style.display='none';	document.getElementById('Tab3').style.display='none';	document.getElementById('Tab4').style.display='none';	document.getElementById('Tab5').style.display='none';	document.getElementById('Tab6').style.display='none';	document.getElementById('Tab7').style.display='none';	document.getElementById('Tab8').style.display='none';			// alert ("Tab Name:" + tabname );			// display the correct tab   	if(tabname)	{		// Check for the special cases		document.getElementById(tabname).style.display='';	};};function SwitchTab(tabname) {	// alert ("Switch Tab" ) ;	// clear the tabs	document.getElementById('Tab1').style.display='none';	document.getElementById('Tab2').style.display='none';	document.getElementById('Tab3').style.display='none';	document.getElementById('Tab4').style.display='none';	document.getElementById('Tab5').style.display='none';	document.getElementById('Tab6').style.display='none';	document.getElementById('Tab5Error').style.display='none';			// alert ("Tab Name:" + tabname );			// display the correct tab   	if(tabname)	{		// Check for the special cases		if (tabname == 'Tab6')		{//			alert ( "validate is next" );			if ( ValidatePage5TalentBank() )				document.getElementById(tabname).style.display='';			else			{				document.getElementById('Tab5').style.display='';				document.getElementById('Tab5Error').style.display='';			}		}		else		{			document.getElementById(tabname).style.display='';		}	};};function ValidatePage5TalentBank(){	var index;//	alert ("Validate Started");	// This is a list of all of the valid combinations	var validComs = new Array();	validComs[0] = "1"	validComs[1] = "12"	validComs[2] = "21"	validComs[3] = "123"	validComs[4] = "132"	validComs[5] = "213"	validComs[6] = "231"	validComs[7] = "312"	validComs[8] = "321"		var selectBox = document.getElementById('Com1');	com1= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com2');	com2= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com3');	com3= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com4');	com4= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com5');	com5= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com6');	com6= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com7');	com7= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com8');	com8= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com9');	com9= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com10');	com10= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com11');	com11= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com12');	com12= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com13');	com13= selectBox.options[selectBox.selectedIndex].text;	selectBox = document.getElementById('Com14');	com14= selectBox.options[selectBox.selectedIndex].text;	// This is a concatenation of all of the answers 	allComs = com1+com2+com3+com4+com5+com6+com7+com8+com9+com10	allComs =allComs+com11+com12+com13+com14	// loop through the valid answers	for (index in validComs)	{		if (validComs[index] == allComs)		{			return( true ) ;  // If there is a valid match then it is valid		} ;	};	// No valid matches were found	return( false ) ;	};function startSurveySwitchTab( form ){	var cbox=form.TSType;	var answer="none";		// Figure out what checkboxes are checked		for (var index=0;index<cbox.length;index++)	{		if(cbox[index].checked)			if(cbox[index].value=="Buffalo Grove Resident" && answer=="none")				answer="resident";			else if(cbox[index].value=="Buffalo Grove Resident")				answer="both";			else if(cbox[index].value=="Business in Buffalo Grove" && answer=="none")				answer="business";			else if(cbox[index].value=="Business in Buffalo Grove")				answer="both";			else				answer="error";	}		// alert ("Answer:" + answer );		// Set the correct field on the document; this may not be necessary	form.TSTypeHide.value=answer ;		// Call the regular Switch Tab function	if (answer=="resident" || answer=="both")		SwitchTab("Tab-R1") 	else if(answer=="business")		SwitchTab("Tab-B1") 	else		ChangeClass('.error','display','') ;	 // alert( "Before change class" ) ;			// Turn on or off the hide style		if (answer=="both")		ChangeClass('.both','display','') ;	else		ChangeClass('.both','display','none') ;			if (answer=="business" || answer=="resident")		ChangeClass('.single','display','') ;	else		ChangeClass('.single','display','none') ;	// alert( "after change class" ) ;} ;function ChangeClass(theClass,element,value) {	 var cssRules;	 for (var S = 0; S < document.styleSheets.length; S++)	{	 	for (var R = 0; R < document.styleSheets[S]['rules'].length; R++) 		{			if (document.styleSheets[S]['rules'][R].selectorText == theClass) 				document.styleSheets[S]['rules'][R].style[element] = value;		}	}}function ReturnTipText(fieldName){	var tip;	if (fieldName=='com1')		tip ='<b>50th ANNIVERSARY COMMITTEE:</b><br>'				+'Members:  Unlimited<br>'				+'Term:  February 2006-September 2008<br>'				+'Qualifications:  Must be a Buffalo Grove resident currently or have an interest in the history of Buffalo Grove.<br><br>'				+'Purpose:  To promote and encourage participation of the community in the 50th Anniversary celebration of the incorporation of the Village.';	else if(fieldName=='com2')		tip='<b>ARTS COMMISSION:</b> (Chapter 2.40 Buffalo Grove Municipal Code)<br>'			+'Members: 5 (minimum)<br>'			+'Qualifications: Applicants need not be Buffalo Grove residents.<br><br>'			+'Purpose: To review the climate of arts in the community and to recommend whether new cultural programs, activities and facilities should be created; to encourage and foster cultural and fine arts opportunities.'	else if(fieldName=='com3')		tip='<b>BOARD OF HEALTH:</b> (Chapter 2.24 Buffalo Grove Municipal Code)<br>'			+'Members: 7<br>'			+'Term: 3 Years (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Preferred references: Physician, nurse, dentist, pharmacist, sanitarian, etc.<br><br>'			+'Purpose: This committee reviews Village policies in health and sanitation.  They meet monthly to review inspection reports by the sanitarian and to make recommendations to the Village Board.'	else if(fieldName=='com4')		tip='<b>BOARD OF FIRE & POLICE COMMISSIONORS:</b> (Chapter 2.28 Buffalo Grove Municipal Code)<br>'			+'Members: 5<br>'			+'Term: 3 Years (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Experience in administration, labor relations or personnel preferred.<br><br>'			+'Purpose: Test and qualify new officer applicants and maintain eligibility lists.  Hear appeals from suspension or dismissal.'	else if(fieldName=='com5')		tip='<b>BUFFALO GROVE DAYS COMMITTEE:</b> (Chapter 2.60 Buffalo Grove Municipal Code)<br>'			+'Members: Unlimited<br>'			+'Term: 1 Year<br>'			+'Qualifications: Must be Buffalo Grove resident or merchant.<br><br>'			+'Purpose: To promote and encourage the participation of the community in the annual Buffalo Grove Days festival.'	else if(fieldName=='com6')		tip='<b>CITIZEN CORPS COUNCIL:</b> (Resolution 2005-31)<br>'			+'Members: To be determined<br>'			+'Term: To be determined<br>'			+'Qualifications: Must be Buffalo Grove resident or a member of a recognized community based organization.<br><br>'			+'Purpose: The Citizen Corps Council creates opportunities for community leaders and resident volunteers to help prepare the community for emergencies. '			+ 'The goal of the Council is to have all residents participate in making the Village a safer, stronger, and better prepared to prevent and handle threats of terrorism and disasters.'	else if(fieldName=='com7')		tip='<b>COMMUNITY BLOOD DONOR COMMISSION:</b> (Resolution #73-7)<br>'			+'Members: 8<br>'			+'Term: 1 Year (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.<br><br>'			+'Purpose: Commission meets to implement volunteer blood donor program through LifeSource.  Four community blood drives are held annually to assure blood availability for all residents who require blood transfusions.'	else if(fieldName=='com8')		tip='<b>Emergency Management Agency</b> Chapter 2.34 Buffalo Grove Municipal Code)<br>'			+'Members: 7 with coordinator<br>'			+'Term: 1, 2 or 3 Years (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Show interest in the supervision and implementation of the functions of the local ESDA organization.'	else if(fieldName=='com9')		tip='<b>FIREFIGHTER\u2019S PENSION FUND:</b> (Chapter 40, IL Compiled Statutes, Section 5/4-121)<br>'			+'Members: 5 (2 appointed; 2 elected by active participants; 1 elected by and from beneficiaries)<br>'			+'Term: 2 Years appointed members; 3 Years elected members (April 30)<br>'			+'Qualifications:  Must be a Buffalo Grove resident for appointed members.<br><br>'			+'Purpose:  Board shall have the powers and duties stated in Pension Code to control and manage the affairs of the Pension Fund.'	else if(fieldName=='com10')		tip='<b>PLAN COMMISSION:</b> (Chapter 2.46 Buffalo Grove Municipal Code)<br>'			+'Members: 9<br>'			+'Term: 3 Year3 (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Background in planning, engineering, development, and/or prior civic involvement preferred.<br><br>'			+'Purpose: The primary commission under the Board acting on annexations, zoning and subdivision questions. '			+'The Commission meets with the Village Planner, develops and updates the Comprehensive Master Plan, meets with potential developers to discuss '			+'and develop land use plans and reviews of existing land uses for conformance with the Comprehensive Master Plan.'	else if(fieldName=='com11')		tip='<b>POLICE PENSION FUND:</b> (Chapter 40, IL Compiled Statutes, Section 5/3-128)<br>'			+'Members: 5 (2 appointed; 2 elected by active participants; 1 elected by and from beneficiaries)<br>'			+'Term: 2 Years appointed members; 3 Years elected members (April 30)<br>'			+'Qualifications:  Must be a Buffalo Grove resident for appointed members.<br><br>'			+'Purpose:  Board shall have the powers and duties stated in Pension Code to control and manage the affairs of the Pension Fund.'	else if(fieldName=='com12')		tip='<b>RESIDENTS WITH DISABILITIES COMMISSION:</b> (Chapter 2.58 Buffalo Grove Municipal Code)<br>'			+'Members: 9<br>'			+'Term: 1, 2 and 3 Years (April 30)<br>'			+'Qualifications: Must be a Buffalo Grove Resident. Persons with disabilities, family members, care providers, educational/rehabilitation professionals.<br><br>'			+'Purpose: To assess the needs and concerns of citizens with disabilities and to cooperate with the Village government and all other governments in the promotion of the cause of persons with disabilities.'	else if(fieldName=='com13')		tip='<b>ELECTRICAL COMMISSION:</b> (Chapter 2.32 Buffalo Grove Municipal Code)<br>'			+'Members: 6<br>'			+'Term: 3 Years (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Experience as electrical contractor, journeyman, testing laboratory representative, or a public utility representative.<br><br>'			+'Purpose: Commission recommends (1) safe and practical standards and specifications for the installation, alteration, and use of electrical equipment systems; '			+'(2) reasonable rules and regulations governing the issuance of permits; (3) reasonable fees to be paid for the inspection by the Inspection Department of all electrical equipment installed.'	else if(fieldName=='com14')		tip='<b>ZONING BOARD OF APPEALS:</b> (Chapter 2.44 Buffalo Grove Municipal Code)<br>'			+'Members: 9<br>'			+'Term: 3 Years (April 30)<br>'			+'Qualifications: Must be Buffalo Grove resident.  Experience in real estate and/or land planning preferred.<br><br>'			+'Purpose: Hear/review requests for variation/appeals to decisions made by Building Commissioner.'			return(tip);}