function search_check(){
	if (frmSearch.word.value==""){
		alert("请输入关键字进行查询！");
		frmSearch.word.focus();
		return false;
	}
}

function scrollDoor(){        
}                
scrollDoor.prototype = {                
    sd : function(menus,divs,openClass,closeClass){                
        var _this = this;                
        if(menus.length != divs.length)                
        {                
            alert("菜单层数量和内容层数量不一样!");                
            return false;                
        }                                
        for(var i = 0 ; i < menus.length ; i++)                
        {
            _this.$(menus[i]).value = i;
            _this.$(menus[i]).onmouseover = function(){ 
                for(var j = 0 ; j < menus.length ; j++)
                {
                    if (closeClass!="") _this.$(menus[j]).className = closeClass;
                    _this.$(divs[j]).style.display = "none";
                }
                if (openClass!="") _this.$(menus[this.value]).className = openClass;
				_this.$(menus[this.value]).style.cursor="pointer";
                _this.$(divs[this.value]).style.display = "block";          
            }
        }
        },
    $ : function(oid){
        if(typeof(oid) == "string")
        return document.getElementById(oid);
        return oid;
    }                
}                
window.onload = function(){                
    var SDmodel = new scrollDoor();              
	SDmodel.sd(["cm0","cm1"],["c0","c1"],"select","noselect");
	SDmodel.sd(["qm0","qm1"],["q0","q1"],"select","noselect");
} 