if( document.getElementById('idOggetto') )

ciao