function afficheVignette(cheminVignette,cheminMaxi,width) {
	document.write('<a href="javascript:afficheMaxi(\''+cheminMaxi+'\')"><img src="'+cheminVignette+'" width="'+width+'px" alt="cliquez ici pour agrandir l\'image"></a>');
}
function afficheMaxi(chemin) {
	i1 = new Image;
	i1.src = chemin;
	html = '<html><head><title>Achat VIP.com</title></head><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0><center><img style="cursor:pointer;" src="'+chemin+'" border=0 name=imageTest onClick="window.close()" onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+38)" alt="Cliquez pour fermer"></center></body></html>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}

function popup_vente(num) {
	popupvente = window.open(AIMG_FLASH + num + '/anim.php?pop=1','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=940,height=520');
}

function popup_video(url) {
	popupvideo = window.open(url,'_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=350,height=350');
}

function pop_aide() {
	var top = (screen.height-400)/2;
	var left = (screen.width-626)/2;
	var pop_aide = window.open("http://www.achatvip.com/aide.html","pop_aide","height=400,width=626,top="+top+",left="+left);
}

function pop_colissimo(tracking) {
	var top = (screen.height-600)/2;
	var left = (screen.width-800)/2;
	var pop_colissimo = window.open('http://www.coliposte.net/particulier/suivi_particulier.jsp?colispart='+tracking,"pop_colissimo","height=600,width=800,top="+top+",left="+left);
}

function pop_kiala(track, dspid, pays) {
	var top = (screen.height-600)/2;
	var left = (screen.width-800)/2;
	var pop_colissimo = window.open('http://www.kiala.' + pays + '/tracking.jsp?language=FR&dspid=' + dspid + '&dspParcelID=' + track,"pop_colissimo","height=600,width=800,top="+top+",left="+left);
}

function pop_facture(facture) {
	var top = (screen.height-600)/2;
	var left = (screen.width-800)/2;
	var pop_facture = window.open(facture,"","height=600,width=800,top="+top+",left="+left+",scrollbars=yes,menubar=yes,resizable=1");
}
