﻿/*
9/2/09 - Alan R. Labrie
- Added the following 
	Changed Population Segments to
	1 - 4,999
	5,000 – 24,499
	2,500 – 49,999
	50,000 and over

- For Population Segments between 25,000 – 50,000 AND over 50,000 AND County or Municipality…
	Added MS Govern
	Geography: All States & Provinces 
	Population: Any segment over 25k in population
	Organization: Municipality or County Government
	Resulting Links:
		MS Govern CMS http://www.msgovern.com/products/community_management_system_overview 
		MS Govern FMS http://www.msgovern.com/products/financial_management_system_overview 
		MS Govern HRMS http://www.msgovern.com/products/human_resources_management_overview 

- Added code For Water, Gas, or Electic Utility with Population of 50,000 plus to display the following links
	Advanced Utilities
	NorthStar
	System Integrators
	InHance
	Systems and Software
		
- Changed code to display logos instead of text results
- Added Hover effect to image results
- Added TRIO to be displayed when 'ME' is selected as a State


9/3/09 - Alan R. Labrie
- Added code to display Open Window for 'PA' and County Government
*/
	function changePopulation()
	{
	   switch (document.getElementById("population").value)
	   {  
		  //Case 1:
		  
		  //Between 25,000 – 50,000 AND over 50,000 AND County or Municipality…


		  
		  
		  default:
		  //document.getElementById("change").className = "spectrum"
		  document.getElementById("change").innerHTML = "The product that best matches your selection is:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a>"
	   }
	}
	
	function changeState()
	{
	 switch (document.getElementById("state").value)
	   {
		  case "NH": case "VT":
		  document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=46'><img width='212' height='153' alt='MuniSmart' src='http://www.harrisworld.com/Public/image/MuniSmart%20Logo.jpg'></a>"
		  break;
	

		  case "ME":
		  document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a><br><a class ='highlightit' href='app.aspx?st=10101&e=leaf&leafid=49'><img alt='TRIO' src='http://www.harrisworld.com/content/v1/us/img/bottom-logo-trio-software.gif'></a>"
		  break;
		  
		  case "IL": case "MN": case "WI":
		  document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=45'><img alt='MSI' src='http://www.harrisworld.com/content/v1/us/img/bottom-logo-municipal-software.gif'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a>"
		  //document.getElementById("change").className = "yellow"
		  break;
		  
		  default:
		  document.getElementById("change").innerHTML = "The product that best matches your selection is:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a>"
	   }
	}

	function changeOrg()
	{
	 switch (document.getElementById("Organization").value)
	   {
		  case "6":
		  document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=36'><img height='47' alt='Activitek' width='212' src='http://www.harrisworld.com/Public/image/Activitek_rev.JPG'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=45'><img alt='MSI' src='http://www.harrisworld.com/content/v1/us/img/bottom-logo-municipal-software.gif'></a>"
		  break;
		  
		  default:
		  document.getElementById("change").innerHTML = "The product that best matches your selection is:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a>"

	   }
	}
	
	function changeMe() {
		if (document.mainForm.Organization.value == '6') {
			document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=36'><img height='47' alt='Activitek' width='212' src='http://www.harrisworld.com/Public/image/Activitek_rev.JPG'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=45'><img alt='MSI' src='http://www.harrisworld.com/content/v1/us/img/bottom-logo-municipal-software.gif'></a>"
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'IN') {
			OWS()
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'IL') {
			OWS() 
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'NC') {
			OWS()
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'SC') {
			OWS()
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'GA') {
			OWS()
		}
		else if (document.mainForm.Organization.value == '2' && document.mainForm.state.value == 'PA') {
			OWS()
		}

		if (document.mainForm.Organization.value == '3'  && document.mainForm.population.value == '4' ) {
			Over50k()
		}
		if	(document.mainForm.Organization.value == '4' && document.mainForm.population.value == '4' ) {
			Over50k()
		}
		if (document.mainForm.Organization.value == '5' && document.mainForm.population.value == '4' )	 {
			Over50k()
		}
		if (document.mainForm.Organization.value == '1' && document.mainForm.population.value == '3' )	 {
			Under50k()
		}
		if (document.mainForm.Organization.value == '1' && document.mainForm.population.value == '4' )	 {
			Under50k()
		}
		if (document.mainForm.Organization.value == '2' && document.mainForm.population.value == '3' )	 {
			Under50k()
		}
		if (document.mainForm.Organization.value == '2' && document.mainForm.population.value == '4' )	 {
			Under50k()
		}
		
		
		//else {
		//document.write("Not Really");
		//}
		//if (document.mainForm.state.value);
		//document.write(document.mainForm.population.value);
	}
// OWS = Open Window Software
function OWS() {
		document.getElementById("change").innerHTML = "The product that best matches your selection is:<br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=47'><img height='90' alt='Open Window Finacials' width='196' src='http://www.harrisworld.com/Public/OWF_final(3).GIF'></a><br>Open Window<br>"
}

// Under50k is a function specfically for the 25k - 50k segment that includes county government or municipal government
function Under50k() {
		document.getElementById("change").innerHTML = "The products that best match your selection are:<br><br><a class ='highlightit' href='http://www.msgovern.com/'><img src='http://www.harriscomputer.com/images/logos/MSGovern.gif'></a><br><a href='http://www.msgovern.com/products/community_management_system_overview'>MS Govern Community Management System</a><br><a href='http://www.msgovern.com/products/financial_management_system_overview'>MS Govern Financial Management System</a><br><a href='http://www.msgovern.com/products/human_resources_management_overview'>MS Govern Human Resources Management System</a><br><br><a class ='highlightit' href='/app.aspx?st=10101&e=leaf&leafid=48'><img height='51' width='187' src ='http://www.harrisworld.com/Public/image/Spectrumblue2.jpg' alt ='Spectrum'></a>"
}
// Over50k function is specifically for utilities with populations over 50k
function Over50k() {
		// Advanced Utilities, NorthStar, Systems & Sofware, InHance, System Innovators 
		// code for tables embedded in JavaScript		
		document.getElementById("change").innerHTML = "The products that best match your selection are:<table bordercolor='#384f7b' cellspacing='100' cellpadding='5' width='500' align='center' border='0' border-width='1'><tr><td> <a class ='highlightit' href='http://www.advancedutility.com'><img src='http://www.harriscomputer.com/images/logos/Advanced.gif' alt ='Advanced Utility Systems'></a></td><td><a class ='highlightit' href='http://www.harrisnorthstar.com'><img alt='NorthStar' border='0' src='http://www.harriscomputer.com/images/logos/Northstar.gif'></td><td><a class ='highlightit' href='http://www.systemsandsoftware.net'><img alt='Systems and Software' border='0' src='http://www.harriscomputer.com/images/logos/SSI.gif'>  </a></td><tr><td><a class ='highlightit' href='http://www.inhancesoftware.com'><img alt='InHance Software' border='0' src='http://www.harriscomputer.com/images/logos/InHance.gif'></a></td><td><a class ='highlightit' href='http://www.systeminnovators.com'><img alt='System Innovators' border='0' src='http://www.harriscomputer.com/images/logos/SI.gif'></a></td></table>"
		}