<script language="javascript">
<!--
function checkAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkAll')
e.checked = form.chkAll.checked;
}
}
function chkNum(form)
{
var num = 0;
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if ((e.name != 'chkAll')&&(e.checked == true))
{
num = num + 1;
if(num >1)
{
alert('请选择一条纪录!'+ '你选的多于一条');
return false;
}
}
}
if(num ==0)
{
alert('请选择一条纪录!');
return false;
}
}
//-->
<!--
function checkAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkAll')
e.checked = form.chkAll.checked;
}
}
function chkNum(form)
{
var num = 0;
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if ((e.name != 'chkAll')&&(e.checked == true))
{
num = num + 1;
if(num >1)
{
alert('请选择一条纪录!'+ '你选的多于一条');
return false;
}
}
}
if(num ==0)
{
alert('请选择一条纪录!');
return false;
}
}
//-->