function alternateTblRows(theid) {
    if(document.getElementsByTagName)
    {
        var table = document.getElementById(theid);  
        var rows = table.getElementsByTagName("tr"); 
        for(i = 0; i < rows.length; i++){
             if(i % 2 == 0){
               rows[i].style.backgroundColor = "#f3f7fc";
             }else{
               rows[i].style.backgroundColor = "#ffffff";
             }
             //for the cell padding
             for (y = 0; y < rows[i].cells.length; y++) {
                if(y == 0) {
                    rows[i].cells[y].align = "left";
                    rows[i].cells[y].style.paddingLeft = "10px";
                }
                else {
                    
                    rows[i].cells[y].align = "right";
                    rows[i].cells[y].style.paddingRight = "10px";
                }
             }       
        }
    }
}

function AdjustColumnsHeight(col_ID, col2_ID)
{
	var colID = col_ID;
	var col2ID = col2_ID;
	
    
	// get a reference to the two DIVS that make up the columns
	var SidebarDiv = window.document.getElementById(colID);
	var MainDiv = window.document.getElementById(col2ID);
	   
 
	// calculate the max height
	var hCol1 = SidebarDiv.offsetHeight;           
	var hCol2 = MainDiv.offsetHeight;
	
    
	var mxH = Math.max(hCol1, hCol2);				
	
    
	window.document.getElementById(colID).style.height = mxH + 'px';
	window.document.getElementById(col2ID).style.height = mxH + 'px'; 
 }