var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;

var rowlight=new Array(12);

for(x=0;x<rowlight.length;x++)
{
	rowlight[x]=new Array()
	rowlight[x]["name"]="celda"+x;
    rowlight[x]["stat"]=false;
}

function overmenu(id,celda)
{
	if(rowlight[id]["stat"]==false){
	        if(ie4){
        	        document.all[celda].style.background='#C9CED4'
		}else{
			if(ns6){
				document.getElementById(celda).style.background='#C9CED4'
			}
		}
	}
}

function outmenu(id,celda)
{
	if(rowlight[id]["stat"]==false)
	{
		if(ie4){
			document.all[celda].style.background='#D7DADF'
		}else{
			if(ns6)
			{
				document.getElementById(celda).style.background='#D7DADF'
			}
		}
	}
}

function activamenu(id,celda)
{
	for(j=0;j<rowlight.length;j++){
		if((j==id)&&(rowlight[j]["stat"]==false)){
			f = rowlight[j]["name"];
			if(ie4){
				document.all[f].style.background='#C9CED4'
			}else{
				if(ns6){
					document.getElementById(f).style.background='#C9CED4'
				}
			}
       		 	rowlight[j]["stat"]=true;
        	}else{
      			f = rowlight[j]["name"];
			if(ie4){
				document.all[f].style.background='#D7DADF'
			}else{
				if(ns6){
					document.getElementById(f).style.background='#D7DADF'
					}
			}
        		rowlight[j]["stat"]=false;
        	}
      }
window.focus();
}

function registro(procedencia)
{
	window.open("/comunidad/avisolegal.cfm?procedencia="+procedencia,"REGISTRO_COCACOLA","width=616,height=400");
}

function modificar()
{
	window.open("/comunidad/usuarios/modificar_registro.cfm","REGISTRO_COCACOLA","width=616,height=400");
}