function ChangeRowVisibility(strVisibility, intRowIndex, strTableName){ if(navigator.product == "Gecko" && navigator.productSub && navigator.productSub > "20041010" && (navigator.userAgent.indexOf("rv:1.8") != -1 || navigator.userAgent.indexOf("rv:1.9") != -1)){ /* Mozilla 1.8alpha; see bug 77019 and bug 242368; must be higher than 1.7.x Mozilla 1.8a2 supports accordingly dynamic collapsing of rows in both border-collapse models but not 1.7.x versions */ //document.getElementById("idtable").rows[intRowIndex].style.visibility = strVisibility; document.getElementById(strTableName).rows[intRowIndex].style.visibility = strVisibility; }else if(strVisibility == "visible"){ if(document.all && !window.opera){ //&& document.compatMode && document.compatMode == "CSS1Compat" && !window.opera){ document.getElementById(strTableName).rows[intRowIndex].style.display = "block"; }else if(document.getElementById && document.getElementById(strTableName).rows){ // Mozilla prior to 1.8a2, Opera 7.x and MSIE 5+ document.getElementById(strTableName).rows[intRowIndex].style.display = "table-row"; } }else if(strVisibility == "collapse"){ document.getElementById(strTableName).rows[intRowIndex].style.display = "none"; } } function ae2_set_row_visibility(strRowID, isVisible, dontCollapse){ //Hide/show the specified row (strRowID) as per isVisible (true/false) //This is a re-write of the above function using new styles and JS and assumes the presence of MM_findObj (from formFunctions.js) if ((row=MM_findObj(strRowID))!=null){ //Safri suppored: productSub: 20030107, userAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3 if(navigator.product == "Gecko" && navigator.productSub && ((navigator.productSub >= "20030107" && navigator.userAgent.indexOf("Safari") != -1) || (navigator.productSub > "20041010" && (navigator.userAgent.indexOf("rv:1.8") != -1 || navigator.userAgent.indexOf("rv:1.9") != -1)))) { /* Mozilla 1.8alpha; see bug 77019 and bug 242368; must be higher than 1.7.x Mozilla 1.8a2 supports accordingly dynamic collapsing of rows in both border-collapse models but not 1.7.x versions */ if(!dontCollapse) row.style.display=(isVisible==false) ? 'none' : 'table-row'; row.style.visibility=(isVisible==false) ? 'collapse' : 'visible'; //document.getElementById(strTableName).rows[intRowIndex].style.visibility = strVisibility; }else if(document.all && !window.opera){ // alert('here'); //&& document.compatMode && document.compatMode == "CSS1Compat" && !window.opera){ if(!dontCollapse) row.style.display=(isVisible==false) ? 'none' : 'block'; row.style.visibility=(isVisible==false) ? 'hidden' : 'visible'; //document.getElementById(strTableName).rows[intRowIndex].style.display = "block"; }else if(document.getElementById && document.getElementById(strTableName).rows){ alert('her2e'); if(!dontCollapse) row.style.display=(isVisible==false) ? 'none' : 'table-row'; row.style.visibility=(isVisible==false) ? 'hidden' : 'visible'; //document.getElementById(strTableName).rows[intRowIndex].style.display = "table-row"; } } }