Sí lo vas a usar una sola vez en tu site, puede usarlo así...
Código PHP:
<%
enviado = Request.QueryString("envio")
if enviado <> "si" Then
%>
<form action="?envio=si" method="post">
<center>
<input type="text" name="xxy">
<br>
<input type="Submit">
</center>
</form>
<%
Else
xxy = Request.Form("xxy")
x2 = CInt(Len(xxy)/2)
xx= Left(xxy,x2)
y= right(xxy,x2)
Response.Write "Todos los numeros: "&xxy&"<br>Mostrados de "&x2&" en "&x2&" y son: "&Len(xxy)&"<br>Primeros "&x2&" : "&xx&"<br>Segundos "&x2&" : "&y
End If
%>
Sí lo necesitas mas de una vez
haz una funcion , eso de arriba lo acabo de hacer ahorita respondiendote, de seguro es optimizable
Salu2