<!--

/*
函数调用方法：
choice(参数1, 参数2, 参数3, ……, 参数n);

参数说明：
参数1 = this; 当前对象；
参数2 = "你需要显示的 DIV ID"; 字符串类型；
参数3 - 参数n = "你需要隐藏的 DIV ID"; 字符串类型；
参数顺序不允许颠倒；

例如：onmouseover = 'choice(this, "show1", "show2");';
此时当鼠标移动到此上面时ID为show1的DIV显示，ID为show2的DIV隐藏；

例如：onmouseout = 'choice(this);';
此时当鼠标移开此上面时className=choice；
*/

var choice = function(This, show, none){
    if(arguments.length == 1){
        This.className = "choice";
        return true;
    }
    if(arguments.length < 1 || arguments.length == 2){
        alert("运行 choice 函数时出错，参数传递错误。");
        return false;
    }
    for(var i = 0; i < arguments.length; i++){
        if(i == 0){
            This.className = "selected";
        }else if(i == 1){
            document.getElementById(show).style.display = "block";
        }else{
            document.getElementById(arguments[i]).style.display = "none";
        }
    }
    return true;
}

//-->