Pues dicha variable pasarla por un URL:
haciendo:
Código:
dni.value = obj.value;
var accion = "pagina.asp?dni="+dni.value;
window.document.nombreform.action = accion;
window.document.nombreform.target="_self";
self.document.nombreform.submit();
Javascript en CLIENTE, ASP servidor necesariamente lo pasas a través de SUBMIT