function InsertPurchaseBlockId( element, type, id )
{
	if( !element )
	{
		WriteLog( 'Tried to insert purchase block for non existing element', type, id );
		return;
	}

	const span = document.createElement( 'span' );
	span.dataset.tooltipText = _t( 'view_on_steamdb' );

	const hash = document.createElement( 'span' );
	hash.style.fontWeight = 'bold';
	hash.textContent = '# ';
	span.append( hash );

	const text = document.createElement( 'span' );
	text.className = 'steamdb_link_id';
	text.textContent = id.toString();
	span.append( text );

	const link = document.createElement( 'a' );
	link.className = 'btn_black btn_tiny steamdb_link';
	link.append( span );

	if( id < 1 )
	{
		link.href = '#';
		link.hidden = true;

		element.insertBefore( link, element.querySelector( '.game_area_purchase_game_dropdown_right_panel' ) );
	}
	else
	{
		link.href = `${GetHomepage()}${type}/${id}/`;
		element.prepend( link );
	}
}
@param {Element} element
@param {string} type
@param {number} id