﻿//---------------------------------------------------------------------------------------
//本文件所有函数仅供【供需车】业务列表页面使用
//---------------------------------------------------------------------------------------
//隐藏或显示其它查询条件
function HiddenOrShowOtherCondition(opthis)
{
    if (opthis.value == "更多条件")
    {
        opthis.value = "取消更多";
        $("DivOtherCondition").style.display = "block";
        $("HidIsShowOtherCondition").value = "true"; 
    }
    else
    {
        opthis.value = "更多条件";
        $("DivOtherCondition").style.display = "none";
        $("HidIsShowOtherCondition").value = "false";
    }  
}

//供需车业务列表快捷按钮鼠标样式
function ChangeBtnOpStyle(tid, op, which)
{
    if (op == "over")
    {
        if (which == "all")
        {
            tid.className = "btn_op_all_over";
        }
        else if (which == "provide")
        {
            tid.className = "btn_op_provide_over";
        }
        else if (which == "demand")
        {
            tid.className = "btn_op_demand_over";
        }
    }
    else if (op == "out")
    {
        if (which == "all")
        {
            tid.className = "btn_op_all";
        }
        else if (which == "provide")
        {
            tid.className = "btn_op_provide";
        }
        else if (which == "demand")
        {
            tid.className = "btn_op_demand";
        }
    }
}