//-----------------------------------------------------------------------------
// Check all checkboxes with the name "checkname" to the value "checkvalue".
function checkall(formname, checkvalue)
	{

		var checkboxhandle = formname.elements['id[]'];

		//-----------------------------------------------------------------------------
		for (i = 0; i < checkboxhandle.length; i++)
			{

				checkboxhandle[i].checked = checkvalue;

			} // End for.
		//-----------------------------------------------------------------------------

	} // End function.
//-----------------------------------------------------------------------------