salve a tutti: vorrei riuscire a trovare la maniera di troncare gli urls troppo lunghi all'interno del mio forum, senza dover pero' rinunciare a renderli linkabili automaticamente... come posso fare?

ho trovato questo codice in rete (oscarjsweb), ma non riesco ad adattarlo alel mie esigenze.

Function shareWords(tempTXT)

Limit = 50
arrTXT = Split(tempTXT)

For x = 0 To UBound(arrTXT)

tempLenght = Len(arrTXT(x))
If tempLenght > Limit Then
Count = tempLenght / Limit

If Count - CInt(Count) <> 0 Then
Count = Count + 1
End If

start = 1

For y = 1 To Count

Response.Write Mid(arrTXT(x),start,Limit) & " "
start = start + Limit
Next




Else

Response.Write arrTXT(x) & " "
End If

Next

End Function