function openQueryForm(folderId) { winFeatures = "height=400,width=500,scrollbars,resizable"; pop = window.open('/cg/qms/customer/queryForm.do?query.folderId=' + folderId, 'query', winFeatures); pop.focus(); } function openRFQ(versionId) { winFeatures = "height=400,width=500,scrollbars,resizable"; var popw = window.open('/cg/qms/cart/itemForm.do?item.versionId=' + versionId, 'rfq', winFeatures); popw.focus(); } function highlight(e) { color(e, '#EEEEEE'); } function unHighlight(e) { color(e, '#FFFFFF'); } function color(e, color) { var tds = e.childNodes; for ( i = 0; i < tds.length; i++) { var td = tds[i]; if (td.tagName == "TD") { if (td.style.backgroundColor == color) { return; } td.style.backgroundColor = color; } } }