function selectall(name) { if ($("#check_box").attr("checked")) { $("input[name='"+name+"']").each(function() { this.checked=true; }); } else { $("input[name='"+name+"']").each(function() { this.checked=false; }); } } //tab切换 function tabs(id,title,content,box,on,action){ if(action){ $(id+' '+title).click(function(){ $(this).addclass(on).siblings().removeclass(on); $(content+" > "+box).eq($(id+' '+title).index(this)).show().siblings().hide(); }); }else{ $(id+' '+title).mouseover(function(){ $(this).addclass(on).siblings().removeclass(on); $(content+" > "+box).eq($(id+' '+title).index(this)).show().siblings().hide(); }); } } function openwin(id,url,title,width,height,lock,yesdo,topurl){ art.dialog.open(url, { id:id, title: title, lock: lock, width: width, height: height, cancel: true, ok: function(){ var iframewin = this.iframe.contentwindow; var topwin = art.dialog.top; if(yesdo || topurl){ if(yesdo){ yesdo.call(this,iframewin, topwin); }else{ art.dialog.close(); topwin.location.href=topurl; } }else{ var form = iframewin.document.getelementbyid('dosubmit');form.click(); } return false; } }); } function resetverifycode(){ var timenow = new date().gettime(); document.getelementbyid('verifyimage').src='./index.php?g=home&m=index&a=verify#'+timenow; } function showpicbox(url){ art.dialog({ padding: 2, title: 'image', content: '', lock: true }); }