

function checkAll(field) {
 if (field.length>0) {
  for (i = 0; i < field.length; i++)
   field[i].checked = true;
 } else {
  field.checked = true;
 }
}
function uncheckAll(field) {
 if (field.length>0) {
  for (i = 0; i < field.length; i++)
   field[i].checked = false;
 } else {
  field.checked = false;
 }
}

function confirm_action(field) {
 if (field.value=='Delete')
  {
   cf=confirm('Are you sure you want to delete this?');
   if (cf) return true;
  }
  else 
  {
   return true; 
  }
return false;
}

function use_author() {
	author=document.form1.sel_author.value;
	document.form1.author.value=author;
}
