function createDiapo(id){ var obj = getXhr(); obj.onreadystatechange = function(){ if(obj.readyState == 4 ){ //alert(obj.responseText); tab=obj.responseText.split("|"); var viewer = new PhotoViewer(); for(i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i"; //if(document.getElementById('PANIEROUINON')) document.getElementById('PANIEROUINON').innerHTML=""; //if(document.getElementById('PANIEROUINON')) document.getElementById('PANIEROUINON').innerHTML="glou"; window.opener.location.reload(); } } var dest = "http://www.cotedazur-montagne.com/ajax.php?action=ajoute_panier&ID="+id; obj.open("GET",dest,true); obj.send(null); }