Ciao a tutti.
Spulciando nel forum ho trovato uno script per modificare il testo di un div dalla madre al popup però non riesco a farlo funzionare.

Il codice è questo

Codice PHP:
<%
Response.Buffer=0
on error resume next
%>

<
script language="javascript">
   var 
500;
   var 
180;
   var 
Math.floor((screen.width-w)/2);
   var 
Math.floor((screen.height-h)/2);
   
   var 
myFloater window.open('/ordini/ordini/fatture/progress_appaiamento.asp','progress_appaiamento','width=' ',height=' ',top=' ',left=' l);
   
   
    function 
totale(tot_fatture) { 
        
myFloater.document.getElementById("tutte").innerHTML tot_fatture
    }   
   
   
</script>


...

tot_fatture = Fatture.recordcount

%>
<script language="javascript">
    totale(<%=tot_fatture%>)
</script> 
però mi restituisce l'errore

myFloater.document.getElementById(...) is null or not an object

nessuno può farmi capire dove sbaglio?
Grazie