var children = new Object();Object.extend(children,{}); var tmr = null; function xyz(el) { if(el.value=='0' || !el.value) return; window.open(el.value); el.options[0].selected = true; } function abc(el,cc) { window.clearTimeout(tmr); pos = Position.cumulativeOffset(el); Element.setStyle('divTest',{left:pos[0] + Element.getWidth(el) + 'px', top: pos[1] + 'px'}); str = ''; if(children['p' + cc]) for(i = 0; i ' + children['p' + cc][i+1] + ''; } Element.update('divTest','' + str + '
'); if(str.length>0) Element.show('divTest'); else Element.hide('divTest'); } function asd() { tmr = window.setTimeout("Element.hide('divTest');", 300); }