var booleano = false;
for(var i=0,d=NOMEIFRAME.document.forms; i<d.length; i++) {
for(var j=0,e=d[i].elements; j<e.length; j++) {
if(typeof(e[j].options)!="undefined")
booleano = true;
j=e.length;
i=d.length;
}
}
questo verifica che sia presente un select nella pagina...