// version: 1.2
var version = 1.2

if( _global.nextName === undefined  ||  _global.nextName.version < version  ||  !_global.nextName.version ){
	_global.nextName = function( base_str, parent_mc ){
		if(base_str && parent_mc)
		{// if:  all parameters supplied
			var index = 0;
			var newName = base_str;
			while( parent_mc[newName] != undefined ){
				newName = base_str +index;
				index++;
			}// while:  this name is being used by something else
		}// if:  all parameters supplied
		return newName;
	}// nextName()
}// if:  _global.nextName doesn't already exist

_global.nextName.version = version;
version = null;		delete version;