﻿/// <summary>
/// -----------------------------------------------------------------
/// 文件名:   StyleScript.js
/// 创建人:   HJQ
/// 说  明;   页面风格相关
/// 日  期:   2008-04-10
/// 目  的:   
/// 
/// 版  本:   1.0.0
/// 修改历史
/// -----------------------------------------------------------------
///    日 期   修改人      描 述
/// -----------------------------------------------------------------
/// 
/// 
/// -----------------------------------------------------------------
/// </summary> 

//按钮Button事件
function fEvent(sType,oInput){
	switch (sType){
		case "focus" :
			oInput.isfocus = true;
		case "mouseover" :
//			oInput.style.borderColor = '#99E300';
			oInput.className= "INPUT1Over";
			break;
		case "blur" :
			oInput.isfocus = false;
		case "mouseout" :
			if(!oInput.isfocus){
    			oInput.className = "INPUT1";
				//oInput.style.borderColor='#A1BCA3';
			}
			break;
	}
}


function ToolbarEvent(sType, oInput) {
    //alert(sType);

    switch (sType) {
        case "focus":
            //所有子项设置为默认
            var objs = document.all("hjqToolbarItem");
            if (objs) {
                if (objs.length) {
                    for (var i = 0; i < objs.length; ++i) {
                        objs[i].isfocus = false;
                        objs[i].className = "ToolbarItemOut";
                    }
                }
            }
            oInput.isfocus = true;
        case "mouseover":
            oInput.className = "ToolbarItemOver";
            break;
        case "blur":
            oInput.isfocus = false;
        case "mouseout":
            if (!oInput.isfocus) {
                oInput.className = "ToolbarItemOut";
            }
            break;
    }
}

function TingTabII(id) {
    var objData1 = window.document.getElementById("tabData1");
    var objData2 = window.document.getElementById("tabData1");
    var objData3 = window.document.getElementById("tabData3");
    var objTable1 = window.document.getElementById("table1");
    var objTable2 = window.document.getElementById("table2");
    var objTable3 = window.document.getElementById("table3");

    if (id == 1) {
        objTable1.style.display = "";
        objTable2.style.display = "none";
        objTable3.style.display = "none";
    }
    else if (id == 2) {
        objTable1.style.display = "none";
        objTable2.style.display = "";
        objTable3.style.display = "none";
    }
    else if (id == 3) {
        objTable1.style.display = "none";
        objTable2.style.display = "none";
        objTable3.style.display = "";
    }

    window.focus();
}


function TabActive(IDIndex) {
    var i;
    for (i = 1; i <= 6; ++i) {
        $("#heTabPage" + i).hide();
    }
    $("#heTabPage" + IDIndex).show();
}