
	function ajaxRequestNew()
	{
		var xmlHttp;
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHttp");
		}
		catch(e)
		{
			try
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHttp");
			}
			catch(e2)
			{
			}
		}
		
		if(xmlHttp == undefined && (typeof XMLHttpRequest != 'undefined'))
		{
			xmlHttp = new XMLHttpRequest();
		}
		
		return xmlHttp;
	}

	function ajaxRequestSend(req, cb)
	{
	    req.onreadystatechange = cb;
	    req.open("GET", url, true);
	    req.send(null);
	}
	

	//
	// County ComboBox Lookup
	//
	function countyLookup()
	{

	}
	
	//var to hold an instance of the XMLHTTPRequest object
	countyLookup.prototype._request = undefined;

	// Application Callbacks
	countyLookup.prototype.appCallback = undefined;
	countyLookup.prototype.errCallback = undefined;
	
	// Other data
	countyLookup.prototype.stateId = -1;
	countyLookup.prototype.cbxName = 'CountyID';
	countyLookup.prototype.cbxClass = '';
		
	countyLookup.prototype._lookupCallback = function()
	{
		if (this._request.readyState == 4) 
		{

			// Transaction completed				
			if (this._request.status == "200") 
			{
				try
				{
					this.appCallback(this);
				}
				catch (e)
				{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup callback error ->' + e.message);						
					}

				}

				delete this_request;

				return;

			} 
			else 
			{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup status error ->' + e.message);						
					}

			}
		}		
	}
		
	// Invokes the lookup
	countyLookup.prototype.lookup = function(stateId)
	{
		this._request = ajaxRequestNew();
		var url = ajaxSiteUrl + '/ajax/countyLookup.asp?StateID=' + stateId + '&cbxName=' + this.cbxName + '&cbxClass=' + this.cbxClass;
		
		if (document.getElementById('divDebug'))
		{
			document.getElementById('divDebug').innerHTML = url;
		}
		
		var _this = this;
		
		this._request.onreadystatechange = function(){ _this._lookupCallback() };
		
		this._request.open("GET", url, true);
		this._request.send(null);
		
	}
	
	//
	// County ComboBox for Search
	//
	function countySearch()
	{

	}
	
	//var to hold an instance of the XMLHTTPRequest object
	countySearch.prototype._request = undefined;

	// Application Callbacks
	countySearch.prototype.appCallback = undefined;
	countySearch.prototype.errCallback = undefined;
	
	// Other data
	countySearch.prototype.stateId = -1;
	countySearch.prototype.cbxName = 'CountyID';
	countySearch.prototype.cbxClass = '';
		
	countySearch.prototype._lookupCallback = function()
	{
		if (this._request.readyState == 4) 
		{

			// Transaction completed				
			if (this._request.status == "200") 
			{
				try
				{
					this.appCallback(this);
				}
				catch (e)
				{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup callback error ->' + e.message);						
					}

				}

				delete this_request;

				return;

			} 
			else 
			{
					if (this.errCallback)						
					{
						if (e)
						{
							this.errCallback(e)
						}
						else
						{
						}
					}
					else
					{
						alert('stateLookup status error ->' + e.message);						
					}

			}
		}		
	}
		
		
	// Invokes the lookup
	countySearch.prototype.lookup = function(stateId)
	{
		this._request = ajaxRequestNew();
		var url = ajaxSiteUrl + '/ajax/countySearch.asp?StateID=' + stateId + '&cbxName=' + this.cbxName + '&cbxClass=' + this.cbxClass;
		
		if (document.getElementById('divDebug'))
		{
			document.getElementById('divDebug').innerHTML = url;
		}
		
		var _this = this;
		
		this._request.onreadystatechange = function(){ _this._lookupCallback() };
		
		this._request.open("GET", url, true);
		this._request.send(null);
		
	}
	
	//
	// City ComboBox for Search
	//
	function citySearch()
	{

	}
	
	//var to hold an instance of the XMLHTTPRequest object
	citySearch.prototype._request = undefined;

	// Application Callbacks
	citySearch.prototype.appCallback = undefined;
	citySearch.prototype.errCallback = undefined;
	
	// Other data
	citySearch.prototype.stateId = -1;
	citySearch.prototype.cbxName = 'CityID';
	citySearch.prototype.cbxClass = '';
		
	citySearch.prototype._lookupCallback = function()
	{
		if (this._request.readyState == 4) 
		{

			// Transaction completed				
			if (this._request.status == "200") 
			{
				try
				{
					this.appCallback(this);
				}
				catch (e)
				{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup callback error ->' + e.message);						
					}

				}

				delete this_request;

				return;

			} 
			else 
			{
					if (this.errCallback)						
					{
						if (e)
						{
							this.errCallback(e)
						}
						else
						{
						}
					}
					else
					{
						alert('stateLookup status error ->' + e.message);						
					}

			}
		}		
	}
		
		
	// Invokes the lookup
	citySearch.prototype.lookup = function(stateId)
	{
		this._request = ajaxRequestNew();
		var url = ajaxSiteUrl + '/ajax/citySearch.asp?StateID=' + stateId + '&cbxName=' + this.cbxName + '&cbxClass=' + this.cbxClass;
		
		if (document.getElementById('divDebug'))
		{
			document.getElementById('divDebug').innerHTML = url;
		}
		
		var _this = this;
		
		this._request.onreadystatechange = function(){ _this._lookupCallback() };
		
		this._request.open("GET", url, true);
		this._request.send(null);
		
	}	
	
	//
	// City ComboBox Lookup
	//
	function cityLookup()
	{

	}
	
	//var to hold an instance of the XMLHTTPRequest object
	cityLookup.prototype._request = undefined;

	// Application Callbacks
	cityLookup.prototype.appCallback = undefined;
	cityLookup.prototype.errCallback = undefined;
	
	// Other data
	cityLookup.prototype.stateId = -1;
	cityLookup.prototype.cbxName = 'CityID';
	cityLookup.prototype.cbxClass = '';
		
	cityLookup.prototype._lookupCallback = function()
	{
		if (this._request.readyState == 4) 
		{

			// Transaction completed				
			if (this._request.status == "200") 
			{
				try
				{
					this.appCallback(this);
				}
				catch (e)
				{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup callback error ->' + e.message);						
					}

				}

				delete this_request;

				return;

			} 
			else 
			{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup status error ->' + e.message);						
					}

			}
		}		
	}
		
		
	// Invokes the lookup
	cityLookup.prototype.lookup = function(stateId)
	{
		this._request = ajaxRequestNew();
		var url = ajaxSiteUrl + '/ajax/cityLookup.asp?StateID=' + stateId + '&cbxName=' + this.cbxName + '&cbxClass=' + this.cbxClass;
		
		var _this = this;
		
		this._request.onreadystatechange = function(){ _this._lookupCallback() };
		
		this._request.open("GET", url, true);
		this._request.send(null);
		
	}	
	
	//
	// ZIP ComboBox Lookup
	//
	function zipLookup()
	{

	}
	
	//var to hold an instance of the XMLHTTPRequest object
	zipLookup.prototype._request = undefined;

	// Application Callbacks
	zipLookup.prototype.appCallback = undefined;
	zipLookup.prototype.errCallback = undefined;
	
	// Other data
	zipLookup.prototype.stateId = -1;
	zipLookup.prototype.cbxName = 'ZipCode';
	zipLookup.prototype.cbxClass = '';
	
	zipLookup.prototype._lookupCallback = function()
	{
		if (this._request.readyState == 4) 
		{

			// Transaction completed				
			if (this._request.status == "200") 
			{
				try
				{
					this.appCallback(this);
				}
				catch (e)
				{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup callback error ->' + e.message);						
					}

				}

				delete this_request;

				return;

			} 
			else 
			{
					if (this.errCallback)						
					{
						this.errCallback(e)
					}
					else
					{
						alert('stateLookup status error ->' + e.message);						
					}

			}
		}		
	}
		
	
		
	// Invokes the lookup
	zipLookup.prototype.lookup = function(stateId)
	{
		this._request = ajaxRequestNew();
		var url = ajaxSiteUrl + '/ajax/zipLookup.asp?StateID=' + stateId + '&cbxName=' + this.cbxName + '&cbxClass=' + this.cbxClass;
		
		var _this = this;
		
		this._request.onreadystatechange = function(){ _this._lookupCallback() };
		
		this._request.open("GET", url, true);
		this._request.send(null);
		
	}		
	
	