		
function fillCategory(){ 

 	// this function is used to fill the category list on load	
	addOption(document.frmIndexMain.chsState,"Arkansas","Arkansas");
	addOption(document.frmIndexMain.chsState,"Delaware","Delaware");
	addOption(document.frmIndexMain.chsState,"Florida","Florida");
	addOption(document.frmIndexMain.chsState,"Idaho","Idaho");
	addOption(document.frmIndexMain.chsState,"Kentucky","Kentucky");
	addOption(document.frmIndexMain.chsState,"Maryland","Maryland");
	addOption(document.frmIndexMain.chsState,"Minnesota","Minnesota");
	addOption(document.frmIndexMain.chsState,"Montana","Montana");
	addOption(document.frmIndexMain.chsState,"Nevada","Nevada");
	addOption(document.frmIndexMain.chsState,"New Mexico","New Mexico");
	addOption(document.frmIndexMain.chsState,"North Carolina","North Carolina");
	addOption(document.frmIndexMain.chsState,"North Dakota","North Dakota");
	addOption(document.frmIndexMain.chsState,"Oregon","Oregon");
	addOption(document.frmIndexMain.chsState,"South Carolina","South Carolina");
	addOption(document.frmIndexMain.chsState,"South Dakota","South Dakota");
	addOption(document.frmIndexMain.chsState,"Tennessee","Tennessee");
	addOption(document.frmIndexMain.chsState,"Texas","Texas");
	addOption(document.frmIndexMain.chsState,"Utah","Utah");
	addOption(document.frmIndexMain.chsState,"Wisconsin","Wisconsin");
}

function fillStateInfo(){
// ON selection of category this function will work
	document.getElementById('stateInfo').innerHTML = "";

	
	switch( document.frmIndexMain.chsState.value ) {

		case "Arkansas":

			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Arkansas:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers & Pump Installers may receive credit for 3 online CE hours annually. A total of 6 CE hours are required annually.</p>\n" +
			"<li><p class=\"left\">In addition, drillers and pump installers may carry over 3 CE hours from one year to the next year.</p>\n" +
			"<p class=\"left\">Example:  If a driller or pump installer completes 6 online CE hours, 3 will be applied toward fulfilling the current year's CE hour requirements, and 3 will be applied toward fulfilling the next year's CE hour requirements!</p>\n" +
			"</ul>";
			break;  
		case "Delaware":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Delaware:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 4 online CE hours annually.  A total of 4 CE hours are required annually.</p>\n" +
			"</ul>";
			break;  
		case "Florida":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Florida:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 3 online CE hours each license renewal period. A total of 12 CE hours are required each license renewal period.</p>\n" +
			"</ul>";
			break; 
		case "Idaho":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Idaho:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 16 online CE hours every 2 years. A total of 16 CE hours are required every 2 years.</p>\n" +
			"</ul>";
			break; 
		case "Kentucky":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Kentucky:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 3 online CE hours annually.  A total of 3 CE hours are required annually.</p>\n" +
			"<li><p class=\"left\">Drillers are required to call the Kentucky Division of Water (502 564 3410) to obtain formal permission before completing online CE courses.</p>\n" +
			"</ul>";
			break; 
		case "Maryland":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Maryland:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 20 online CE hours each license renewal period. A total of 20 CE hours are required each license renewal period.</p>\n" +
			"</ul>";
			break; 
		case "Minnesota":

			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Minnesota:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers and Pump Installers may receive credit for 6 online CE hours annually.  A total of 6 CE hours are required annually.</p>\n" +
			"</ul>";
			break; 
		case "Montana":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Montana:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Montana Well Drillers and Monitoring Well Constructors may receive credit for 4 Online CE hours each licensing year.</p>\n" +
			"<li><p class=\"left\">Montana Water Well drillers and Monitoring Well Constructors are required to obtain 4 hours of continuing education each licensing year, July 1 - June 30.</p>\n" +
			"<li><p class=\"left\">Montana licenses are good for a one year period of time, July 1 - June 30</p>\n" +
			"<li><p class=\"left\">Hours cannot be carried over to the next license year.</p>\n" + 
			"</ul>";
			break;
		case "Nevada":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Nevada:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Nevada Division of Water Resources accepts online completion of all ISWD continuing education course <b>except<b> the Texas Statutes and Rules course.</p>\n" +
			"</ul>";
			break; 
		case "New Mexico":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">New Mexico:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for two online CE hours every 2 years.</p>\n" +
			"<li><p class=\"left\">A total of 8 CE hours are required every two years.</p>\n" +
			"</ul>";
			break; 
		case "North Carolina":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">North Carolina:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 8 online PDHs annually. A total of 8 PDHs are required annually.</p>\n" +
			"<li><p class=\"left\">In addition, drillers may carry over 8 online credits from one year to the next year.</p>\n" +
			"<p class=\"left\">Example:  If a driller completes 16 online credits, 8 will fulfill the current year's PDH requirements, and 8 will be carried over to fulfill the next year's PDH requirements!</p>\n" +
			"</ul>";
			break; 
		case "North Dakota":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">North Dakota:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Contractors may receive credit for 6 online CE hours every 2 year cycle.  A total of 6 CE hours are required every 2 year cycle.</p>\n" +
			"</ul>";
			break; 
		case "Oregon":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Oregon:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 14 online CE hours every 2 years.  A total of 14 CE hours are required every two years.</p>\n" +
			"</ul>";
			break; 
		case "Tennessee":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Tennessee:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 5 online CE hours annually. A total of 5 CE hours are required annually.</p>\n" +
			"</ul>";
			break; 
		case "Texas":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Texas:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 4 online CE hours annually. A total of 4 CE hours are required annually.</p>\n" +
			"</ul>";
			break; 
		case "South Carolina":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">South Carolina:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 12 online CE hours every two years.  A total of 12 CE hours are required every two years.</p>\n" +
			"</ul>";
			break; 
		case "South Dakota":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">South Dakota:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers and Pump Installers may receive credit for 4 online CE hours annually.   A total of 4 CE hours are required annually.</p>\n" +
			"<li><p class=\"left\">In addition, drillers and pump installers may carry over 4 online CE hours from one year to the next.</p>\n" +
			"<p class=\"left\">Example:  If a driller or pump installer completes 8 online credits, 4 will be applied toward fulfilling the current year's CE requirements and 4 will be applied toward fulfilling the next year's CE requirements</p>\n" +
			"</ul>";
			break; 
		case "Utah":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Utah:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Drillers may receive credit for 12 online CE hours every 2 years.  A total of 12 CE hours are required every 2 years.</p>\n" +
			"</ul>";
			break; 
		case "Wisconsin":
			document.getElementById('stateInfo').innerHTML = "<p class=\"left\"><b class=\"left\">Wisconsin:</b></p>" + "<ul>\n" +
			"<li><p class=\"left\">Pump Installers and Drillers may receive credit for 2 online CE hours annually. A total of 6 CE hours are required annually.</p>\n" +
			"</ul>";
			break; 
		default:                     // If all else fails...
			document.getElementById('stateInfo').innerHTML = "";
			break;                   // stop here
	} 



}

function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}
