// JavaScript Document

function changeCountry(e)
{
	index = document.frmCartShop.countryList.selectedIndex;
	document.getElementById('listCountry').innerHTML = document.frmCartShop.countryList.options[index].text;
	document.getElementById('cSet').value=e.value;
	$('#country').fadeOut('slow');
	for (i=0;i<document.frmCartShop.ship.length;i++)
	if (document.frmCartShop.ship[i].checked) e =document.frmCartShop.ship[i].value;
	pais = document.getElementById('cSet').value;
	pedido = document.getElementById('totalPedido').value;
	totCantidad = document.getElementById('totQuantity').value;
	calculate(e,pedido,pais,totCantidad);
}
function changeCountry2(e)
{
	index = document.frmShipping2.countryList2.selectedIndex;
	document.getElementById('listCountry2').innerHTML = document.frmShipping2.countryList2.options[index].text;
	document.getElementById('cSet2').value=e.value;
	$('#country2').fadeOut('slow');
	for (i=0;i<document.frmShipping2.ship.length;i++)
	if (document.frmShipping2.ship[i].checked) e =document.frmShipping2.ship[i].value;
	pais = document.getElementById('cSet2').value;
	pedido = document.getElementById('totalPedido2').value;
	calculate2(e,pedido,pais);
}
function changeCountry1(e)
{
	index = document.frmShipping1.countryList1.selectedIndex;
	document.getElementById('listCountry1').innerHTML = document.frmShipping1.countryList1.options[index].text;
	document.getElementById('cSet1').value=e.value;
	$('#country1').fadeOut('slow');
	for (i=0;i<document.frmShipping1.ship.length;i++)
	if (document.frmShipping1.ship[i].checked) e =document.frmShipping1.ship[i].value;
	pais = document.getElementById('cSet1').value;
	pedido = document.getElementById('totalPedido1').value;
	calculate1(e,pedido,pais);
}

function PhotoUpdateAppers()
{
if ((document.getElementById('PhotoDivUpdate').style.display)!='none')
	{
		$("#PhotoDivUpdate").hide();
	}
	else
	{
		$("#PhotoDivUpdate").show();
	}	
}
function PhotoUpdateAppers2()
{
if ((document.getElementById('PhotoDivUpdate2').style.display)!='none')
	{
		$("#PhotoDivUpdate2").hide();
	}
	else
	{
		$("#PhotoDivUpdate2").show();
	}	
}
function PhotoUpdateAppers3()
{
if ((document.getElementById('PhotoDivUpdate3').style.display)!='none')
	{
		$("#PhotoDivUpdate3").hide();
	}
	else
	{
		$("#PhotoDivUpdate3").show();
	}	
}