rice-middleware/web/src/main/webapp/kr/scripts/core.js
/** executes a function on all tabs.  The function will be passed a document & partial tab name. */
executes a function on all tabs.  The function will be passed a document & partial tab name.
executes a function on all tabs . The function will be passed a document & partial tab name .
function doToAllTabs(func) {
	var elements = document.getElementsByTagName('div');
	for (var x in elements) {
		if (elements[x].id && elements[x].id.substring(0, 4) === 'tab-' 
			&& elements[x].id.substring(elements[x].id.length - 4, elements[x].id.length) === '-div') {
			func(document, elements[x].id.substring(4, elements[x].id.length - 4));
		}
	}
	return false;
}
function doToAllTabs ( func ) { var elements = document . getElementsByTagName ( 'div' ) ; for ( var x in elements ) { if ( elements [ x ] . id && elements [ x ] . id . substring ( 0 , 4 ) === 'tab-' && elements [ x ] . id . substring ( elements [ x ] . id . length - 4 , elements [ x ] . id . length ) === '-div' ) { func ( document , elements [ x ] . id . substring ( 4 , elements [ x ] . id . length - 4 ) ) ; } } return false ; }
executes a function on all tabs.
executes a function on all tabs .