// checkAllRecords.
// take a FORM object as an argument, and set all the checkbox objects
// in that form to "checked", return false

function checkAllRecords(theform)
{

  var ele = "";

  for (var i = 0; i < theform.elements.length; i++)
  {
    ele = theform.elements[i];

    if (ele.type == "checkbox")
    {
      ele.checked = true;
    }
  }

  return false;
}

function saveRecordsToBookbag(theform)
{
  theform.submit();
  
  return false;
}

var notesWindow = 0;

function popupNotesWindow( URLstr )
{
    if ( notesWindow && ( ! notesWindow.closed ) )
    {
	notesWindow.focus();
    }
    else
    {
	notesWindow = window.open( '', "tcnotetwin", "scrollbars=1,resizable=1,width=400,height=300" );
    }

    notesWindow.document.write('<p>Retrieving note, please wait ...</p>');
    notesWindow.document.location = URLstr;
}

