


function cargaContenido(ele)
{
	var tabsIdS123=new Array();
	tabsIdS123['tab1']='seccion1';
	tabsIdS123['tab2']='seccion2';

	var contenedor='tabContenido';

		tabContenedor=document.getElementById("tabContenido");
	for(keyR in tabsIdS123)
	{
			if (keyR == "tab1" || keyR == "tab2"){
			elemento=document.getElementById(keyR);	
		
				if(elemento.className=='tabOn')		
				elemento.className='tabOff';	
			}
	}
	
	
	ele.className='tabOn';		
	
	if ((ele.id) == "tab2"){
		document.getElementById("idbusca").style.display = "none";
		document.getElementById("txtform").style.display = "block";	
	}else {
		document.getElementById("idbusca").style.display = "block";
		document.getElementById("txtform").style.display = "none";		
	}
}

function mouseSobre()
{
	if(this.className!='tabOn')	
		this.className='tabHover';	
}

function mouseFuera()
{	
	if(this.className!='tabOn')
		this.className='tabOff';
}

