function validForm(url, texte) {
	if (confirm(texte) == true) {
		setTimeout("redirect('"+url+"')",0); // delai en millisecondes';
	}
}
function afficher(elmt) {
	document.getElementById(elmt).style.display = 'block';
}

function fermer(elmt) {
	document.getElementById(elmt).style.display = 'none';	
}
function redirect(url) {
	window.location=url;
}
function deletecomment(url, texte) {
	if (confirm(texte) == true) {
		setTimeout("redirect('"+url+"')",0); // delai en millisecondes';
	}
}
function deletesel(url, texte) {
	if (confirm(texte) == true) {
		setTimeout("redirect('"+url+"')",0); //delai en millisecondes;
	}
}
function confirmpub(url, texte) {
	if (confirm(texte) == true) {
		setTimeout("redirect('"+url+"')",0); //delai en millisecondes;
	}
}

function affichdiv(div1,div2) {
	document.getElementById(div1).style.display = 'block';
	document.getElementById(div2).style.display = 'none';
}
function changeLink(licence) {
	lienReferer = document.getElementById('licenceReferer');
	lienPanier = document.getElementById('licencePanier');
	a = lienReferer.href.split('licence=');
	b = lienPanier.href.split('licence=');
	
	lienReferer.href = a[0]+"licence="+licence;
	lienPanier.href = b[0]+"licence="+licence;
	/*
	if(prix == 0) {
		lienValidation.href = "download.php?id="+idElmt+"&type="+type+"&typeDl=gratuit";
	}
	else {
		lienValidation.href = "paypal";
		lienValidation.onclick=function() { validFormPaypal(); }
	}
	*/
}




