function CalculaDC( entidad, oficina, cuenta )
{
	ccc_pesos = Array( 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 );
	// CALCULO EL DIGITO DE CONTROL DE LA ENTIDAD Y OFICINA
	entofi = entidad + oficina;
	suma	= 0;
	total	= 0;
	for( i = 0; i < entofi.length; i++ ) {
		digito = entofi.charAt( entofi.length - 1 - i );
		suma = digito * ccc_pesos[ i ];
		total = total + suma;
		}
	total = 11 - ( total % 11 );
	if( total == 10 ) {
		total = 1;
		}
	if( total == 11 ) {
		total = 0;
		}
	// CALCULO EL DIGITO DE CONTROL DEL CODIGO CUENTA CLIENTE
	numero	= 0;
	control	= 0;
	c			= 0;
	for( i = 0; i < cuenta.length; i++ ) {
		numero	= cuenta.charAt( cuenta.length - 1 -  i );
		control	= numero * ccc_pesos[ i ];
		c = c + control;
		}
	c = 11 - ( c % 11 );
	if( c == 10 ) {
		c = 1;
		}
	if ( c == 11 ) {
		c = 0;
		}
	return total.toString() + c.toString();
}

