function delval(obj){
jquery(obj).parent().empty();
var hid=jQuery(obj).attr("id");
var str=jQuery("#hidden_id").val();
var arry=str.split(","); // str 拆分为 数组
for(var i=0;i<arry.length;i++){
if(arry[i]!=""&&arry[i]==hid){
arry[i]="";
}
}
var newarry=arry.join(','); // arry 转为 字符串
jQuery("#hidden_id").val(newarry);
}
function setvalue(name,hid){
var origin = artDialog.open.origin;//插件页面A
var inputs = origin.document.getElementById('td
checkbox');;// 页面A的 ID
var hinput = origin.document.getElementById('hidden_id'); //页面A隐藏域 ID
var str=hinput.value;
var arry=str.split(",");
for(var i=0;i<arry.length;i++){
if(arry[i]!=""&&arry[i]==hid){
art.dialog.alert("已存在该业务");
return;
}
}
nputs.innerHTML += "<span><input type='checkbox' />"+name+"<a href='#' onclick='delval(this)' id="+hid+" class='delimg' ></a></span> ";
hinput.value += hid+",";
art.dialog.close();
}