// JavaScript Document

function mouseovertd (o){
//       o.className="blank1"

       o.style.backgroundColor='ff7d02';
       
}
function mouseouttd (o){

	   var rowindex = o.rowIndex;
	   
		(rowindex%2==0)?(o.style.backgroundColor = 'fff'):(o.style.backgroundColor = 'eee');

	   
	   
      
}


function modifylist() {
	
	var listtitle = document.all ? document.all['resulttitle_table'] : document.getElementById('resulttitle_table');
	var table = document.all ? document.all['resultlist_table'] : document.getElementById('resultlist_table');
	var scrolldiv = document.getElementById('scrolldiv');
	var rowcount = table.rows.length;
	var listtitlecellcount = listtitle.cells.length;
	
	scrolldiv.style.overflow = 'auto';
	scrolldiv.style.width = '100%';
	
	if(rowcount<=15) {
		
		listtitle.rows[0].cells[0].width = '18%';
		listtitle.rows[0].cells[1].width = '32%';
		listtitle.rows[0].cells[2].width = '17%';
		listtitle.rows[0].cells[3].width = '17%';	
		listtitle.rows[0].cells[4].width = '16%';
		
		table.width = '100%';
		scrolldiv.style.height = '';
		scrolldiv.style.marginTop = '5px';
		
	}
	
	else {
		
		listtitle.rows[0].cells[0].width = '18%';
		listtitle.rows[0].cells[1].width = '30%';
		listtitle.rows[0].cells[2].width = '17%';
		listtitle.rows[0].cells[3].width = '17%';	
		listtitle.rows[0].cells[4].width = '18%';
		table.width = '97%';
		scrolldiv.style.height = '300px';
		scrolldiv.style.marginTop = '5px';
		scrolldiv.className = 'scrollstyle';
		
	}
	
}

window.onload = modifylist;