function FindThisCar()
{
	this.Init = function(id)
	{
	    this._clientId = id;
	    this._url = "";
	    
	    // Add handlers so we can call functions associated with this object.
        $addHandlers($get(this._clientId + "_fcSearch"), {click:this.Search}, this);
        // Handlers for key press to map "enter" to the send button.
        $addHandlers($get(this._clientId + "_divFTC"), {keypress:this.CheckKey}, this);
        
        // Setup a method to cleanup
        var delDispose = Function.createDelegate(this, this.Dispose);
        Sys.Application.add_unload(delDispose);
	}
	
    // Clean up after ourself
	this.Dispose = function()
	{
        $clearHandlers($get(this._clientId + "_fcSearch"));
        $clearHandlers($get(this._clientId + "_divFTC"));
	}
	
    this.CheckKey = function(evt)
    {
        // evt is a Sys.UI.DomEvent object
     
        if (mapKeyToAction(evt))
        { 
            setEnterPress();
            this.Search();
            return false;
        }
    }

	
	// Search for this vehicle.
	this.Search = function()
	{
	    zip = $get(this._clientId + "_txtFindZip").value;
	    
	    if(this.Validate())
	    {
	        url = this._url.replace("xZIPx", zip);
	        url = url.replace("xZIPx", zip);
    	    
	        fnNavToSearchResults(url);
	    }
	    
	    return false;
	}
	
	// Validate inputs on the control.
	this.Validate = function()
	{
	    valid = true;
	    var elm = $get(this._clientId + "_txtFindZip");
	    
	    addCssClass($get("fcreqZip"), "hide");
	    addCssClass($get("fcerrZip"), "hide");
	    if(0 == elm.value.length)
	    {
	        valid = false;
	        removeCssClass($get("fcreqZip"), "hide");
	    }
	    else
	    {
	        if (!g_regexZip.test(elm.value)) 
	        {
    	        removeCssClass($get("fcerrZip"), "hide");
		        valid = false;
	        }
	    }
	    
	    if(!valid)
	    { elm.focus(); }
	    
	    return valid;
	}
	
	
}


