function modificarDetallFoto(a){
document.getElementById('capaPreus').style.display='block';
document.getElementById('fade').style.display='block';
var variable = 1;
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("capaPreus").innerHTML=xmlhttp.responseText;
$('#tamany').change(function(){
var valor = $('#tamany').val();
if (valor != "CD/4.00") {
document.getElementById('quantitatFotos').style.display='block';
}
if (valor == "CD/4.00") {
document.getElementById('quantitatFotos').style.display='none';
}
if (valor == "res") {
document.getElementById('quantitatFotos').style.display='none';
}
});
}
}
xmlhttp.open("POST","posarPreusFotos.php?variable=1&nomarxiu="+a,true);
xmlhttp.send();
}