ok risolto!

Codice PHP:

function vaiGo(){

var 
ids document.getElementById('posted2').value;
window.document.location.href='fattura.php?id='+ids;


mancava .value