var mitems="";function selectall(_,$){elements=document.forms[$].elements;for(var B=0;B<elements.length;B++){var A=elements[B];if(A.type=="checkbox")A.checked=_}}function CheckAll(){for(var _=0;_<document.formlist.elements.length;_++){var $=document.formlist.elements[_];if($.name=="chkSelect"&&$.type.toUpperCase()=="CHECKBOX"&&!$.disabled)$.checked=document.formlist.allbox.checked}}function allcheckbox($){mitems="";for(var A=0;A<document.forms[$].elements.length;A++){var _=document.forms[$].elements[A];if(_.type=="checkbox")if(_.checked){mitems+=",";mitems+=_.value}}if(mitems.length>0)mitems=mitems.substring(1)}function pb($){window.open("http://space.a8.com/playbox/?id="+$,"A8playerboxObj")}function opt($){if(mitems!=null&&mitems!="")switch($){case 1:window.open("http://space.a8.com/playbox/?id="+mitems,"A8playerboxObj");break;case 2:if(confirm("确定删除吗？"))document.formlist.submit();break;case 3:document.formlist.submit();break}else alert("请先选择歌曲!")}function mplay($){allcheckbox($);opt(1)}function boxplay($){new Ajax.Request("/common/ajaxservice.php",{method:"post",parameters:"method=getmusicidlist&id="+$,onComplete:function($){if($.responseText!="")pb($.responseText)},onLoading:function(){}})}
