<!-- Sauter

function PopForm(theForm)
{
  newwindow=window.open(theForm,'pop','resizable=yes, scrollbars=yes,height=500,width=700,left=150,top=150');
  if (window.focus)
     {
     newwindow.focus()
     }
}

function PopPush(theForm)
{
  newwindow=window.open(theForm,'push','menubar=no, status=no, resizable=yes, scrollbars=yes,height=350,width=600,left=220,top=160');
  if (window.focus)
     {
     newwindow.focus()
     }
}

function PopLiv(theForm)
{
  newwindow=window.open(theForm,'liv','menubar=no, status=no, resizable=no, scrollbars=no,height=450,width=660,left=190,top=140');
  if (window.focus)
     {
     newwindow.focus()
     }
}

function SelType()
{
 var i;
 var ValSel;

 i=document.mag["ltypes"].selectedIndex;
 ValSel=document.mag["ltypes"].options[i].value;
 if (ValSel.indexOf("--") >= 0)
 {
    ValSel="-";
    return(false);
 }
 window.location.href="magasin.asp?Type="+ValSel;
}

function SelMarque()
{
 var i;
 var j;
 var ValType;
 var ValSelm;

 i=document.mag["ltypes"].selectedIndex;
 ValType=document.mag["ltypes"].options[i].value;

 j=document.mag["lmarque"].selectedIndex;
 ValSelm=document.mag["lmarque"].options[j].value;

 window.location.href="magasin.asp?Type="+ValType+"&Marque="+ValSelm;
}

function SearchMot()
{
 var MotCle = document.getElementById('rech').value;

 window.location.href="magasin.asp?Search="+MotCle;
}

function InitZ(sCont)
{
 document.getElementById(sCont).value = "";
}

function ShowCaddy()
{
window.opener.location.href ="caddyshow.asp";
window.close();
}

function CaddyAdd(myValue)
{
window.location.href ="caddyshow.asp?Sgn=P&Lg="+myValue;
}

function CaddySub(myValue)
{
window.location.href ="caddyshow.asp?Sgn=M&Lg="+myValue;
}

function CaddyDel(myValue)
{

  if (confirm("Confirmer la suppression de la ligne ?\n")) 
     {
     window.location.href ="caddyshow.asp?Act=SL&Lg="+myValue;
     }
}

function CaddySuprTot()
{

  if (confirm("Confirmer la suppression totale et définitive du panier ?\n")) 
     {
     window.location.href ="caddyshow.asp?Act=DP";
     }
}

function CheckRad(sVal)
{
    var temp;
	switch (sVal)
	{
	case "P":
		// Payant
		temp="7.00";
		break;

	case "G":
		// Gratuit
		temp="0.00";
		break;
	}

window.location.href ="caddyshow.asp?Act=CR&Val="+temp;
}

function Commander()
{
window.location.href ="caddyprocess1.asp";
}

function VerifLiv(theForm)
{

   if (theForm.Nom.value == "")
   {
      alert("L\'entrée d\'un nom est obligatoire.\nRecommencez SVP");
      theForm.Nom.focus();
      return (false);
   }

   if (theForm.Rue.value == "" && theForm.Ville.value == "") 
   { 
      alert("L\'entrée d\'une rue ou d\'une ville est obligatoire.\nRecommencez SVP");
      theForm.Rue.focus();
      return (false);
   }      

   if (theForm.Cpost.value == "" && theForm.Bur.value == "") 
   { 
      alert("L\'entrée des Code et Bureau postal est obligatoire.\nRecommencez SVP");
      theForm.Cpost.focus();
      return (false);
   }      
      return (true);
}

//-->
