            /* OGV. 09/25/2009. Display rows for top products sold */
            function HideRows(pRowCnt, pDivCnt) {
                //alert(pRowCnt);
                for(var nRows=1; nRows<pRowCnt; nRows++) {
                    var Row = document.getElementById("phRow_" + pDivCnt + "_" + nRows);
                    Row.style.display='none';
                    document.getElementById("txtRowCount").value = 5;
                }
                document.getElementById("pDiv" & pDivCnt).innerHTML = "Show Top products...";
            }

            function displayRows(pStart, pEnd, pDivCnt) {

                var vEnd = document.getElementById("txtRowCount").value;
                //alert(vEnd);
//                for(var nRow=pStart; nRow<pEnd; nRow++){
                for (var nRow = pStart; nRow < vEnd; nRow++) {
                    var Row = document.getElementById("phRow_" + pDivCnt + "_" + nRow);
                    if(Row.style.display=='') Row.style.display='none';
                    else Row.style.display='';
                    document.getElementById("txtRowCount").value = pEnd;
                }

                if (pStart == 4) document.getElementById("txtRowCount").value = 10;
                else if (pStart == 1 && vEnd==10) {
                for (var nRow = 1; nRow < 10; nRow++) {
                    var Row = document.getElementById("phRow_" + pDivCnt + "_" + nRow);
                    Row.style.display = 'none';
                    document.getElementById("txtRowCount").value = 5
                    //alert(vEnd);
                }
            }  
                else {document.getElementById("txtRowCount").value = 10;
                } 

	            var vText;

	            if (document.getElementById('txtRowCount').value == pEnd) vText = "Minimize"; else vText = "Top Products...";
                //alert(vText);
	            //document.getElementById("pDiv" & pDivCnt).innerHTML = vText;

            }
            /* OGV. 09/25/2009. Display rows for top products sold */

