... cosa è piuttosto semplice:

codice:
function Travasa(str) {
 var vettore=new Array(str.length);
 for (i=0; i<str.length; i++) vettore[i]=parseInt(str.charAt(i));
}
Per attivare la funzione:

codice:
<input type="text" name="campo">
<input type="button" onClick="Travasa(this.form.campo.value);" value="Travasa">
Ciao !