function sodaDetail(url,height) { if (height) { h = height; } else { h = 600; } sodaDetailwin = window.open(url,"sodaDetail","width=620,height="+h+",scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no"); sodaDetailwin.focus(); return false; } /** Javascript doesn't have a getElementByClass so lets have a function that gets by any attribute, including class. @param attr name of attribute (eg 'class') @param val attribute value to search for @param container search scope within dom (defaults to document) @return array */ function sodaGetElementsByAttribute(attr,val,container) { container = container||document; var all = container.all||container.getElementsByTagName('*'); var arr = []; for(var k=0;k