function clearData() {
	try {
		window.clipboardData.setData('text','');
		setTimeout('clearData()',5);
	}
	catch (exception) {
		setTimeout('clearData()',5);
	}
}

function min3(pass,minStr) {
	if(pass == 0) {
		if (confirm("Le montant minimum d'une commande est de "+minStr+".  Voulez-vous continuer ?")) {
			window.top.location.href = "paiementRedir.php";
		}
	}
	else {
		window.top.location.href = "paiementRedir.php";
	}
}

function imprimer_coupon() {
	var prn = new Image();
	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (agt.indexOf("mac") != -1) {
		alert("Appuyer sur 'Commande + p' pour imprimer");
	}
	else {
		alert("Appuyer sur 'Ctrl + p' pour imprimer");
	}
}

function popIt(filename, w, h){ 
	pos_x = (screen.width/2) - (w/2)+20;
	if(screen.height < 1200) {
		h = screen.height-130;
	}
    else {
		h = 1200;
	}
	pos_y = 0;
	window.open(filename, "", "toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, resizable=yes, copyhistory=no, width="+w+", height="+h+", left="+pos_x+", top="+pos_y);
}

function afficherVignette(form,no){
	if(form.value != "") {
		document.images["vignette" + no].src = "file:///" + form.value;
	}
}

function showFlash1(param) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=581 HEIGHT=804>\n');
	document.write(param);
	document.write('</object>\n');
}

function showFlash2(param) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=581 HEIGHT=804>\n');
	document.write(param);
	document.write('</object>\n');
}