function del_click(){
//artcleId2 checkbox name
var artids = document.forms[0].item("artcleId2");
if (checkSelected(artids)){
if (confirm("您确定要删除选定的文章组吗?")){
if(artids.value==undefined){
artidStr = checkSelectedValue(artids);
}
else{
artidStr=artids.value;
}
var surl = "提交路径";
document.forms[0].action = "<%=request.getContextPath() %>"+surl;
document.forms[0].submit();
}
}else{
alert("请选择文章!");
return ;
}
}
function checkSelected(srcObj) {
if (srcObj != null) {
if (srcObj.length > 1) {
for (var i = 0; i < srcObj.length; i++) {
if (srcObj[i].checked)
return true;
}
return false;
}
else {
if (srcObj.checked)
{
return true;
}
else{
return false;
}
}
}
else
return false;
}
//artcleId2 checkbox name
var artids = document.forms[0].item("artcleId2");
if (checkSelected(artids)){
if (confirm("您确定要删除选定的文章组吗?")){
if(artids.value==undefined){
artidStr = checkSelectedValue(artids);
}
else{
artidStr=artids.value;
}
var surl = "提交路径";
document.forms[0].action = "<%=request.getContextPath() %>"+surl;
document.forms[0].submit();
}
}else{
alert("请选择文章!");
return ;
}
}
function checkSelected(srcObj) {
if (srcObj != null) {
if (srcObj.length > 1) {
for (var i = 0; i < srcObj.length; i++) {
if (srcObj[i].checked)
return true;
}
return false;
}
else {
if (srcObj.checked)
{
return true;
}
else{
return false;
}
}
}
else
return false;
}