function IntervertirImage (lelement,source) 
{
	lelement.src=source;
}

function Lance_Recherche() {

var sTexte = document.forms[0].rechercher.value ;
var sWhere = "" ;
	//if (sTexte =="") {} else {
   //   if (sWhere!="") {sWhere=sWhere+" AND" ; }
    //  sWhere=sWhere+' (DescriptionA Like "*'+sTexte+'*")' ;  
   //}

if (sTexte =="") {} else {
      if (sWhere!="") {sWhere=sWhere+" AND" ; }
    sWhere=sWhere+' ((ModeleA Like "*'+sTexte+'*")'+' OR (ModeleA Like "*'+sTexte+ '*")'+' OR (DescriptionGBA Like "*' +sTexte+'*")'+' OR (DescriptionA Like "*'+sTexte+'*")'+' OR (DescriptionA Like "*'+sTexte+'*")'+' OR (LibelleF Like "*'+sTexte+'*")'+' OR (DescriptionA Like "*'+sTexte+'*")'+' OR (DescriptionA Like "*'+sTexte+'*")'+' OR (DescriptionA Like "*'+sTexte+'*"))' ;  
  }

if (sWhere!="") {sWhere="$WHERE:"+sWhere ; }
location="/wdBox/ASPGlobal/wdb_lb.asp?Args=DATA:chemise$TABLE:ListeArticles$DOSSIER:chemise$HTMR:htgb/pagelisterecherche$TRANCHE:1-3"+sWhere+"$LBO1:"+sTexte+"$LBO2:0$LBO6:1" ; 
}

function ApplyXPOverStyle(obj,color,color2,addborder) { 
	 obj.style.backgroundColor = color;
	 obj.style.borderColor = color2;
    if (addborder=='true') {obj.style.borderStyle='solid';obj.style.borderWidth='1px'}
}

function ApplyXPOutStyle(obj) {
	obj.style.backgroundColor = '';
	if (navigator.appName == 'Netscape') { obj.style.borderColor = 'EBEBEB'; } else { 
	obj.style.borderColor = ''; }
	obj.style.borderStyle = '';
}
function recupurl()
{
location ='/wdbox/ASPGLOBAL/wdb_lb.asp?Args=DATA:CHEMISE$TABLE:MailsAdresses$DOSSIER:CHEMISE$WHERE:XY_INSERT$HTMR:htgb/newsletter&params1='+document.forms['NEWSLETTER'].email.value;
}
             function checkDataMAIL(){
																																								
									if (document.NEWSLETTER.email.value == "") {
																																						alert("Register your e-mail.")
																																						document.NEWSLETTER.email.focus()
																																							return false} 
var email;
email=document.NEWSLETTER.email.value;
arobase=0;
				point=0;
				for (i=0; i<email.length; i++) {
					if (email.charAt(i)=="@") {
					arobase=1;
			}
			if (email.charAt(i)==".") {
			point=1;
				}
			}
						if (arobase!=1 || point!=1 ) {
						alert ("This is not a valid e-mail address!");
						document.NEWSLETTER.email.focus();
				document.NEWSLETTER.email.select();
				return false}

}