<script>
B=1;
while (document.getElementById('V'+B)) { B++; }
nuovo = "V"+B;
</script>

ciao