
var cssdropdown={disappeardelay:250,disablemenuclick:true,enableswipe:1,enableiframeshim:1,dropmenuobj:null,ie:document.all,firefox:document.getElementById&&!document.all,swipetimer:undefined,bottomclip:0,getposOffset:function(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;},swipeeffect:function(){if(this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){this.bottomclip+=10+(this.bottomclip/10)
this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"}
else
return
this.swipetimer=setTimeout("cssdropdown.swipeeffect()",10)},showhide:function(obj,e){if(this.ie||this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover"){if(this.enableswipe==1){if(typeof this.swipetimer!="undefined")
clearTimeout(this.swipetimer)
obj.clip="rect(0 auto 0 0)"
this.bottomclip=0
this.swipeeffect()}
obj.visibility="visible"}
else if(e.type=="click")
obj.visibility="hidden"},iecompattest:function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body},clearbrowseredge:function(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=this.ie&&!window.opera?this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if(windowedge-this.dropmenuobj.x<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth}
else{var topedge=this.ie&&!window.opera?this.iecompattest().scrollTop:window.pageYOffset
var windowedge=this.ie&&!window.opera?this.iecompattest().scrollTop+this.iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if(windowedge-this.dropmenuobj.y<this.dropmenuobj.contentmeasure){edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure)
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge}}
return edgeoffset},dropit:function(obj,e,dropmenuID){if(this.dropmenuobj!=null)
this.dropmenuobj.style.visibility="hidden"
this.clearhidemenu()
if(this.ie||this.firefox){obj.onmouseout=function(){cssdropdown.delayhidemenu()}
obj.onclick=function(){return!cssdropdown.disablemenuclick}
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(e){cssdropdown.dynamichide(e)}
this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()}
this.showhide(this.dropmenuobj.style,e)
this.dropmenuobj.x=this.getposOffset(obj,"left")
this.dropmenuobj.y=this.getposOffset(obj,"top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj,"rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+1+"px"
this.positionshim()}},positionshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined"){if(this.dropmenuobj.style.visibility=="visible"){this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
this.shimobject.style.left=this.dropmenuobj.style.left
this.shimobject.style.top=this.dropmenuobj.style.top}
this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")?"block":"none"}},hideshim:function(){if(this.enableiframeshim&&typeof this.shimobject!="undefined")
this.shimobject.style.display='none'},contains_firefox:function(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;},dynamichide:function(e){var evtobj=window.event?window.event:e
if(this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu()
else if(this.firefox&&e.currentTarget!=evtobj.relatedTarget&&!this.contains_firefox(evtobj.currentTarget,evtobj.relatedTarget))
this.delayhidemenu()},delayhidemenu:function(){this.delayhide=setTimeout("cssdropdown.dropmenuobj.style.visibility='hidden'; cssdropdown.hideshim()",this.disappeardelay)},clearhidemenu:function(){if(this.delayhide!="undefined")
clearTimeout(this.delayhide)},startchrome:function(){for(var ids=0;ids<arguments.length;ids++){var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for(var i=0;i<menuitems.length;i++){if(menuitems[i].getAttribute("rel")){var relvalue=menuitems[i].getAttribute("rel")
menuitems[i].onmouseover=function(e){var event=typeof e!="undefined"?e:window.event
cssdropdown.dropit(this,event,this.getAttribute("rel"))}}}}
if(window.createPopup&&!window.XmlHttpRequest){document.write('<IFRAME id="iframeshim"  src="" style="display: none; left: 0; top: 0; z-index: 90; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)" frameBorder="0" scrolling="no"></IFRAME>')
this.shimobject=document.getElementById("iframeshim")}}}
function fctMessages(ps_nom,s_NomChamp,i_LongueurChamp)
{switch(ps_nom)
{case"STR_SPACEPASS":return"Spaces in the begining and the end of your password are removed";case"STR_COURRIEL":return"Please enter a valid e-mail address.";case"STR_WWW":return"Please enter a valid website address";case"STR_CHAMP1NOTNULL":return"The "+eval("document.message."+s_NomChamp+".value")+" field must be filled and cannot be left blank.";case"STR_CHAMP2NOTNULL":return"At least one element from the "+eval("document.message."+s_NomChamp+".value")+" list must be selected.";case"STR_CHAMP3NOTNULL":return"At least one element from the "+eval("document.message."+s_NomChamp+".value")+" list must be selected.";case"STR_CHAMP4NOTNULL":var carac
if(i_LongueurChamp>1)
carac='s';else
carac='';return"At least "+i_LongueurChamp+" element"+carac+" from the "+eval("document.message."+s_NomChamp+".value")+" field must be selected.";case"STR_CHAMP3MAX":return"The text of the "+eval("document.message."+s_NomChamp+".value")+" field must have "+i_LongueurChamp+" characters or fewer. Please modify your text. ";case"STR_CHAMP4MIN":return"The text of the "+eval("document.message."+s_NomChamp+".value")+" field must have at least "+i_LongueurChamp+" characters. Please modify your text.";case"STR_CHAMP5FORMAT":return eval("document.message."+s_NomChamp+".value")+" format is incorrect (Correct format: G2A 1J8)";case"STR_CHAMP6FORMAT":return eval("document.message."+s_NomChamp+".value")+" format is incorrect (Correct format: 418-872-9098) ";case"STR_CHAMPDATE1FORMAT":return"The date is incorrect or its format is not valid (Correct format: JJ/MM/AA)";case"STR_CHAMPDATE2FORMAT":return"The date is incorrect or its format is not valid (Correct format: JJ/MM/AAAA)";case"STR_CHAMPDATE3FORMAT":return"The date is incorrect or its format is not valid (Correct format: MM/JJ/AA)";case"STR_CHAMPDATE4FORMAT":return"The date is incorrect or its format is not valid (Correct format: MM/JJ/AAAA)";case"STR_CHAMP7":return"Password must contain numbers and letters. ";case"STR_CHAMP8":return"The "+eval("document.message."+s_NomChamp+".value")+" field must contain a valid number.";case"STR_CHAMP9":return"The "+eval("document.message."+s_NomChamp+".value")+" field must contain numbers only. Please correct the data.";case"STR_CHAMP10":return"The "+eval("document.message."+s_NomChamp+".value")+" field must contain letters only. Please correct the data.";case"STR_DELETERECORD":return"Are you sure you want to delete "+s_NomChamp+"?";}}
function gf_ObtenirErrMsg(ps_Nom,ps_Champs)
{switch(ps_Nom.toUpperCase())
{case"PASSWORD_CONFIRM":return"The Password and Confirmation fields have different values.";case"SELECT_0":return"The "+ps_Champs+" field must be filled and cannot be left blank.";case"SELECT_1":return"At least one element from the "+ps_Champs+" section must be selected.";case"SELECT_2":return"One element from the "+ps_Champs+" section must be selected.";case"SELECT_3":return"At least one element from the "+ps_Champs+" list must be selected.";case"SELECT_4":return"One element from the "+ps_Champs+" list must be selected.";default:return"";}}
function gf_OuvrirFenetre(pAddy,pNom,pParam){window.open(pAddy,pNom,pParam);}
function gf_ValiderFormatDate(pd_Date,ps_Format)
{var s_Pays=ps_Format.substring(0,1);var s_Longueur=ps_Format.substring(1,2);var b_DateOk=true
var Temp=pd_Date.toString();if(Temp.length>10&&Temp.length<8)
{b_DateOk=false;}
else
{var i_PositionOblique1=Temp.indexOf('/')
var i_PositionOblique2=Temp.lastIndexOf('/')
if(s_Pays=='C')
{var i_Jour=Temp.substring(0,i_PositionOblique1);var i_Mois=Temp.substring(i_PositionOblique1+1,i_PositionOblique2);var i_Annee=Temp.substring(i_PositionOblique2+1,Temp.length);}
else
{var i_Mois=Temp.substring(0,i_PositionOblique1);var i_Jour=Temp.substring(i_PositionOblique1+1,i_PositionOblique2);var i_Annee=Temp.substring(i_PositionOblique2+1,Temp.length);}
if((i_PositionOblique1==''&&i_PositionOblique2==''&&i_PositionOblique1==i_PositionOblique2&&i_Jour==''&&i_Mois==''&&i_Annee=='')||(i_Jour/1!=i_Jour||i_Mois/1!=i_Mois||i_Annee/1!=i_Annee)||(i_Jour>31||i_Jour<1||i_Mois>12||i_Mois<1||(s_Longueur=='L'&&i_Annee>2200)||(s_Longueur=='L'&&i_Annee<1800)||(s_Longueur=='C'&&i_Annee>99))||((i_Mois==2&&i_Annee%4==0&&i_Jour>29)||(i_Mois==2&&i_Annee%4!=0&&i_Jour>28)))
{b_DateOk=false;}}
return b_DateOk;}
function gf_ValiderDateQc(pd_Date)
{var b_DateOk=true
var Temp=pd_Date.toString();if(Temp.length>10&&Temp.length<8)
{b_DateOk=false;}
else
{var i_PositionOblique1=Temp.indexOf('/')
var i_PositionOblique2=Temp.lastIndexOf('/')
var i_Jour=Temp.substring(0,i_PositionOblique1);var i_Mois=Temp.substring(i_PositionOblique1+1,i_PositionOblique2);var i_Annee=Temp.substring(i_PositionOblique2+1,Temp.length);if((i_PositionOblique1==''&&i_PositionOblique2==''&&i_PositionOblique1==i_PositionOblique2&&i_Jour==''&&i_Mois==''&&i_Annee=='')||(i_Jour/1!=i_Jour||i_Mois/1!=i_Mois||i_Annee/1!=i_Annee)||(i_Jour>31||i_Jour<1||i_Mois>12||i_Mois<1||i_Annee>2200||i_Annee<1800)||(i_Mois%2==0&&i_Jour>30)||((i_Mois==2&&i_Annee%4==0&&i_Jour>29)||(i_Mois==2&&i_Annee%4!=0&&i_Jour>28)))
{b_DateOk=false;}}
return b_DateOk;}
function isValidCP(inputVal)
{var cpCan=new RegExp("[A-Z][0-9][A-Z][0-9][A-Z][0-9]","gi");var cpUS=new RegExp("[0-9][0-9][0-9][0-9][0-9]","gi");inputStr=inputVal.toString();inputStr=gf_EnleverEspaces(inputStr);if(inputStr.match(cpCan)==inputStr&&inputStr.length==6)return true;if(inputStr.match(cpUS)==inputStr&&inputStr.length==5)return true;if(inputVal.length==0)return true;return false;}
function isValidTel(inputVal)
{var phoneUSCanEU=new RegExp("[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]","g");var phoneUSCanCourt=new RegExp("[0-9][0-9][0-9][0-9][0-9][0-9][0-9]","g");var s_CaracteresInvalides=new String("-().");var s_CleanString=new String("");inputStr=inputVal.toString()
inputStr=gf_EnleverEspaces(inputStr);for(var i_cpt=0;i_cpt<inputStr.length;i_cpt++)
if(s_CaracteresInvalides.indexOf(inputStr.charAt(i_cpt))==-1)
s_CleanString+=inputStr.charAt(i_cpt);if(s_CleanString.match(phoneUSCanEU)==s_CleanString&&s_CleanString.length==10)return true;if(s_CleanString.match(phoneUSCanCourt)==s_CleanString&&s_CleanString.length==7)return true;if(inputVal.length==0)return true;return false;}
function isValidWWW(inputVal)
{var http=new String("HTTP://");var https=new String("HTTPS://");var ftp=new String("FTP://");inputStr=inputVal.toString();inputStr=inputStr.toUpperCase();if(inputStr.indexOf(http)==0)return true;if(inputStr.indexOf(https)==0)return true;if(inputStr.indexOf(ftp)==0)return true;if(inputVal.length==0)return true;return false;}
function gf_ValiderCourriel(frm_Nom,txt_Nom)
{var Temp=document.forms[frm_Nom].elements[txt_Nom].value.toUpperCase()
var i_PositionArobas=Temp.indexOf('@')
var i_PositionPoint=Temp.lastIndexOf('.')
var s_CaracteresInvalides=new String(" \',ÀÁÂÃÄÅÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÜÝ");var i_CaracteresInvalides=0
var i_LongueurCourriel=Temp.length-1
for(var i_cpt=0;i_cpt<s_CaracteresInvalides.length;i_cpt++)
if(Temp.indexOf(s_CaracteresInvalides.charAt(i_cpt))!=-1)i_CaracteresInvalides++;if((i_PositionArobas<1)||(i_PositionPoint<=i_PositionArobas+1)||(i_PositionPoint==i_LongueurCourriel)||(i_CaracteresInvalides>0))
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));document.forms[frm_Nom].elements[txt_Nom].focus()
return false;}
return true;}
function gf_ValiderCourriel2(frm_Nom,txt_Nom)
{var Temp=document.forms[frm_Nom].elements[txt_Nom]
var i_LongueurCourriel=Temp.value.length-1
ok=true
if(Temp.value=="")
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false}
else
{mail=Temp.value
at_pos=mail.indexOf("@")
dot_pos=mail.indexOf(".")
if(at_pos<1||dot_pos<1)
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false}
else
{mail=Temp.value
condition="yes"
var at_count=0
var dot_count=0
var temp=0
for(var i=0;i<mail.length;i++)
{if(mail.charAt(i)!="-"&&mail.charAt(i)!="_")
{if((mail.charCodeAt(i)>0&&mail.charCodeAt(i)<48)||(mail.charCodeAt(i)>57&&mail.charCodeAt(i)<65)||(mail.charCodeAt(i)>91&&mail.charCodeAt(i)<97)||mail.charCodeAt(i)>122)
{if(mail.charAt(i)=="@"||mail.charAt(i)==".")
{if(mail.charAt(i)=="@"){at_count++}else{dot_count++}
if(dot_count>=1)
{dot_pos=i
if((dot_pos>at_pos)&&temp==0)
{pos=dot_pos-at_pos
temp++}}}
else
{condition="no"
i=mail.length}}}}
if(condition=="no")
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false}
else
{if(at_count>1)
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false}
else
{if(pos<2)
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false
i=mail.length}
else
{count=dot_pos+1
domain=""
for(count;count<mail.length;count++)
{domain=domain+mail.charAt(count)}
error="no"
if((error=="yes"&&(domain.length>2))||(domain.length<2))
{alert(fctMessages('STR_COURRIEL',"x",i_LongueurCourriel));Temp.focus()
ok=false}}}}}}
return ok}
function gf_ValiderLongueurTextArea(tx_Champ,hf_Decompte,i_MaxLimite)
{if(tx_Champ.value.length>i_MaxLimite)
tx_Champ.value=tx_Champ.value.substring(0,i_MaxLimite);else
hf_Decompte.value=i_MaxLimite-tx_Champ.value.length;}
function gf_ValidationForm(ps_Form)
{if(document.forms.length>0)
{var s_Test;var temp;var b_ValidationOK=true;var s_TypeChamp;var i_Obligatoire;var s_TypeDonnees;var i_LongueurChamp;var s_TypeContenu;var s_NomChamp;var i_checked;var s_tempName;var i_topElement;if(!isNaN(ps_Form)){var champ=document.forms[ps_Form];}
else
{var champ=eval("document.forms['"+ps_Form+"']");}
for(i=0;i<champ.length;i++)
{temp=champ.elements[i].name;if(temp.length>15)
{bundersore=temp.substring(12,13);if(bundersore=="_")
{s_TypeChamp=temp.substring(0,2);i_Obligatoire=temp.substring(2,3);s_TypeDonnees=temp.substring(3,6);i_LongueurChamp=temp.substring(6,10)/1;s_TypeContenu=temp.substring(10,12);s_NomChamp=temp.substring(13,temp.length);if((i_Obligatoire==1||i_LongueurChamp!=0)&&s_TypeChamp.toUpperCase()!='CK'&&s_TypeChamp.toUpperCase()!='RB')
{if(champ.elements[i].value.length==0&&i_Obligatoire==1&&s_TypeChamp!='lm')
{alert(fctMessages("STR_CHAMP1NOTNULL",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
else
{if(champ.elements[i].value.length==0&&i_Obligatoire==1&&s_TypeChamp=='lm')
{alert(fctMessages("STR_CHAMP2NOTNULL",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
else
{if(s_TypeContenu.toUpperCase()!='PS')
{if(champ.elements[i].value.length>i_LongueurChamp&&i_LongueurChamp!=0)
{alert(fctMessages("STR_CHAMP3MAX",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}}
else
{if(champ.elements[i].value.length<i_LongueurChamp&&i_LongueurChamp!=0&&i_Obligatoire==1)
{alert(fctMessages("STR_CHAMP4MIN",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}}}}}
if((champ.elements[i].value.length>0&&s_TypeChamp.toUpperCase()!='RB'&&s_TypeChamp.toUpperCase()!='CK')||((s_TypeChamp.toUpperCase()=='RB'||s_TypeChamp.toUpperCase()=='CK')&&parseInt(i_Obligatoire)==1))
{varTemp=champ.elements[i].name.substring(13,champ.elements[i].name.length).toLowerCase();switch(s_TypeChamp.toUpperCase())
{case'RB':i_checked=-1
s_tempName=champ.elements[i].name
i_topElement=i
for(i=i;i<champ.length;i++)
if(s_tempName!=champ.elements[i].name)
break;else
if(champ.elements[i].checked)i_checked=i;--i;if(i_checked==-1){alert(fctMessages("STR_CHAMP3NOTNULL",s_NomChamp,i_LongueurChamp));champ.elements[i_topElement].focus();return false;}
break;case'CK':i_checked=0
s_tempName=champ.elements[i].name;i_topElement=i
for(i=i;i<champ.length;i++)
if(s_tempName!=champ.elements[i].name)
break;else
if(champ.elements[i].checked)i_checked++;--i;if(i_checked<parseInt(i_LongueurChamp)){alert(fctMessages("STR_CHAMP4NOTNULL",s_NomChamp,parseInt(i_LongueurChamp)));champ.elements[i_topElement].focus();return false;}
break;case'TX':switch(s_TypeContenu.toUpperCase())
{case'CO':if(!gf_ValiderCourriel2(ps_Form,champ.elements[i].name))
{return false;}
break;case'WW':if(!isValidWWW(champ.elements[i].value))
{alert(fctMessages("STR_WWW",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'CP':if(!isValidCP(champ.elements[i].value))
{alert(fctMessages("STR_CHAMP5FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'TL':if(!isValidTel(champ.elements[i].value))
{alert(fctMessages("STR_CHAMP6FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'CC':if(!gf_ValiderFormatDate(champ.elements[i].value,'CC'))
{alert(fctMessages("STR_CHAMPDATE1FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'CL':if(!gf_ValiderFormatDate(champ.elements[i].value,'CL'))
{alert(fctMessages("STR_CHAMPDATE2FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'UC':if(!gf_ValiderFormatDate(champ.elements[i].value,'UC'))
{alert(fctMessages("STR_CHAMPDATE3FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'UL':if(!gf_ValiderFormatDate(champ.elements[i].value,'UL'))
{alert(fctMessages("STR_CHAMPDATE4FORMAT",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'PS':var c_Char,num,cc;cc=0
num=0
var sVal=champ.elements[i].value;if(sVal.indexOf(" ")==0||sVal.indexOf(" ")==sVal.length){alert(fctMessages("STR_SPACEPASS",s_NomChamp,i_LongueurChamp));sVal=gf_Trim(sVal);champ.elements[i].value=sVal;}
if(gf_Trim(sVal).length<6){alert(fctMessages("STR_CHAMP7",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
for(var j=0;j<champ.elements[i].value.length;j++)
{c_Char=champ.elements[i].value.charAt(j);if((c_Char>="0"&&c_Char<="9"))
{num=1}
if((c_Char>="A"&&c_Char<="Z")||(c_Char>="a"&&c_Char<="z"))
{cc=1}}
if(num!=1||cc!=1)
{alert(fctMessages("STR_CHAMP7",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;break;case'TA':break;case'LS':break;case'LM':break;}
switch(s_TypeDonnees.toUpperCase())
{case'MON':var c_Char;for(var j=0;j<champ.elements[i].value.length;j++)
{c_Char=champ.elements[i].value.charAt(j);if((c_Char<"0"||c_Char>"9")&&c_Char!="."&&c_Char!=",")
{alert(fctMessages("STR_CHAMP8",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}}
break;case'NUM':if(champ.elements[i].value/1!=champ.elements[i].value)
{alert(fctMessages("STR_CHAMP9",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}
break;case'ALN':break;case'ALP':var c_Char;for(var j=0;j<champ.elements[i].value.length;j++)
{c_Char=champ.elements[i].value.charCodeAt(j);if((c_Char<65)||((c_Char>90)&&(c_Char<97))||(c_Char>122))
{alert(fctMessages("STR_CHAMP10",s_NomChamp,i_LongueurChamp));champ.elements[i].focus();return false;}}
break;case'TXT':break;}}}}}}}
return true;}
function gf_submitForm(id)
{if(gf_ValidationForm(id))
document.forms[id].submit();}
function gf_EnleverEspaces(inputVal){var s_RetVal='';for(var i_cpt=0;i_cpt<inputVal.length;i_cpt++)
s_RetVal+=(inputVal.charAt(i_cpt)!=' ')?inputVal.charAt(i_cpt):'';return s_RetVal;}
function gf_Trim(ps_Chaine){var s_RetVal="";var i_Debut=0;var i_Fin=ps_Chaine.length;while((i_Debut<ps_Chaine.length)&&(ps_Chaine.charAt(i_Debut)==' '))
++i_Debut;if(i_Debut==ps_Chaine.length)return"";while((i_Fin>0)&&(ps_Chaine.charAt(i_Fin-1)==' '))
--i_Fin;s_RetVal=ps_Chaine.substring(i_Debut,i_Fin);return s_RetVal;}
