function tc_init() { var divs = document.getElementsByClassName("testcase-content"); allStretch = new fx.MultiFadeSize(divs, {height: true, opacity: true, duration: 400}); allStretch.hideAll(); testConfigHeight = new fx.Height('test_run_summary', {duration: 400}); testConfigHeight.toggle(); allStretch.fxa[0].toggle(); } function confirmPartialSubmission() { msg = "Did you intend to only submit a single test result? (Hint: There is a 'Submit All Results' button at the bottom of the page.)"; return confirm(msg); } function confirmTestRunSelection(testRunUrl) { if (confirm("Does your config match that listed in the details and criteria (if any)?")) { document.location = testRunUrl; } } function checkFormContents(f) { var criteria = document.getElementsByName('criterion'); if (checkRadio(criteria,'required criteria')) { if (criteria[0].value == 'new') { return ( checkBuildId(document.getElementById('build_id_new'), false) && verifySelected(document.getElementById('platform_new'), 'platform') && verifySelected(document.getElementById('opsys_new'), 'operating system') ); } else { for (var i=0; i" + ""; } else { var el = document.createElement('input'); el.setAttribute('type', 'text'); el.setAttribute('name', 'build_id_new'); el.setAttribute('id', 'build_id_new'); el.setAttribute('size', '14'); if (appBuildID) { el.setAttribute('value', appBuildID); } el.onchange = new Function("if (!checkBuildId(this,true)) { this.value = ''; this.focus(); }"); cellBuildID.appendChild(el); } // Platform cell var cellPlatform = row.insertCell(2); cellPlatform.setAttribute('align', 'center'); var el = document.createElement('select'); if (buildID) { el.setAttribute('name', 'platform_' + position); el.setAttribute('id', 'platform_' + position); el.setAttribute('onChange', "changePlatform('_"+position+"')"); } else { el.setAttribute('name', 'platform_new'); el.setAttribute('id', 'platform_new'); el.setAttribute('onChange', "changePlatform('_new')"); } el.setAttribute('size', '1'); el.setAttribute('class', 'select_platform'); el.options[0] = new Option('-Platform (ID#)-',''); for(var i=0;i