American casualties have been mounting amid a major upsurge in violence across Afghanistan ahead of legislative elections scheduled on September 18 .