
 function openWin(url,l,h,scroll) {
   winpeople=window.open(url,'popup','scrollbars='+scroll+',menubar=no,status=no,resizable=yes,location=no,toolbar=no,width='+l+',height='+h);
 }
 
 function addOption(obj,val,txt) {
	//toto = new Option("toto","txt");
	obj.options[obj.length] = new Option(val,txt);
 }
 
 function delOption(obj) {
	if (obj.options.length>0) {
	 	if (obj.selectedIndex==-1) {
			obj.options.length=obj.options.length-1;
		}
		else
			obj.options[obj.selectedIndex]=null;
	}
 }
 
  function Paiement() {
    document.basket.cmd.value='paiement';
  	document.basket.action="https://www.secure-alcesdev.com/ssl/couleursbois/paiement.php";
  	document.basket.submit();
  
  }	
  
function testMail(lemail) {
  if ( (lemail.lastIndexOf("@")>-1) && (lemail.lastIndexOf(".") > lemail.lastIndexOf("@")) && (lemail.lastIndexOf(".")+2<lemail.length) ) {
    return true;
  }
  else {
    alert("Veuillez vérifier votre adresse email");
    return false;
  }
}
