
function toggle(x,origColor){
   var newColor = '#FFFF00';
   var table = document.getElementById('blpricnTable');  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
  if(rows[i].className == "rowforprices"){
      rows[i].style.backgroundColor = origColor; 
  }else{
      rows[i].style.backgroundColor = '#FFF';
     } 
 }		
 if ( x.style ) {
		x.style.backgroundColor = (newColor == x.style.backgroundColor)? origColor : newColor;
	}
}


function toggle2tables(x,origColor){
   var newColor = '#FFFF00';
   var table = document.getElementById('blpricnTable');  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
  if(rows[i].className == "rowforprices"){
      rows[i].style.backgroundColor = origColor; 
  }else{
      rows[i].style.backgroundColor = '#FFF';
     } 
 }	
   var table = document.getElementById('blpricnTable2');  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
  if(rows[i].className == "rowforprices"){
      rows[i].style.backgroundColor = origColor; 
  }else{
      rows[i].style.backgroundColor = '#FFF';
     } 
 }	
 if ( x.style ) {
		x.style.backgroundColor = (newColor == x.style.backgroundColor)? origColor : newColor;
	}
}


