//tabs controller function tab_item(title, content, activeClass, inactiveClass){ this.title = title; this.content = content; if(activeClass!=undefined && activeClass.length>0) this.activeClass = activeClass; else this.activeClass = tab_controller.activeClass; if(inactiveClass!=undefined && inactiveClass.length>0) this.inactiveClass = inactiveClass; else this.inactiveClass = tab_controller.inactiveClass; } tab_item.prototype.title = ""; tab_item.prototype.content = ""; tab_item.activeClass = ""; tab_item.inactiveClass = ""; function tab_controller(name, items){ if(items==null || items.constructor!=Array){ alert("无效的tab初始化参数"); return; } this.name = name; this.items = items; this.count = items.length; this.active = items[0].title; tab_controller.registered.push({name: name, value: this}); } tab_controller.prototype.name = ""; tab_controller.prototype.active = ""; tab_controller.prototype.count = 0; tab_controller.prototype.items = []; tab_controller.prototype.getTabItem=function(name){ if(this.count<=0) return undefined; for(var i=0; i'+ ''+ ''+ ''; } function DisplayChoseDate(DivID, ObjectID)//显示日历 { var d = document.getElementById(DivID); d.innerHTML = ''+ ''+ ''+ ''; } function closeChoseDate() {//关闭日历 for(i = 0; i < document.all.length; i++){ if(document.all(i).tagName == "OBJECT" && document.all(i).classid == "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"){ document.all(i).GotoFrame(2); } } } function showallcount(c){//显示搜统计数; document.all("realcount").innerHTML = " "+c+" "; } function __doOpenVote(aim) { var dleft = 200,dtop = 0; pop = open(aim,"OpenDetail","width=600,height=700,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top="+dtop+",left="+dleft+"",""); pop.focus(); } //创建日历// function CreateDate(DivID, ObjectID, BtnAlign, Depth) { var d = document.getElementById(DivID); d.innerHTML = ''+ ''+ ''+ ''; d.children(0).mask = new Array(); return d.children(0); } //关闭日历// function closeChoseDate(eventTarget) { eventTarget.GotoFrame(2); eventTarget.style.left = 0; eventTarget.style.width = 18; eventTarget.style.height = 18; if(eventTarget.mask != null && eventTarget.mask.length>0){ for(i=0;i0){ for(i=0;i