/**
* Toggles the check state of a group of boxes
*
* Checkboxes must have an id attribute in the form cb0, cb1...
* @param The number of box to 'check'
* @param An alternative field name
*
*/

function checkAllSymbols( n, formid, fldName) {
   var form = eval( 'document.' + formid );
   var srcList = eval( 'form.' + fldName );

	for (i=1; i <= n; i++) {
        dstList = eval( 'form.' + 'chk_select' + '' + i );
        dstList.checked = srcList.checked;
	}
}

function getImageName( frmName, srcListName ) {
   var form = eval( 'document.' + frmName );
   var srcList = eval( 'form.' + srcListName );
   i = srcList.selectedIndex;
   if (i != null && i > -1) {
     return srcList.options[i].text;
   } else {
     return null;
   }
}
