function selItem()
{
	alert('seleccionar item');
	//restoreColorFila();
	//guardarColorFila(src,colorOrig,fontItem)	
	////alert(fontItem);	
	
	////document.all[fontItem].color=colorOrig;
	//src.bgColor='ffffff'; 
	//link(url); 	
}


function ComboCtrlButton1(ControlName,nombreTxtControl) {
    document.all[ControlName+'SubDiv2'].style.display = 'block';
    document.all[ControlName+'SubDiv1'].style.display = 'none'; 
    document.all[nombreTxtControl].focus();
    
  }

function ComboCtrlButton3(ControlName,nombreTxtControl) {
    document.all[ControlName+'SubDiv1'].style.display = 'block';
    document.all[ControlName+'SubDiv2'].style.display = 'none';
	document.all[nombreTxtControl].value="";	
	RestoreFilas();
      
  }
  
 /* TABLAS CON ESTILO */
 


function window_onload(ControlName)
{
	//alert(ControlName);
	document.all(ControlName).focus();
}


function MaximizarBrowser()
{				
	window.resizeTo(window.screen.availWidth,window.screen.availHeight);
	window.moveTo(0,0);
}



function EC(TheTR,img)
{ 
	
	var DataTR = eval('document.all.' + TheTR); 
	if (DataTR.style.display=="block" || DataTR.style.display=="" )
	 { 				
		DataTR.style.display="none"; 
	 	img.children[1].children[0].src='../Imagenes/flechaabajo.ico'; 
	 	
	 } 
	else 
	{ 	
		DataTR.style.display="block"; 
		img.children[1].children[0].src='../Imagenes/flechaarriba.ico'; 
		
	}		
} 	
	



  
// Deshabilitar el botón derecho del mouse
 
function right(e) {

if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2)) {
alert("Lo siento, se encuentra deshabilitada.");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Lo siento,se encuentra deshabilitada.");
return false;
}
return true;
}
function inhabilitarBtnDerecho() 
{
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
}

