... così:

codice:
function sub() { 
var eco=document.pippo.collo.value;
location.href="index.html?cicci="+eco;
}
Ciao !