//全选
function chooseAll()
{
var selects = document.getElementsByName('ids');
for(var j=0;j<selects.length;j++)
{
selects[j].checked=true;
}
}
//反选
function fanselect()
{
var selects = document.getElementsByName('ids');
for(var j=0;j<selects.length;j++)
{
if(selects[j].checked==true)
{
selects[j].checked=false;
}else
{
selects[j].checked=true;
}
}
}