function ChangeUrl(formulaire)
	{
	if (formulaire.url.selectedIndex != 0)
		{
		location.href = formulaire.url.options[formulaire.url.selectedIndex].value;
	 	}
	else 
		{
		alert('Veuillez choisir une destination.');
		}
	}
	
function doPopup(url, width, height)
{
	var popupy = window.screen.height/2 - 200;
	var popupx = window.screen.width/2 - 200;
	var heightN = height;
	if (navigator.appName == 'Netscape')
	{
		var OuvrirQuoi=window.open(url,"suite","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+width+",height="+heightN+",screenX="+popupx+",screenY="+popupy);
	    if (!OuvrirQuoi.opener) OuvrirQuoi.opener = self;
        if (OuvrirQuoi.focus != null) OuvrirQuoi.focus();	
// si taille dif alors
			OuvrirQuoi.resizeTo(width,heightN);			
	}
	else
	{
		 var OuvrirQuoi=window.open(url,"suite","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",left="+popupx+",top="+popupy);
	    if (!OuvrirQuoi.opener) OuvrirQuoi.opener = self;
		if (OuvrirQuoi.focus != null) OuvrirQuoi.focus();
// si taille dif alors
			OuvrirQuoi.resizeTo(width,height);
		}
}

function formsubmit()
{
	document.MailForm.action = 'commande2.asp';
	document.MailForm.submit();
}

function formrecalculate()
{
	document.MailForm.action = 'commande1.asp';
	document.MailForm.submit();
}

function formmodif()
{
	document.MailForm.action = 'commande.asp';
	document.MailForm.submit();
}

function formok()
{
	document.MailForm.action = 'commande4.asp';
	document.MailForm.submit();
}

function formokfin()
{
	document.MailForm.action = 'commande3.asp';
	document.MailForm.target = '_blank';
	document.MailForm.submit();
}