function setCountiesHandler(response){	/**	 * disableCountyDropDown	 *	 * This is called inline within the calling page	 */	/**	 * This is the handler function for the prototype value return		 */	createCountyDropDownElements(processCountiesResponseText(response.replace(/^\s+|\s+$/g, "")),'county'); 	/**	 * enableCountyDropDown	 */	enableCountyDropDown('county');}function setCountiesErrorHandler(response){	// //*	//   * This is the handler function for the prototype value return	//   */	alert(response.statusText);}function processCountiesResponseText(responseText){	/**	 * Parse into DOM	 */	var _result = XMLDocument(responseText);	/**	 * Just interested in the counties...	 */	var _counties = _result.getElementsByTagName("string");		/**	 * Process into a JavaScript array	 */	_result = new Array(_counties.length);	//	for(var i=0; i<_counties.length; i++){		_result[i] = _counties[i].firstChild.data;	}	//	return _result;}function XMLDocument(XML){	var _result;		/**	 * XML Parse	 */	if(document.implementation && document.implementation.createDocument){		/**		 * Mozilla, Firefox, Opera etc		 */		var _parser = new DOMParser();	  	_result = _parser.parseFromString(XML,"text/xml");	}else{		/** 		 * Microsoft		 */		_result = new ActiveXObject("Microsoft.XMLDOM");  		_result.async=false;			_result.loadXML(XML);	}	return _result;}function createCountyDropDownElements(arrayOfCounties,parentId){	/**	 * <option label="Adams" value="Adams">Adams</option>	 */	/**	 * Insert new children	 */	var _parent = document.getElementById(parentId);	var county;	var content;	/**	 * Delete existing children	 */	deleteCountyDropDownElements(parentId);	/**	 * Create:	 *	 * <option label="--" value="null">--</option>	 */	county = document.createElement("option");	county.setAttribute("label","--");	county.setAttribute("value","null");	content = document.createTextNode("--");	county.appendChild(content);	//	_parent.appendChild(county);	//	for(var i=0; i<arrayOfCounties.length; i++){		county = document.createElement("option");		county.setAttribute("label",arrayOfCounties[i]);		county.setAttribute("value",arrayOfCounties[i]);		content = document.createTextNode(arrayOfCounties[i]);		county.appendChild(content);		//		_parent.appendChild(county);	}}function deleteCountyDropDownElements(parentId){	var _parent = document.getElementById(parentId);	//	while(_parent.firstChild){		_parent.removeChild(_parent.firstChild);	}	//	_parent = null;}function disableCountyDropDown(parentId){	var _dropdown = document.getElementById(parentId);	/**	 * Change style for IE7 which does not blank out the dropdown background color.	 */	//_dropdown.style.background = '#CCCCCC';	//	_dropdown.disabled = true;	_dropdown = null;	return true}function enableCountyDropDown(parentId){	var _dropdown = document.getElementById(parentId);	/**	 * Change style for IE7 which does not blank out the dropdown background color.	 */	//_dropdown.style.background = '#FFFFFF';	//	_dropdown.disabled = false;	_dropdown = null;	return true}