var objects = document.getElementsByTagName("object"); for (var i=0; i