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 check(chk_str)
{
return confirm(chk_str)
}