///////////////////////////////////////////////////////////////
// CONTROLES PANIER											 //
///////////////////////////////////////////////////////////////
function del_ctrl(i,nom){
var message = "Vous allez supprimer le produit " + nom  + " de votre panier.\n\nConfirmez la suppression ?";
if(confirm(message))
	{window.location="panier.php?do=3&i=" + i;}
}
function del_panier_ctrl(){
var message = "Vous allez vider totalement le contenu de votre panier.\n\nVoulez-vous continuer ?";
if(confirm(message))
	{window.location="panier.php?do=4";}
}

function verifForm(form) 
{
	if (form.nom.value == "" || form.adresse.value == "" ||   form.cp.value == "" || form.ville.value == "" || form.tel.value == "" || form.email.value == "")
		{
			if(form.nom.value == "")
				{
				document.contact.nom.style.borderColor="#E60003";
				}
			if(form.adresse.value == "")
				{
				document.contact.adresse.style.borderColor="#E60003";
				}
			if(form.cp.value == "")
				{
				document.contact.cp.style.borderColor="#E60003";
				}
			if(form.ville.value == "")
				{
				document.contact.ville.style.borderColor="#E60003";
				}
			if(form.tel.value == "")
				{
				document.contact.tel.style.borderColor="#E60003";
				}
			if(form.email.value == "")
				{
				document.contact.email.style.borderColor="#E60003";
				}

		return false;
		
		}

	var mail=document.contact.email.value;
	 ctl = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/;
	
	if (mail.search(ctl) != -1)/* {	if (form.email.value.indexOf('@') == -1 )*/
		{return true;}
	else
		{
		alert('Une adresse Email valide est nécessaire.');
		return false;
		}

return true;
	
}

function verifForm2(form) 
{
	if (form.nom.value == "" || form.adresse.value == "" || form.cp.value == "" || form.ville.value == "" || form.tel.value == "" || form.email.value == "")
		{

			if(form.nom.value == "")
				{
				document.commander.nom.style.borderColor="#E60003";
				}
			if(form.adresse.value == "")
				{
				document.commander.adresse.style.borderColor="#E60003";
				}
			if(form.cp.value == "")
				{
				document.commander.cp.style.borderColor="#E60003";
				}
			if(form.ville.value == "")
				{
				document.commander.ville.style.borderColor="#E60003";
				}
			if(form.tel.value == "")
				{
				document.commander.tel.style.borderColor="#E60003";
				}
			if(form.email.value == "")
				{
				document.commander.email.style.borderColor="#E60003";
				}


		return false;
		
		}


	var mail=document.commander.email.value;
	 ctl = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/;
	
	if (mail.search(ctl) != -1)/* {	if (form.email.value.indexOf('@') == -1 )*/
		{return true;}
	else
		{
		alert('Une adresse Email valide est nécessaire.');
		return false;
		}

	return true;
	
}
//////////////////////////////////////
// POPUP SUR IMAGE - TAILLE ADAPTEE //
//////////////////////////////////////
<!--
function resizePopUp(monImage, monTitre)
    {
	w = window.open('','chargement','width=10,height=10');
	w.document.write( "<html><head><title>"+monTitre+"</title>\n" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false;\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true;\n");
	w.document.write( "else if(document.layers)NN4=true;\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31);\n");
	w.document.write( "else if(NN6) self.sizeToContent();\n");
	w.document.write( "else window.resizeTo(document.images[0].width,document.images[0].height+20);\n");
	w.document.write( "self.focus();\n");
	w.document.write( "}\n</scri");
	w.document.write( "pt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'>" );
	w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 alt='"+monTitre+"'></a>" );
	w.document.write( "</body></html>" );
	w.document.close();
	}
//-->