Bueno tengo el programa,, lo que quiero hacer es que cuando presionen en una foto, esta envie su valor a la tabla principal que esta al centro y que tiene por defecto 2 graficos segun sea elegido una opcion u otra, bueno lo que quiero es que al darle sobre las mini imagenes se envie el valor del grafico a agrandar asi se mostrara en el centro el grafico quedebe y nocomoahora que tengo puesto un estatico como muestra nada mas.
<script>
function Buscar()
{
/*paises= document.getElementById("paises").value*/
pais=document.all("paises").value
if (pais=="Latam")
{
document.all("tabla").style.display="block";
document.all("tabla2").style.display="block";
document.all("tabla4").style.display="block";
}
else
{
document.all("tabla").style.display="block";
document.all("tabla2").style.display="block";
/*document.all("tabla5").style.display="block";*/
}
}
function ampliar()
{
pais=document.all("paises").value
if (pais=="Latam")
{
document.all("tabla5").style.display="block";
}
else
{
document.all("tabla3").style.display="block";
}
}
</script>
</HEAD>
<BODY>
<DIV>
<TABLE border=0 bordercolor=black style="DISPLAY: none; BORDER-COLLAPSE: collapse" cellSpacing=1 cellPadding=1 width="100%" id="tabla" name="tabla">
<tr>
<td width=20%>
<DIV>
<TABLE border=1 bordercolor=black style="DISPLAY: none; BORDER-COLLAPSE: collapse" cellSpacing=1 cellPadding=1 width="19%" id="tabla2" name="tabla2">
<tr>
<td border=1 align="left" width=20%><a href="#" onclick=ampliar()><img src="com_graph1.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100"></a>
</td>
<td width="50%">
<P></P></DIV>
</tr>
<tr>
<td align="left"><font class="texto_3">Chile NS Actual/Budget</font></td>
</tr>
<tr>
<td align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph2.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" >
</td>
</tr>
<tr>
<td><font class="texto_3">Chile NS Growth Actual/Budget Cumulative</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph3.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100"></a>
</tr>
<tr>
<td><font class="texto_3">Chile NS Growth Actual/Budget Past Year</font></td>
</tr>
<tr>
<td align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph4.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" ></a>
</tr>
<tr>
<td><font class="texto_3">Chile GP %NS Actual/budget </font></td>
</tr>
<tr >
<td border=1 align="left" width=20%><a href="#" onclick=ampliar()><img src="com_graph5.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100"></a>
</tr>
<tr>
<td align="left"><font class="texto_3">Chile GP %NS Actual/Budget Cumulative</font></td>
</tr>
<tr>
<td align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph6.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" ></a>
</tr>
<tr>
<td><font class="texto_3">Chile O Ebitda Actual/Budget</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph7.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100"></a>
</tr>
<tr>
<td><font class="texto_3">Chile O Ebitda Actual/Budget Cumulative</font></td>
</tr>
<tr>
<td align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph8.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" ></a>
</tr>
<tr>
<td><font class="texto_3">Chile SG&A Expenses Actual/Budget</font></td>
</tr>
<tr >
<td border=1 align="left" width=20%><a href="#" onclick=ampliar()><img src="com_graph9.asp?var1=<%=ano%>&var2=<%=mes% >&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&va r5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="9" ></a>
</tr>
<tr>
<td align="left"><font class="texto_3">Chile SG&A Expenses % NS (Actual/Budget) </font></td>
</tr>
<tr>
<td align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph10.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="10" ></a>
</tr>
<tr>
<td><font class="texto_3">Chile SG&A Expenses % NS Cumulative (Actual/Budget)</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph11.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="11"></a>
</tr>
<tr>
<td><font class="texto_3">Chile Inventory Days</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph12.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="12"></a>
</tr>
<tr>
<td><font class="texto_3">Total Inventorys</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph13.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="13"></a>
</tr>
<tr>
<td><font class="texto_3">Accounts Receivable Days</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph14.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="14"></a>
</tr>
<tr>
<td><font class="texto_3">Accounts Receivable</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph15.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="15"></a>
</tr>
<tr>
<td><font class="texto_3">Accounts Payable Days</font></td>
</tr>
<tr >
<td border=1 align="left" width=20% ><a href="#" onclick=ampliar()><img src="com_graph16.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" width="140" height="100" value="16"></a>
</tr>
<tr>
<td><font class="texto_3">Accounts Payable Trade</font></td>
</tr>
</table>
</td>
<td width=60% align=center valign=top>
<DIV>
<TABLE align="center" border=1 bordercolor=black style="DISPLAY: none; BORDER-COLLAPSE: collapse" cellSpacing=1 cellPadding=1 width="59%" id="tabla3" name="tabla3" >
<tr>
<td>
<img src="com_graph11.asp?var1=<%=ano%>&var2=<%=mes %>&var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&v ar5=<%=Cuenta%>&var6=<%=ver%>" align="left" >
</td>
</tr>
</table>
</div>
<DIV>
<TABLE align="center" border=1 bordercolor=black style="DISPLAY: none; BORDER-COLLAPSE: collapse" cellSpacing=1 cellPadding=1 width="59%" id="tabla5" name="tabla5" >
<tr>
<td>
<img src="resultado.asp?var1=<%=ano%>&var2=<%=mes%> &var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&var 5=<%=Cuenta%>&var6=<%=ver%>" align="left" >
</td>
</tr>
</table>
</div>
</td>
<td width=20% align=right valign=top>
<DIV>
<TABLE align="right" border=1 bordercolor=black style="DISPLAY: none; BORDER-COLLAPSE: collapse" cellSpacing=1 cellPadding=1 width="19%" id="tabla4" name="tabla4" >
<tr>
<td><a href="#" onclick=ampliar()><img src="resultado.asp?var1=<%=ano%>&var2=<%=mes%> &var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&var 5=<%=Cuenta%>&var6=<%=ver%>" align="rigth" width="140" height="100" ></a>
</td>
</tr>
<tr>
<td><font class="texto_3">LATAM NS Actual/Budget </font></td>
</tr>
<tr>
<td><a href="#" onclick=ampliar()><img src="resultado.asp?var1=<%=ano%>&var2=<%=mes%> &var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&var 5=<%=Cuenta%>&var6=<%=ver%>" align="rigth" width="140" height="100" ></a>
</td>
</tr>
<tr>
<td><font class="texto_3">LATAM NS Cumulative (Actual/Budget) / Growth % </font></td>
</tr>
<tr>
<td><a href="#" onclick=ampliar()><img src="resultado.asp?var1=<%=ano%>&var2=<%=mes%> &var3=<%=Tc_Mes%>&var4=<%=tc_ano%>&var 5=<%=Cuenta%>&var6=<%=ver%>" align="rigth" width="140" height="100" ></a>
</td>
</tr>
<tr>
<td><font class="texto_3">LATAM NS Actual/ Past Year Cumulative </font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</BODY>
</HTML>