<!--
	var states = new StateArrayClass();
	var formValidator = new ValidationClass();
	
	function initilizeForm()
	{
		configureStateDropdownList(states.getLabelUSAContStatesArray(), states.getValueUSAContStatesArray())
	}
	
	function configureStateDropdownList(aLabelArray, aValueArray)
	{
		// clear the state/providence option array
		document.frmContact.states_cb.options.length = 0;

		// create an empty option array (CBE: Remove, no default)
		// document.frmGear.stateProvidence_cb.options[0] = new Option("", "");
		
		// get the current state value
		var sCurrentState = states.getCurrentSelectedStateProvince();
		// should the current item be selected
		var bSelected = false;
		

		// count the number of option elements in the select field
		// (use this number to append when adding new array items
		var iStateProvidenceCount = document.frmContact.states_cb.options.length;
		for(i=0; i < aLabelArray.length; i++) {
			// should the item be selected
			bSelected = (aValueArray[i].toString() == sCurrentState);
			// create the new item | add the original number of options to the current array position
			document.frmContact.states_cb.options[i+iStateProvidenceCount] = new Option(aLabelArray[i],aValueArray[i], bSelected, bSelected);
		}
	}
	
	function configurePhoneFields(aBoolean)
	{
		document.frmGear.phoneAreaCode_txt.disabled = aBoolean;
		document.frmGear.phonePrefix_txt.disabled = aBoolean;
		document.frmGear.phoneSuffix_txt.disabled = aBoolean;
	}
	
	function validateForm()
	{		
		if (!formValidator.ValidTextField("frmContact","firstName_txt",true,"Please provide a First Name!")){return false;}
		if (!formValidator.ValidTextField("frmContact","lastName_txt",true,"Please provide a Last Name!")){return false;}
		if (!formValidator.ValidTextField("frmContact","address1",true,"Please provide a Address!")){return false;}
		if (!formValidator.ValidTextField("frmContact","city",true,"Please provide a City!")){return false;}
		if (!formValidator.ValidTextField("frmContact","zipCode_txt",true,"Please enter a Zip!")){return false;}
		if (!formValidator.ValidNumericTextField("frmContact","phoneAreaCode_txt",true,"Please enter a valid phone number!")){return false;}
		if (!formValidator.ValidNumericTextField("frmContact","phonePrefix_txt",true,"Please enter a valid phone number!")){return false;}
		if (!formValidator.ValidNumericTextField("frmContact","phoneSuffix_txt",true,"Please enter a valid phone number!")){return false;}
		return true;
	}
	
	function resetRequiredTextInput(inputObj){formValidator.resetRequiredTextInput(inputObj);}
	
//-->