﻿function GetKongJian(strkj) {
    try {
        if (document.all) {
            return eval('document.getElementById("' + strkj + '")');
        }
        else {
            return eval('document.all.' + strkj);
        }
    }
    catch (e) { }
}
function initForm() {
    //initialize form UI and add triggers
    var infobox;
    var x = GetKongJian("myRight");
    if (!x) return;
    var y = x.getElementsByTagName("div");
    for (var i = 0; i < y.length; i++) {
        if (y[i].className == 'dImg') {
            y[i].onmouseover = function() { this.style.background = 'url(../images/picbg.gif)'; };
            y[i].onmouseout = function() { this.style.background = '#fff'; };
        }
    }
}
function isIE() {
    if (document.all) return true;
    return false;
}
function getFocus(evnt) {
    var obj;
    if (isIE()) {
        obj = event.srcElement;
    } else {
        obj = evnt.target;
    }
    showInfo(obj);
}
function showInfo(obj) {
    if (obj.className == 'dImg') {
        obj.style.background = 'url(../images/picbg.gif)';
    }
}
initForm();
