//<!--
//function showHideEvent(id)
//	{							
//		<cfloop index="i" from="1" to="#pageLinks#" step="1">
//			<cfoutput>
//				changecss('.group_#i#','display','none');
//				document.getElementById('pageLink_#i#').style.fontWeight = 'normal';
//			</cfoutput>
//		</cfloop>
//		changecss('.group_' + id,'display','block');
//		document.getElementById('pageLink_' + id).style.fontWeight = 'bold';
//	}-->
//function changecss(theClass,element,value) 
//	{
//		var cssRules;
//		if (document.all) 
//			{
//				cssRules = 'rules';
//			}
//		else if (document.getElementById) 
//			{
//				cssRules = 'cssRules';
//			}
//		for (var S = 0; S < document.styleSheets.length; S++)
//			{
//				for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) 
//					{
//						if (document.styleSheets[S][cssRules][R].selectorText == theClass) 
//							{
//								document.styleSheets[S][cssRules][R].style[element] = value;
//							}
//					}
//			}	
//	}

function showHideEvent(id)
	{
		document.getElementById('searchForm_Residential').style.display = 'none';
		document.getElementById('searchForm_Commercial').style.display = 'none';
		document.getElementById('searchForm_Lots').style.display = 'none';
		document.getElementById('searchForm_Farm').style.display = 'none';
		document.getElementById('searchForm_MultiFamily').style.display = 'none';
		
		document.getElementById('tblSearch').style.width = '795px';
		document.getElementById('tblSearch_Options').style.width = '210px';
		document.getElementById('tblSearch_Form').style.width = '585px';
		
		document.getElementById(id).style.display = 'block';			
	}
	
function showHideItem(id)
			{				
				if (document.getElementById(id).style.display == 'none')
				{
					document.getElementById(id).style.display = 'block';
				}
				else
				{
					document.getElementById(id).style.display = 'none';
				}
				
			}

function showHideContactForm(id)
			{	
				document.getElementById('emailSalesManagerForm').style.display = 'none';
				document.getElementById('emailReloCoordForm').style.display = 'none';
				document.getElementById(id).style.display = 'block';				
			}

function move(fbox, tbox, formname) 
	{
		var arrFbox = new Array();
		var arrTbox = new Array();
		var arrLookup = new Array();
		var i;
		for (i = 0; i < tbox.options.length; i++) 
			{
				arrLookup[tbox.options[i].text] = tbox.options[i].value;
				arrTbox[i] = tbox.options[i].text;
			}

		var fLength = 0;
		var tLength = arrTbox.length;
		for(i = 0; i < fbox.options.length; i++) 
			{
				arrLookup[fbox.options[i].text] = fbox.options[i].value;
				if (fbox.options[i].selected && fbox.options[i].value != "") 
					{
						arrTbox[tLength] = fbox.options[i].text;
						tLength++;
					}
				else 
					{
						arrFbox[fLength] = fbox.options[i].text;
						fLength++;
					}
			}
		arrFbox.sort();
		arrTbox.sort();
		fbox.length = 0;
		tbox.length = 0;
		var c;
		for(c = 0; c < arrFbox.length; c++) 
			{
				var no = new Option();
				no.value = arrLookup[arrFbox[c]];
				no.text = arrFbox[c];
				fbox[c] = no;
			}
		for(c = 0; c < arrTbox.length; c++) 
			{
				var no = new Option();
				no.value = arrLookup[arrTbox[c]];
				no.text = arrTbox[c];
				tbox[c] = no;
			}
		formname.locations.value='';
		for(q = 0; q < formname.list2.length; q++) 
			{
				formname.locations.value = formname.locations.value + formname.list2[q].value + ',';
			}   
	}
		
function breakout()
	{
		if (window.top!=window.self) 
		 {
			 window.top.location="index.cfm"
		 }
	}
	
function dis_ena_submit(formName)
	{
			if(document.getElementById(formName).EULA.checked == false)
			{
					document.getElementById(formName).btnSubmit.disabled=true;
			}
			else
			{
					document.getElementById(formName).btnSubmit.disabled=false;
			}
	}
