<!--
function fncBouton(obj, bActif) {
	if (bActif)
		obj.src=obj.src.replace('_off.','_on.');
	else
		obj.src=obj.src.replace('_on.','_off.');
}
function ValiderCourriel(sCourriel) {
	var sLstCar, bOk, i
	
	if (sCourriel != "") {
		sLstCar = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.@";
		
		bOk = true;
		for (i=0; ((i < sCourriel.length) && bOk); i++) {
			if (sLstCar.indexOf(sCourriel.charAt(i)) < 0)
				bOk = false;
		}
		
		iAt = sCourriel.indexOf("@");
		if (iAt > 0)
			iDot = sCourriel.indexOf(".", iAt);
		else
			iDot = 0;
		if ((iAt > 0) && (iDot > 0) && (iAt+1 < iDot) && bOk)
			return(true);
		else
			return(false);
	} else {
		return (false);
	}
}

 function csFormSubmit(frm) {
   var bOk = false; 
   if (csFormValidate(frm)) {
     frm.submit();
   }
 }

 function csFormValidate (fForm) {
	var sFieldName = "";
    for (i=0; i< fForm.elements.length; i++) {
                  
     if ((fForm.elements[i].name).length > 5) {
       if ((fForm.elements[i].name.substring(0,2) == "F_") && (fForm.elements[i].name.substring(4,5) == "_")) {
			if ((fForm.elements[i].name.substring(2,4) % 2) > 0) {
				if (fForm.elements[i].value.length <= 0) {
					sFieldName = csHexToText((fForm.elements[i].name).substring(5,(fForm.elements[i].name).length));
					alert(sRemplis.replace("%champ%",sFieldName));
					return (false);
				}
			}
			if (fForm.elements[i].name.substring(2,4) == "03") {
				if (!ValiderCourriel(fForm.elements[i].value)) {
					sFieldName = csHexToText((fForm.elements[i].name).substring(5,(fForm.elements[i].name).length));
					alert(sRemplisCorrectement.replace("%champ%",sFieldName));
					return (false);
				}
			}
        }
     }
    }   
    return (true);
 }

 function csHexToText(sHex) {
	var i;
   escstr = "";
   for(i=0; i < sHex.length; i = i+2) {
     escstr = escstr + "%" + sHex.substring(i,i+1) + sHex.substring(i+1,i+2);
   }

   return unescape(escstr);
 }
function csHyperlink(sType,sHref,sTarget,sWidth,sHeight,sToolBar,sParam) {
        // Ex :  sType = "image";
        //       sHref = "/images/image1.jpg";
	var sTopic = "";
	var sClick = "";
	var sLang= "";

	var sFeatures = "";

        sFeatures = sFeatures + "toolbar=" + sToolBar + ",";        
        sFeatures = sFeatures + "status=" + sToolBar + ",";
        sFeatures = sFeatures + "location=" + sToolBar + ",";
        sFeatures = sFeatures + "menubar=" + sToolBar + ",";
        if (sToolBar == "no") {
          sFeatures = sFeatures + "directories=" + sToolBar + ",";
        }
        if (sType == "image") {
          sFeatures = sFeatures + "scrollbars=" + "no" + ",";
        } else {
          sFeatures = sFeatures + "scrollbars=" + "yes" + ",";
        }
        sFeatures = sFeatures + "resizable=" + "yes" + ",";
        sFeatures = sFeatures + "width=" + sWidth + ",";
        sFeatures = sFeatures + "height=" + sHeight;

          if (sType == "back") {
            history.back();
          } else {
              //sHref = "/cgi-cs/cs.waimage.displayimage?image_name=" + sHref
              dlg = window.open (sHref,"displayWindow",sFeatures) 
              dlg.focus();
          }

      }
-->