naturalmente devi modificare il valore strValoreMax = 6 ; con 18.