﻿function search()
{
    var word = escape(getValue("txtWord"));
    window.location.href="search/search.aspx?q="+word;
    return false;
}

function onTxtWordFocus(obj)
{
    if(obj.value=='Search by Name')
    {
        obj.value='';
    }
}

function searchPartner()
{
    var stn="";
    if(getValue("DropType")!="")
        stn=getObj("DropType").options[getObj("DropType").selectedIndex].text;
    location.href="partner/search/partner_find_region.aspx?st="+getValue("DropType")+"&stn="+escape(stn)+"&state="+getValue("UC_Region_State_TxtValue")+"&city="+getValue("UC_Region_City_TxtValue");
}
