function selectAll() //전체
{
var objs = document.getElementsByName('twId');
var i;
for(i = 0; i {
if(objs[i].type == "checkbox")
{
objs[i]. 확인됨 = 사실;
}
}
}
function unselect() //반영
{
var objs = document.getElementsByName('twId');
var i;
for(i=0;i
if(objs[i].type=='checkbox')
{
if(objs[i ].checked == true)
{
objs[i].checked =false;
}
else
{
objs[i].checked =true;
}
}
}
}
function idArray() //得到批weight处理的twId
{
var objs = window.document.getElementsByName('twId') ;
var i;
var idArray = new Array();
var j = 0;
for(i=0;i
if(objs[i].type=='checkbox')
{
if(objs[i ].checked == true)
{
idArray[j] = objs[i].value;
j = j1;
}
}
}
return idArray; var evObj = window.document.getElementsByName('cityStr');
var i;
var evArray = new Array();
var j = 0;
for(i=0;i
if(objs[i].type=='checkbox')
{
if(objs[i ].checked == true)
evArray[j] = evObj[i].value;
j = j1;
}
}
}
return evArray;
}
function selectUser() //把选择到的值写到文框
{
var userIds = new Array();
userIds = idArray();
var userIdString = userIds.join(","); //数组字符串化
document.getElementById('member').value=userIdString;
}