ma porca miseria; ancora sbaglio qualcosa.
scrivo

var vuot = document.getElementById("iCart").contentDocument.g etElementById("vuoto");

e poi facendo un alert(vuot) mi scrive null; Ma quel id#vuoto c'è nel codice.

anche con window.frames[0] identico risultato.

Dove sbaglio?

codice:
 <script type="text/javascript">
     $(document).ready(function() {
	var vuot = document.getElementById("iCart").contentDocument.getElementById("vuoto");
		
		alert(vuot);
		if  (vuot != null) {
		
		$('#cart').css('display', 'none');
		};
		
    });
</script>