function UpdateNameField(src, type, dest)
{
	var today = new Date();
	var new_name = "";
	dest.value = today.format("DD/MM/YYYY HH:mm") + " - " + type + " - " + src.options[src.selectedIndex].text;
}

function openMessageBox(src)
{
	src.action = "demo_campagnes_messages.php";
	src.submit();
}

function PopUp(URL, nom, w, h)
{
	window.open(URL, nom, 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h);
}

function openPDF(zeform)
{
	loc = "genpdf.php?client_id=";
	loc += zeform.client_id.value + "&adresse=";
	loc += zeform.adresse.value;
	// window.open(loc, "pdf", 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=700,height=500');
	document.location = loc;
}