
var vOC;
var	vOC1;
var	vOC2;
var	vOC3;
var	vOC10;
var	vOC11;
var	vOC12;
var	vOC19;
var	vOC20;
var	vOC21;

function shl(banggia,id)
{
	var tab = banggia.firstChild;
	if(!tab) return false;
	for (i = 0; i < tab.rows.length; i++)
	{
		tab.rows[i].onmouseover=function(){mv(this)}
		tab.rows[i].onmouseout=function(){mo(this)}
		tab.rows[i].ondblclick=function(){addFavourite(this)}
	}
	return true;
}

function addFavourite(r)
{
    AddOrRemoveCookie('HCMSelectList',r.id,7);    
}

function mv(r)
{	
    if(r.cells.length > 10)
    {
	    vOC=r.style.cssText;
	    r.style.cssText="background-color:#808685; height:21px;";
	    vOC0 = r.cells[0].style.cssText;
	    vOC1 = r.cells[1].style.cssText;
	    vOC2 = r.cells[2].style.cssText;
	    vOC3 = r.cells[3].style.cssText;
	    vOC4 = r.cells[4].style.cssText;
	    vOC5 = r.cells[5].style.cssText;
	    vOC6 = r.cells[6].style.cssText;
	    vOC7 = r.cells[7].style.cssText;
	    vOC8 = r.cells[8].style.cssText;
	    vOC9 = r.cells[9].style.cssText;
	    vOC10 = r.cells[10].style.cssText;
	    vOC11 = r.cells[11].style.cssText;
	    vOC12 = r.cells[12].style.cssText;
	    vOC13 = r.cells[13].style.cssText;
	    vOC14 = r.cells[14].style.cssText;
	    vOC15 = r.cells[15].style.cssText;
	    vOC16 = r.cells[16].style.cssText;
	    vOC17 = r.cells[17].style.cssText;
	    vOC18 = r.cells[18].style.cssText;
	    vOC19 = r.cells[19].style.cssText;
	    vOC20 = r.cells[20].style.cssText;
	    vOC21 = r.cells[21].style.cssText;
	    vOC22 = r.cells[22].style.cssText;
	    r.cells[0].style.cssText = "background-color:#808685; height:21px;" + vOC0;	
	    r.cells[1].style.cssText = "background-color:#808685; height:21px;" + vOC1;				
	    r.cells[2].style.cssText = "background-color:#808685; height:21px;" + vOC2;
	    r.cells[3].style.cssText = "background-color:#808685; height:21px;" + vOC3;	
	    r.cells[4].style.cssText = "background-color:#808685; height:21px;" + vOC4;	
	    r.cells[5].style.cssText = "background-color:#808685; height:21px;" + vOC5;	
	    r.cells[6].style.cssText = "background-color:#808685; height:21px;" + vOC6;	
	    r.cells[7].style.cssText = "background-color:#808685; height:21px;" + vOC7;	
	    r.cells[8].style.cssText = "background-color:#808685; height:21px;" + vOC8;	
	    r.cells[9].style.cssText = "background-color:#808685; height:21px;" + vOC9;								
	    r.cells[10].style.cssText = "background-color:#808685; height:21px;" + vOC10;
	    r.cells[11].style.cssText = "background-color:#808685; height:21px;" + vOC11;
	    r.cells[12].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[13].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[14].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[15].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[16].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[17].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[18].style.cssText = "background-color:#808685; height:21px;" + vOC12;
	    r.cells[19].style.cssText = "background-color:#808685; height:21px;" + vOC19;
	    r.cells[20].style.cssText = "background-color:#808685; height:21px;" + vOC20;
	    r.cells[21].style.cssText = "background-color:#808685; height:21px;" + vOC21;
	    r.cells[22].style.cssText = "background-color:#808685; height:21px;" + vOC22;
	}
}
function mo(r)
{
    if(r.cells.length > 10)
    {
	    r.style.cssText=vOC;
	    r.cells[0].style.cssText = vOC0;
	    r.cells[1].style.cssText = vOC1;
	    r.cells[2].style.cssText = vOC2;
	    r.cells[3].style.cssText = vOC3;
	    r.cells[4].style.cssText = vOC4;
	    r.cells[5].style.cssText = vOC5;
	    r.cells[6].style.cssText = vOC6;
	    r.cells[7].style.cssText = vOC7;
	    r.cells[8].style.cssText = vOC8;
	    r.cells[9].style.cssText = vOC9;
	    r.cells[10].style.cssText = vOC10;
	    r.cells[11].style.cssText = vOC11;
	    r.cells[12].style.cssText = vOC12;
	    r.cells[13].style.cssText = vOC13;
	    r.cells[14].style.cssText = vOC14;
	    r.cells[15].style.cssText = vOC15;
	    r.cells[16].style.cssText = vOC16;
	    r.cells[17].style.cssText = vOC17;
	    r.cells[18].style.cssText = vOC18;
	    r.cells[19].style.cssText = vOC19;	
	    r.cells[20].style.cssText = vOC20;
	    r.cells[21].style.cssText = vOC21;
	    r.cells[22].style.cssText = vOC22;
	}
}