
     function cleanCant(element)
    {
       if (element.value=='0.00') 
       {
           element.className = 'textIntoDataCant'
           element.value ='';
       }
    }
    function cleanInput(element, fraseContador)
    {
       var frase = '';
       if (fraseContador == 1)
       {
            frase = 'Escriba aqui el producto';
       }
       if (fraseContador == 2)
       {
            frase = 'Detalle su Producto';
       }
       if (element.value ==frase)
       {
            element.value='';
            element.className = 'textIntoData'
       }
    }
    function CheckCant(element)
    {
       if (element.value=='')
       {
            element.value='0.00';
       }
       if (!(isfloat(element.value)))
       {
          element.value='0.00';
       }
       if(element.value=='0.00')
       {
          element.className = 'textIntoCant'
       }
    }
    function CheckInput(element, fraseContador)
    {
       var frase = '';
       if (fraseContador == 1)
       {
            frase = 'Escriba aqui el producto';
       }
       if (fraseContador == 2)
       {
            frase = 'Detalle su Producto';
       }
       if (element.value=='')
       {
            element.value=frase;
       }
       if(element.value==frase)
       {
          element.className = 'textInto'
       }
    }
    function blurPlant(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }
    function focusPlant(element)
    {
        element.style.backgroundPosition = '-80px 0px';
    }
    function clickPlant(element)
    {
        element.style.backgroundPosition = '-161px 0px';
    }
    function overLogo(element)
    {
        element.style.backgroundPosition = '-274px 0px';
    }
    function outLogo(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }
    function isfloat(s)
    {
       var refloat = /^ *((\d+(\.\d*)?)|((\d*\.)?\d+)) *$/;
       if(refloat.test(s))
       {
         return true;
       }
       else
       {
         alert('Favor introduzca valores numéricos');
         return false;
       }
    }
    function MoreLines(Tabla, WUC) 
    {   var newIndex =  document.getElementById('ctl00_ContentPlaceHolder1_'+WUC+'_NuevaFila').value;
        var mainTable = document.getElementById(Tabla);
        var theCopiedRow = mainTable.insertRow(newIndex);
        for (var i=0; i<3; i++) 
        {
	        var nueva =  theCopiedRow.insertCell(i);
	        nueva.className = 'Celda'; 
	        
	        if (i == 0)
	        {
	            nueva.appendChild(ReturnInputCantidad(newIndex,WUC));
	        }
	         if (i == 1)
	        {
	            nueva.appendChild(ReturnInputProducto(newIndex,WUC));
	        }
	         if (i == 2)
	        {
	            nueva.appendChild(ReturnInputEsp(newIndex,WUC));
	        }
        }  
        document.getElementById('ctl00_ContentPlaceHolder1_'+WUC+'_NuevaFila').value = ((newIndex-1)+2);
    }
    function ReturnInputCantidad(newIndex, WUC)
    {
        var InputText = document.createElement('input');
        InputText.setAttribute('type','text');
        InputText.setAttribute('value','0.00');
        InputText.setAttribute('name', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+1);
        InputText.setAttribute('id', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+1);
        InputText.setAttribute('onfocus', 'cleanCant(this);');
        InputText.setAttribute('onblur', 'CheckCant(this);');
        InputText.setAttribute('class', 'textIntoCant');
        InputText.setAttribute('style','width: 70px;');
        return InputText;
    }
    function ReturnInputProducto(newIndex, WUC)
    {
        var InputText = document.createElement('input');
        InputText.setAttribute('type','text');
        InputText.setAttribute('value','Escriba aqui el producto');
        InputText.setAttribute('name', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+2);
        InputText.setAttribute('id', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+2);
        InputText.setAttribute('onfocus', 'cleanInput(this,1);');
        InputText.setAttribute('onblur', 'CheckInput(this,1);');
        InputText.setAttribute('class', 'textInto');
        InputText.setAttribute('style','width: 175px;');
        return InputText;
    }
    function ReturnInputEsp(newIndex, WUC)
    {
        var InputText = document.createElement('input');
        InputText.setAttribute('type','text');
        InputText.setAttribute('value','Detalle su Producto');
        InputText.setAttribute('name', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+3);
        InputText.setAttribute('id', 'ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+newIndex+'W'+3);
        InputText.setAttribute('onfocus', 'cleanInput(this,2);');
        InputText.setAttribute('onblur', 'CheckInput(this,2);');
        InputText.setAttribute('class', 'textInto');
        InputText.setAttribute('style','width: 240px;');
        return InputText;
    }
    function focusgr(element)
    {
        element.style.backgroundPosition = '-282px 0px';
    }
    function blurgr(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
    function clickgr(element)
    {
        element.style.backgroundPosition = '-141px 0px';
    }
    function focuspq(element)
    {
        element.style.backgroundPosition = '-101px 0px';
        element.firstChild.style.color = '#FFF';
    }
    function blurpq(element)
    {
        element.style.backgroundPosition = '0px 0px';
        element.firstChild.style.color = '#444444';
    }    
    function clickpq(element)
    {
        element.style.backgroundPosition = '-202px 0px';
    }
    function focusmed(element)
    {
        element.style.backgroundPosition = '-255px 0px';
    }
    function blurmed(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
    function clickmed(element)
    {
        element.style.backgroundPosition = '-128px 0px';
    }
    function clickfile(element)
    {
        element.style.backgroundPosition = '-233px 0px';
    }
    function focusmenu(element)
    {
        element.style.backgroundPosition = '-162px 0px';
    }
    function blurmenu(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
    function clickmenu(element)
    {
        element.style.backgroundPosition = '-324px 0px';
    }
    function blurprod(element)
    {
        element.style.backgroundPosition = '-1px 0px';
    }
	function focusprod(element)
    {
        element.style.backgroundPosition = '-177px 0px';
    } 
    function clickprod(element)
    {
        element.style.backgroundPosition = '-354px 0px';
    }
    function blurprodComprar(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }
	function focusprodComprar(element)
    {
        element.style.backgroundPosition = '-177px 0px';
    } 
    function clickprodComprar(element)
    {
        element.style.backgroundPosition = '-354px 0px';
    }
	function focushelp(element)
    {
        element.style.backgroundPosition = '-189px 0px';
    }
    function blurhelp(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
    function clickhelp(element)
    {
        element.style.backgroundPosition = '-378px 0px';
    }
	function focusmp(element)
    {
        element.style.backgroundPosition = '-218px 0px';
    }
    function blurmp(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
    function clickmp(element)
    {
        element.style.backgroundPosition = '-436px 0px';
    }
	function focustab(element)
    {
        element.style.backgroundPosition = '-339px 0px';
    }
    function blurtab(element)
    {
        element.style.backgroundPosition = '-4px 0px';
    }    
    function clicktab(element)
    {
        element.style.backgroundPosition = '-670px 0px';
    }
	function focustab_2(element)
    {
        element.style.backgroundPosition = '-497px 0px';
		element.style.color= '#7A7A7A';
    }
    function blurtab_2(element)
    {
        element.style.backgroundPosition = '0px 0px';
		element.style.color= '#7A7A7A';
    }    
    function clicktab_2(element)
    {
        element.style.backgroundPosition = '-1493px 0px';
		element.style.color= '#ffffff';
    }
	
    function focusama(element)
    {
        element.style.backgroundPosition = '-167px 0px';
    }
    function blurama(element)
    {
        element.style.backgroundPosition = '-0px 0px';
    }    
    function clickama(element)
    {
        element.style.backgroundPosition = '-334px 0px';
    }
	function focusgo(element)
    {
        element.style.backgroundPosition = '-29px 0px';
    }
    function blurgo(element)
    {
        element.style.backgroundPosition = '-0px 0px';
    }    
    function clickgo(element)
    {
        element.style.backgroundPosition = '-60px 0px';
    }
    function bluramai(element)
    {
        element.style.backgroundPosition = '0px 0px';
    }    
	function focusamai(element)
    {
        element.style.backgroundPosition = '-166px 0px';
    }
    function clickamai(element)
    {
        element.style.backgroundPosition = '-331px 0px';
    }
	function focusdes(element)
    {
        element.style.backgroundPosition = '-200px 0px';
    }
    function blurdes(element)
    {
        element.style.backgroundPosition = '3px 0px';
    }    
    function clickdes(element)
    {
        element.style.backgroundPosition = '-405px 0px';
    }
	
	function CheckEnter(event, WUC)
	{
        if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) 
        {
            var Fila = event.target.id.split('F')[1].split('W')[0];
            var Col= event.target.id.split('F')[1].split('W')[1];
            Col = ((Col -1) +2);
            if (Col==4)
            {
                Col = "1"
                Fila = ((Fila -1) +2);
                var newIndex =  document.getElementById('ctl00_ContentPlaceHolder1_'+WUC+'_NuevaFila').value;
				
                if (newIndex == Fila)
                {
					if (WUC == 'Cotizador1'){
						
						document.getElementById('ctl00_ContentPlaceHolder1_'+WUC+'_Especificaciones_Generales').focus();
					}
					else
					{
						document.getElementById('ctl00_ContentPlaceHolder1_NuevaSubasta1_CridTB').focus();
					}
                    return false;
                }       
            }
			
            document.getElementById('ctl00_ContentPlaceHolder1_'+WUC+'_COTF'+Fila+'W'+Col).focus();   
            return false;
        }
        return true;
	}
	
    function changeHeaderToProv()
    {
       document.getElementById('cent').style.backgroundImage = 'url(look3/comg.jpg)';
       document.getElementById('compras').style.display = 'none';
       document.getElementById('comprasMSJ').style.display = 'none';
       document.getElementById('der').style.display = 'none';
       document.getElementById('proveedores').style.display = '';
       document.getElementById('titprovee').style.display = '';
       document.getElementById('izqP').style.display = 'none';
       document.getElementById('izqC').style.display = '';
       
    }
    function changeHeaderToCom()
    {
       document.getElementById('cent').style.backgroundImage = 'url(look3/com.jpg)';
       document.getElementById('compras').style.display = '';
       document.getElementById('comprasMSJ').style.display = '';
       document.getElementById('der').style.display = '';
       document.getElementById('proveedores').style.display = 'none';
       document.getElementById('titprovee').style.display = 'none';
       document.getElementById('izqP').style.display = '';
       document.getElementById('izqC').style.display = 'none';
       
    }
    function MostarCat()
    {
      Ocultar = 0;
      document.getElementById('ctl00_categoriasDIV').style.display = '';
    }
    var Ocultar = 0;
    var Mostrar = 0;
    function OcultarCat()
    {
      Ocultar = 1;
      setTimeout("OcultarCatReal()",750);
    }
    function OcultarCatReal()
    {  
        if (Ocultar == 1)
        {
            document.getElementById('ctl00_categoriasDIV').style.display = 'none';
        }
    }
    function mostrarVentar(producto, totalproductos)
    {
        var i=0;
        for (i=1;i<=totalproductos;i++)
        {
            document.getElementById('DivVen'+i).style.display = 'none';
            document.getElementById('PubVen'+i).style.border = 'solid 1px #9a9a9a';
        }
    
        Mostrar = 0;
        document.getElementById('DivCot').style.display = 'none';
        document.getElementById('DivVen'+producto).style.display = '';
        document.getElementById('PubVen'+producto).style.border = 'solid 4px #A9A9A9';
    }
    function MostrarCotizador(producto)
    {
        Mostrar = 1;
        setTimeout('MostrarCotizadorReal('+producto+')',750);

    }
    function MostrarCotizadorReal(producto)
    {
        if (Mostrar==1)
        {
            document.getElementById('DivCot').style.display = '';
            document.getElementById('DivVen'+producto).style.display = 'none';
            document.getElementById('PubVen'+producto).style.border = 'solid 1px #9a9a9a';
        }
    }
    function PestaniaHover(element)
    {
        if (element == '1')
        {
            var numero =  document.URL.toLowerCase().search(/z/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa3.jpg)';    
            }
        }
        if (element == '2')
        {
            var numero =  document.URL.toLowerCase().search(/compradirecta/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa3.jpg)';    
            }
        }
        if (element == '3')
        {
            var numero =  document.URL.toLowerCase().search(/Subasta/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa3.jpg)';    
            }
        }
          
    }
    function PestaniaPress(element)
    {   var nuevadir = '';
        if (element == '1')
        {
           nuevadir='z.aspx';
        }
        if (element == '2')
        {
            nuevadir='compradirecta.aspx';
        }
        if (element == '3')
        {
            nuevadir='subasta.aspx';
        }   
        if(document.URL.toLowerCase().search(nuevadir)==-1)
        {
            window.location.href=nuevadir;
        }
    }
    function PestaniaOut(element)
    {
        if (element == '1')
        {
            var numero =  document.URL.toLowerCase().search(/z/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa2.jpg)';    
            }
            else
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa1.jpg)';    
            }
        }
        if (element == '2')
        {
            var numero =  document.URL.toLowerCase().search(/compradirecta/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa2.jpg)';    
            }
            else
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa1.jpg)';    
            }
        }
        if (element == '3')
        {
            var numero =  document.URL.toLowerCase().search(/Subasta/);
            if (numero == -1)
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa2.jpg)';    
            }
            else
            {
                document.getElementById('Pes'+element).style.backgroundImage='url(look3/pesa1.jpg)';    
            }
        }
    }
    function ShowSubmenu(element)
    {
       if (document.getElementById('submenuCot').style.display == '')
       {
            document.getElementById('submenuCot').style.display = 'none';
            element.style.backgroundImage ='url(look3/menu.jpg)'
             element.style.backgroundPosition = '0px 0px';
       }
       else
       {
            document.getElementById('submenuCot').style.display = '';
            element.style.backgroundImage = 'url(look3/menud.jpg)';
            element.style.backgroundPosition = '0px 0px';
       }
    }
	var imagenfocus = 0;
    function FocusImage(path, number)
    {
         document.getElementById('ImgGrande').src = path;
		 imagenfocus = number;
    }
    function ShowBigImage(pais, cat, prod)
	{
		window.open('fotosProducto.aspx?p='+pais+'&c='+cat+'&pd='+prod+'&par='+imagenfocus,'ImagenF','width=875,height=675,scrollbars=yes,resizable=no');
	}
	function Redirect(page){
		window.location.href = page;          
	}
	function ShowOferta(indice)
	{
		for(var i=0; i<3; i++) 
        {
			document.getElementById('ctl00_ContentPlaceHolder1_Ventas1_OfertasWUC1_OfertaGrande'+i).style.display = 'none';
		}
		document.getElementById('ctl00_ContentPlaceHolder1_Ventas1_OfertasWUC1_OfertaGrande'+indice).style.display = '';
	}
	function CatH(celda,indice, id_link)
	{
		celda.className = 'cats'+indice;
		if (indice =='4'){
		document.getElementById(id_link).style.color='#787777';
		}
		else{
		document.getElementById(id_link).style.color='#787777';
		}
	}
	function editDir(par){
	 if (par ==1){
		pref = 'ctl00_ContentPlaceHolder1_DireccionDeEntregaWUC1';
	 }	 
	 else{
		pref= 'ctl00_ContentPlaceHolder1_ConfirmarDireccionEntrega1';
	 }
	 document.getElementById(pref+'_NombreTB').disabled = false;
	 document.getElementById(pref+'_NombreTB').className = 'EditTB';
	 document.getElementById(pref+'_ApellidoTB').disabled = false;
	 document.getElementById(pref+'_ApellidoTB').className = 'EditTB';
	 document.getElementById(pref+'_DireccionTB').disabled = false;
	 document.getElementById(pref+'_DireccionTB').className = 'EditTB';
	 document.getElementById(pref+'_ZonaTB').disabled = false;
	 document.getElementById(pref+'_ZonaTB').className = 'EditTB';
	 document.getElementById(pref+'_CiudadTB').style.display = 'none';
	 document.getElementById(pref+'_DepartamentoTB').style.display = 'none';
	 document.getElementById(pref+'_PaisTB').style.display = 'none';
	 document.getElementById(pref+'_TelTB').disabled = false;
	 document.getElementById(pref+'_TelTB').className = 'EditTB';
	 document.getElementById(pref+'_ActualizarBT2').style.display = 'none';
	 document.getElementById(pref+'_PaisCB').style.display = '';
	 document.getElementById(pref+'_MunCB').style.display = '';
	 document.getElementById(pref+'_DepCB').style.display = '';
	 document.getElementById('divAct').style.display = 'none';
	}
	function TipoEntrega(element,indice,value)
	{
		if (document.getElementById('ctl00_ContentPlaceHolder1_OpcionesCompra1_Pago'+indice+'_0').checked)
			alert('1');
		if (document.getElementById('ctl00_ContentPlaceHolder1_OpcionesCompra1_Pago'+indice+'_1').checked){
			alert('2');
			alert(document.getElementById('ctl00_ContentPlaceHolder1_OpcionesCompra1_Subtotal0').innerHTML);
		}
		if (document.getElementById('ctl00_ContentPlaceHolder1_OpcionesCompra1_Pago'+indice+'_2').checked)
			alert('3');
	}
	function CalculoSubtotal()
	{
	}
	function editCB(cb){
		for(var i=1; i<=3; i++) 
        {
			 document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB'+i+''+cb).disabled = false;
			 document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB'+i+''+cb).className = 'EditTB';
		}
		document.getElementById('SavDiv'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTS'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_LS'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB4'+cb).style.display = 'none';
		document.getElementById('Cancel'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTC'+cb).style.display = '';
		document.getElementById('Editar'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTE'+cb).style.display = 'none';
		document.getElementById('Eliminar'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTD'+cb).style.display = 'none';
	}
	function CancelCB(cb){
		for(var i=1; i<=3; i++) 
        {
			 document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB'+i+''+cb).disabled = true;
			 document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB'+i+''+cb).className = 'noneTB';
		}
		document.getElementById('SavDiv'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTS'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_LS'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_TB4'+cb).style.display = '';
		document.getElementById('Cancel'+cb).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTC'+cb).style.display = 'none';
		document.getElementById('Editar'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTE'+cb).style.display = '';
		document.getElementById('Eliminar'+cb).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CuentasBancarias1_BTD'+cb).style.display = '';
	}
	function DeleteCB(){
		var answer = confirm ('¿Esta seguro que desea eliminar?')
		if (answer){
			return true;
		}
		else{
			return false;
		}
	}
	function Visacuotas(Ctarjeta, emisor)
	{		
		var Cuotas = document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_CuotasDiv');
		var Tarjeta;
		if (emisor=="1" || emisor == 1){
			Tarjeta = document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_CE'+Ctarjeta);
		}
		else{
			Tarjeta = document.getElementById('noneDiv');
		}
		Tarjeta.appendChild(Cuotas);
	}
	function VerEmisorNewCard(){
		return document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_TipoCB').options[document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_TipoCB').selectedIndex].value;
	}
	function OnChangeEmisor(){
		
		Visacuotas("CoutasNueva",document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_TipoCB').options[document.getElementById('ctl00_ContentPlaceHolder1_FormasPagoWUC1_TipoCB').selectedIndex].value);
		
		
	}
	function moveg(element, a,b){
	 element.style.backgroundPosition = a +'px '+b+'px';
	}
	function ShowActBT(element_id, valor )
	{
			document.getElementById('D'+element_id).style.display = '';	
	}
	function ToCurrrency(element,type)
	{
		var s
		if (type == '1')
		{
			s = element
		}
		else
		{
			s = document.getElementById('ctl00_ContentPlaceHolder1_CarretillaWUC1_T'+element_id)
		}
		num = s.value.toString().replace(/\$|\,/g,'');
		if(isNaN(num)){
			s.value = 0.00;
		}
		else
		{
			sign = (num == (num = Math.abs(num)));
			num = Math.floor(num*100+0.50000000001);	
			cents = num%100;
			num = Math.floor(num/100).toString();
			if(cents<10)cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
				num = num.substring(0,num.length-(4*i+3))+','+
				num.substring(num.length-(4*i+3));
				s.value = ((((sign)?'':'-') + num + '.' + cents));
		}
	}
	function search(control){
	
		var busqueda =  document.getElementById(control);
		if (busqueda.value.indexOf("buscando?")<0){
		
			window.location.href = 'productos.aspx?m=2&bus='+urlencode23(busqueda.value);
			//window.location.href = 'productos.aspx?m=2&bus='+_utf8_encode(busqueda.value);
		}
	}
	function clickTxtSearch(element){
	    var text = document.getElementById(element);
	    if(text.value.indexOf("buscando?")>=0){
	        text.value = '';
	    }else{
	        
	    }
	    text.className = 'tbBusIN';
	}
	function _utf8_encode(string) {
            return escape(string).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\&/g, '%26').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\=/g, '%3d');
    }
	function showDetSol(sol, element)
	{ 
		if (element.className == 'findic2') {
			element.className = 'findic1';
			document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_T'+sol).style.display = 'none';
			document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_FE'+sol).style.display = '';
		}
		else{
			element.className = 'findic2';
			document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_T'+sol).style.display = '';
			document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_FE'+sol).style.display = 'none';
		}
	}
	function showYacSol(sol,e)
	{ 
		document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_T'+sol).style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_CotizacionesWUC31_FE'+sol).style.display = 'none';
		e.style.display = 'none';
		
	}
	function urlencode23( str ) {
                             
    var histogram = {}, unicodeStr='', hexEscStr='';
    var ret = (str+'').toString();
    
    var replacer = function(search, replace, str) {
        var tmp_arr = [];
        tmp_arr = str.split(search);
        return tmp_arr.join(replace);
    };
   
    histogram["'"]   = '%27';
    histogram['(']   = '%28';
    histogram[')']   = '%29';
    histogram['*']   = '%2A';
    histogram['~']   = '%7E';
    histogram['!']   = '%21';
    histogram['%20'] = '+';
    histogram['\u00DC'] = '%DC';
    histogram['\u00FC'] = '%FC';
    histogram['\u00C4'] = '%D4';
    histogram['\u00E4'] = '%E4';
    histogram['\u00D6'] = '%D6';
    histogram['\u00F6'] = '%F6';
    histogram['\u00DF'] = '%DF';
    histogram['\u20AC'] = '%80';
    histogram['\u0081'] = '%81';
    histogram['\u201A'] = '%82';
    histogram['\u0192'] = '%83';
    histogram['\u201E'] = '%84';
    histogram['\u2026'] = '%85';
    histogram['\u2020'] = '%86';
    histogram['\u2021'] = '%87';
    histogram['\u02C6'] = '%88';
    histogram['\u2030'] = '%89';
    histogram['\u0160'] = '%8A';
    histogram['\u2039'] = '%8B';
    histogram['\u0152'] = '%8C';
    histogram['\u008D'] = '%8D';
    histogram['\u017D'] = '%8E';
    histogram['\u008F'] = '%8F';
    histogram['\u0090'] = '%90';
    histogram['\u2018'] = '%91';
    histogram['\u2019'] = '%92';
    histogram['\u201C'] = '%93';
    histogram['\u201D'] = '%94';
    histogram['\u2022'] = '%95';
    histogram['\u2013'] = '%96';
    histogram['\u2014'] = '%97';
    histogram['\u02DC'] = '%98';
    histogram['\u2122'] = '%99';
    histogram['\u0161'] = '%9A';
    histogram['\u203A'] = '%9B';
    histogram['\u0153'] = '%9C';
    histogram['\u009D'] = '%9D';
    histogram['\u017E'] = '%9E';
    histogram['\u0178'] = '%9F';
    
    ret = encodeURIComponent(ret);
 
    for (unicodeStr in histogram) {
        hexEscStr = histogram[unicodeStr];
        ret = replacer(unicodeStr, hexEscStr, ret); // Custom replace. No regexing
    }
   
    return ret.replace(/(\%([a-z0-9]{2}))/g, function(full, m1, m2) {
        return "%"+m2.toUpperCase();
    });
}
function npd(cant_visto, maximo, imagen){
	var actual = (document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value -1) +1;
	if(actual + cant_visto == maximo){
		imagen.src = '';
		imagen.style.display = 'none';
	}
	var amost = document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_CeldaPPP'+ (((actual-1)+1) + cant_visto));
	if (amost != null){
		amost.style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_CeldaPPP'+actual).style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value = (document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value -1) +2;
	}
	document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_flechaizq').src = 'look3/fipp.png';
	document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_flechaizq').style.display = '';
	
}
function npi(cant_visto, maximo, imagen){
	var actual = (document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value -1) +1;
	if(actual == 2){
		imagen.src = '';
		imagen.style.display = 'none';
	}
	aocult = document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_CeldaPPP'+(actual -1))
	if (aocult != null){
		document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_CeldaPPP'+ (((actual-1)+1) + cant_visto -1)).style.display = 'none';
		aocult.style.display = '';
		document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value = (document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_AOcultar').value -1);
	}
	document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_flechader').src = 'look3/fdpp.png';
	document.getElementById('ctl00_ContentPlaceHolder1_ctl00_BannerInferiorProveedoresWUC1_flechader').style.display = '';
}