/* PluginDetect v0.4.6 ( Java ) by Eric Gerds www.pinlady.net/PluginDetect */ 
if(!PluginDetect){var PluginDetect={getNum:function(A){if(!A){return null}var m=/[\d][\d\.\_,-]*/.exec(A);return m?m[0].replace(/[\.\_-]/g,","):null},hasMimeType:function(_3){var s,t,z,M=_3.constructor==String?[_3]:_3;for(z=0;z<M.length;z++){s=navigator.mimeTypes[M[z]];if(s&&s.enabledPlugin){t=s.enabledPlugin;if(t.name||t.description){return s}}}return null},findNavPlugin:function(N,_6){var _7=N.constructor==String?N:N.join(".*"),numS=_6===false?"":"\\d";var i,re=new RegExp(_7+".*"+numS+"|"+numS+".*"+_7,"i");var _9=navigator.plugins;for(i=0;i<_9.length;i++){if(re.test(_9[i].description)||re.test(_9[i].name)){return _9[i]}}return null},getAXO:function(_a){var _b,e;try{_b=new ActiveXObject(_a);return _b}catch(e){}return null},num:function(A){return (typeof A!="string"?false:(/\d/).test(A))},compareNums:function(_d,_e){if(!this.num(_d)||!this.num(_e)){return 0}var m1=_d.split(","),m2=_e.split(","),x,p=parseInt;for(x=0;x<Math.min(m1.length,m2.length);x++){if(p(m1[x],10)>p(m2[x],10)){return 1}if(p(m1[x],10)<p(m2[x],10)){return -1}}return 0},formatNum:function(num){if(!this.num(num)){return null}var x,n=num.replace(/[\.\_]/g,",").split(",").concat(["0","0","0","0"]);for(x=0;x<4;x++){n[x]=parseInt(n[x],10)}return n[0]+","+n[1]+","+n[2]+","+n[3]},initScript:function(){var $=this,IE;$.isIE=(/*@cc_on!@*/false);$.IEver=-1;$.ActiveXEnabled=false;if($.isIE){IE=(/msie\s*\d\.{0,1}\d*/i).exec(navigator.userAgent);if(IE){$.IEver=parseFloat((/\d.{0,1}\d*/i).exec(IE[0]),10)}var _13,x;_13=["ShockwaveFlash.ShockwaveFlash","Msxml2.XMLHTTP","Microsoft.XMLDOM","Msxml2.DOMDocument","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(x=0;x<_13.length;x++){if($.getAXO(_13[x])){$.ActiveXEnabled=true;break}}}if($.isIE){$.head=typeof document.getElementsByTagName!="undefined"?document.getElementsByTagName("head")[0]:null}},init:function(_14){if(typeof _14!="string"){return -3}_14=_14.toLowerCase().replace(/\s/g,"");var $=this,IE,p;if(typeof $[_14]=="undefined"){return -3}p=$[_14];$.plugin=p;if(typeof p.installed=="undefined"){p.minversion={};p.installed=null;p.version=null;p.getVersionDone=null}$.garbage=false;if($.isIE&&!$.ActiveXEnabled){return -2}return 1},isMinVersion:function(_16,_17,_18){var $=PluginDetect,i=$.init(_16);if(i<0){return i}if(typeof _17=="undefined"||_17==null){_17="0"}if(typeof _17=="number"){_17=_17.toString()}if(!$.num(_17)){return -3}_17=$.formatNum(_17);if(typeof _18=="undefined"){_18=null}var p=$.plugin,m=p.minversion;if(typeof m["a"+_17]=="undefined"){if(p.getVersionDone==null&&typeof p.isMinVersion!="undefined"&&$.IEver>=p.minIEver){var tmp,x;for(x in m){tmp=$.compareNums(_17,x.substring(1,x.length));if(m[x]==1&&tmp<=0){return 1}if(m[x]==-1&&tmp>=0){return -1}}m["a"+_17]=p.isMinVersion(_17,_18)?1:-1;if(p.version!=null||p.installed==-1||p.installed==1){p.getVersionDone=1}}else{if(p.getVersionDone==null){p.getVersion(_17,_18)}if(p.version!=null||p.installed!=null){p.getVersionDone=1;m["a"+_17]=(p.installed==-1?-1:(p.version==null?0:($.compareNums(p.version,_17)>=0?1:-1)))}else{m["a"+_17]=-1}}}$.cleanup();return m["a"+_17];return -3},getVersion:function(_1c,_1d){var $=PluginDetect,i=$.init(_1c);if(i<0){return null}var p=$.plugin;if(typeof _1d=="undefined"){_1d=null}if(p.getVersionDone==null){p.getVersion(null,_1d);p.getVersionDone=1}$.cleanup();return p.version;return null},cleanup:function(){var $=this;if($.garbage&&typeof window.CollectGarbage!="undefined"){window.CollectGarbage()}},isActiveXObject:function(_21){var $=this,result,e,s="<object width=\"1\" height=\"1\" "+"style=\"display:none\" "+$.plugin.getCodeBaseVersion(_21)+">"+$.plugin.HTML+"</object>";if($.head.firstChild){$.head.insertBefore(document.createElement("object"),$.head.firstChild)}else{$.head.appendChild(document.createElement("object"))}$.head.firstChild.outerHTML=s;try{$.head.firstChild.classid=$.plugin.classID}catch(e){}result=false;try{if($.head.firstChild.object){result=true}}catch(e){}try{if(result&&$.head.firstChild.readyState<4){$.garbage=true}}catch(e){}$.head.removeChild($.head.firstChild);return result},search:function(min){var $=this;if(typeof min!="undefined"){return $.isActiveXObject(min)};var _25=[0,0,0,0],x,y,A=$.plugin.digits,t=function(x,y){var _28=(x==0?y:_25[0])+","+(x==1?y:_25[1])+","+(x==2?y:_25[2])+","+(x==3?y:_25[3]);return $.isActiveXObject(_28)};var _29,tmp;var _2a=false;for(x=0;x<A.length;x++){_29=A[x]*2;_25[x]=0;for(y=0;y<20;y++){if(_29==1&&x>0&&_2a){break}if(_29-_25[x]>1){tmp=Math.round((_29+_25[x])/2);if(t(x,tmp)){_25[x]=tmp;_2a=true}else{_29=tmp}}else{if(_29-_25[x]==1){_29--;if(!_2a&&t(x,_29)){_2a=true}break}else{if(!_2a&&t(x,_29)){_2a=true}break}}}if(!_2a){return null}}return _25.join(",")},dummy1:0}}PluginDetect.initScript();PluginDetect.java={mimeType:"application/x-java-applet",classID:"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",DTKclassID:"clsid:CAFEEFAC-DEC7-0000-0000-ABCDEFFEDCBA",DTKmimeType:"application/npruntime-scriptable-plugin;DeploymentToolkit",minWebStart:"1,4,2,0",JavaVersions:["1,9,1,25","1,8,1,25","1,7,1,25","1,6,1,25","1,5,0,25","1,4,2,25","1,3,1,25"],lowestPreApproved:"1,6,0,02",lowestSearchable:"1,3,1,0",searchJava:function(min,_31){var e,z,T,$=PluginDetect;var _33,C_DE,C,DE,v;var AXO=ActiveXObject;var _35=(typeof _31!="undefined")?_31:this.minWebStart;var Q=min.split(","),x;for(x=0;x<4;x++){Q[x]=parseInt(Q[x],10)}for(x=0;x<3;x++){if(Q[x]>9){Q[x]=9}}if(Q[3]>99){Q[3]=99}var _37="JavaPlugin."+Q[0]+Q[1]+Q[2]+(Q[3]>0?("_"+(Q[3]<10?"0":"")+Q[3]):"");for(z=0;z<this.JavaVersions.length;z++){if($.compareNums(min,this.JavaVersions[z])>0){return null}T=this.JavaVersions[z].split(",");_33="JavaPlugin."+T[0]+T[1];v=T[0]+"."+T[1]+".";for(C=T[2];C>=0;C--){if($.compareNums(T[0]+","+T[1]+","+C+",0",_35)>=0){try{new AXO("JavaWebStart.isInstalled."+v+C+".0")}catch(e){continue}}if($.compareNums(min,T[0]+","+T[1]+","+C+","+T[3])>0){return null}for(DE=T[3];DE>=0;DE--){C_DE=C+"_"+(DE<10?"0"+DE:DE);try{new AXO(_33+C_DE);return v+C_DE}catch(e){}if(_33+C_DE==_37){return null}}try{new AXO(_33+C);return v+C}catch(e){}if(_33+C==_37){return null}}}return null},minIEver:7,HTML:"<param name=\"code\" value=\"A14999.class\" />",getCodeBaseVersion:function(v){var r=v.replace(/[\.\_]/g,",").split(","),$=PluginDetect;if($.compareNums(v,"1,4,1,02")<0){v=r[0]+","+r[1]+","+r[2]+","+r[3]}else{if($.compareNums(v,"1,5,0,02")<0){v=r[0]+","+r[1]+","+r[2]+","+r[3]+"0"}else{v=Math.round((parseFloat(r[0]+"."+r[1],10)-1.5)*10+5)+","+r[2]+","+r[3]+"0"+",0"}}return "codebase=\"#version="+v+"\""},digits:[2,8,8,32],getFromMimeType:function(_3a){var x,t,$=PluginDetect;var re=new RegExp(_3a);var tmp,v="0,0,0,0",digits="";for(x=0;x<navigator.mimeTypes.length;x++){t=navigator.mimeTypes[x];if(re.test(t.type)&&t.enabledPlugin){t=t.type.substring(t.type.indexOf("=")+1,t.type.length);tmp=$.formatNum(t);if($.compareNums(tmp,v)>0){v=tmp;digits=t}}}return digits.replace(/[\.\_]/g,",")},hasRun:false,value:null,queryJavaHandler:function(){var $=PluginDetect.java,j=window.java,e;$.hasRun=true;try{if(typeof j.lang!="undefined"&&typeof j.lang.System!="undefined"){$.value=j.lang.System.getProperty("java.version")+" "}}catch(e){}},queryJava:function(){var $=PluginDetect,t=this,nua=navigator.userAgent,e;if(typeof window.java!="undefined"&&window.navigator.javaEnabled()){if(/gecko/i.test(nua)){if($.hasMimeType("application/x-java-vm")){try{var div=document.createElement("div"),evObj=document.createEvent("HTMLEvents");evObj.initEvent("focus",false,true);div.addEventListener("focus",t.queryJavaHandler,false);div.dispatchEvent(evObj)}catch(e){}if(!t.hasRun){t.queryJavaHandler()}}}else{if(/opera.9\.(0|1)/i.test(nua)&&/mac/i.test(nua)){return null}t.queryJavaHandler()}}return t.value},getVersion:function(min,jar){if(typeof min=="undefined"){min=null}if(typeof jar=="undefined"){jar=null}var _43=null,$=PluginDetect;var dtk=this.searchJavaDTK();if(dtk==-1&&$.isIE){this.installed=-1;return}if(dtk!=-1&&dtk!=null){_43=dtk}if(!$.isIE){var p1,p2,p,mt,tmp;mt=($.hasMimeType(this.mimeType)&&navigator.javaEnabled());if(!_43&&mt){tmp="Java[^\\d]*Plug-in";p=$.findNavPlugin(tmp);if(p){tmp=new RegExp(tmp,"i");p1=tmp.test(p.description)?$.getNum(p.description):null;p2=tmp.test(p.name)?$.getNum(p.name):null;if(p1&&p2){_43=($.compareNums($.formatNum(p1),$.formatNum(p2))>=0)?p1:p2}else{_43=p1||p2}}}if(!_43&&mt){tmp=this.getFromMimeType("application/x-java-applet.*jpi-version.*=");if(tmp!=""){_43=tmp}}if(!_43&&mt&&/macintosh.*safari/i.test(navigator.userAgent)){p=$.findNavPlugin("Java.*\\d.*Plug-in.*Cocoa",false);if(p){p1=$.getNum(p.description);if(p1){_43=p1}}}if(!_43){p=this.queryJava();if(p){_43=p}}if(!_43&&mt){p=this.appletDetect(jar);if(p[0]){_43=p[0]}}if(!_43&&mt&&!/macintosh.*ppc/i.test(navigator.userAgent)){tmp=this.getFromMimeType("application/x-java-applet.*version.*=");if(tmp!=""){_43=tmp}}this.installed=_43?1:-1;if(!_43&&mt){if(/safari/i.test(navigator.userAgent)){this.installed=0}}}else{var Q;if($.IEver>=this.minIEver){if(!_43){Q=this.findMax(this.lowestPreApproved,min);_43=this.searchJava(Q,this.lowestPreApproved)}if(!_43){tmp=this.appletDetect(jar);if(tmp[0]){_43=tmp[0]}}if(!_43){_43=this.CBSearch()}}else{if(!_43){Q=this.findMax(this.lowestSearchable,min);_43=this.searchJava(Q)}}if(min!=null&&!_43){return}this.installed=_43?1:-1}this.setVersion(_43)},isMinVersion:function(min,jar){if(typeof jar=="undefined"){jar=null}var _49=null,$=PluginDetect,Q,tmp,dtk;dtk=this.searchJavaDTK();if(dtk==-1&&$.isIE){this.installed=-1;return false}if(dtk!=-1&&dtk!=null){_49=dtk}if(!_49){Q=this.findMax(this.lowestPreApproved,min);_49=this.searchJava(Q,this.lowestPreApproved)}if(!_49){tmp=this.appletDetect(jar);if(tmp[0]){_49=tmp[0]}}if(!_49){if(this.CBSearch(min)){this.installed=0;return true}}if(_49){this.installed=1;this.setVersion(_49);if($.compareNums(this.version,min)>=0){return true}};return false},findMax:function(_4a,_4b){var $=PluginDetect;if(typeof _4b=="undefined"||_4b==null||$.compareNums(_4b,_4a)<0){return _4a}return _4b},setVersion:function(_4d){var $=PluginDetect;this.version=$.formatNum($.getNum(_4d));if(typeof this.version=="string"&&this.allVersions.length==0){this.allVersions[0]=this.version}},allVersions:[],searchJavaDTK:function(){if(typeof this.DTKversion!="undefined"){return this.DTKversion}this.allVersions=[];var $=PluginDetect,e,x;var _50=[null,null],obj;var len=null;if($.isIE&&$.IEver>=6){_50=$.instantiate("object","","")}if(!$.isIE&&$.hasMimeType(this.DTKmimeType)){_50=$.instantiate("object","type="+this.DTKmimeType,"")}if(_50[0]&&_50[1]&&_50[1].parentNode){obj=_50[0].firstChild;if($.isIE&&$.IEver>=6){try{obj.classid=this.DTKclassID}catch(e){}try{if(obj.object&&obj.readyState<4){$.garbage=true}}catch(e){}}try{len=obj.jvms.getLength();if(len!=null&&len>0){for(x=0;x<len;x++){this.allVersions[x]=$.formatNum($.getNum(obj.jvms.get(x).version))}}}catch(e){}_50[1].parentNode.removeChild(_50[1])}this.DTKversion=this.allVersions.length>0?this.allVersions[this.allVersions.length-1]:(len==0?-1:null);return this.DTKversion},CBSearch:function(min){var $=PluginDetect;$.isActiveXObject("99,99,99,99");return (typeof min!="undefined"?$.search(min):$.search())},appletDetect:function(jar){if(!jar||typeof jar!="string"){return [null,null]}if(typeof this.appletDetectResult!="undefined"){return this.appletDetectResult}var $=PluginDetect,e,version=null,vendor=null,obj;var _56;var par="<param name=\"archive\" value=\""+jar+"\" />"+"<param name=\"mayscript\" value=\"true\" />"+"<param name=\"scriptable\" value=\"true\" />";if($.isIE){_56=$.instantiate("object","archive=\""+jar+"\" code=\"A.class\" type=\"application/x-java-applet\"","<param name=\"code\" value=\"A.class\" />"+par)}if(!$.isIE){_56=$.instantiate("object","archive=\""+jar+"\" classid=\"java:A.class\" type=\"application/x-java-applet\"",par)}if(_56[0]&&_56[1]&&_56[1].parentNode){obj=_56[0].firstChild;try{if($.isIE&&obj.object&&obj.readyState<4){$.garbage=true}}catch(e){}try{version=obj.getVersion()+" "}catch(e){}try{vendor=obj.getVendor()+" "}catch(e){}_56[1].parentNode.removeChild(_56[1])}this.appletDetectResult=[version,vendor];return this.appletDetectResult}};PluginDetect.instantiate=function(_61,_62,_63){var e,d=document,tag1="<"+_61+" width=\"1\" height=\"1\" "+_62+">"+_63+"</"+_61+">",body=(d.getElementsByTagName("body")[0]||d.body),div=d.createElement("div");if(body){body.appendChild(div)}else{try{d.write("<div>o</div><div>"+tag1+"</div>");body=(d.getElementsByTagName("body")[0]||d.body);body.removeChild(body.firstChild);div=body.firstChild}catch(e){try{body=d.createElement("body");d.getElementsByTagName("html")[0].appendChild(body);body.appendChild(div);div.innerHTML=tag1;return [div,body]}catch(e){}}return [div,div]}if(div&&div.parentNode){try{div.innerHTML=tag1}catch(e){}}return [div,div]};

