/* --------------------------------------------------------------------------------------------------------------------------------------- SMILEYS ET MESSAGE */
function ajsmiley(smiley){
var message = document.newsmess.message.value;
avecsmiley = message+smiley;
document.newsmess.message.value = avecsmiley;
document.newsmess.message.focus();
}
function apercu(){
var contenu = document.getElementById("message").value;
contenu = contenu.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
var tab = [
['\\[lien\\](http://[^ ]+)\\[/lien\\]', '<a href="$1" target="_blank">$1</a>'],
['\\[mail\\](.+)\\[/mail\\]', '<a href="mailto:$1">$1</a>'],
['\\[img\\](http://[^ ]+)\\[/img\\]', '<img src="$1" alt="" title="">'],
['\\[i\\](.+)\\[/i\\]', '<i>$1</i>'],
['\\[s\\](.+)\\[/s\\]', '<u>$1</u>'],
['\\[g\\](.+)\\[/g\\]', '<b>$1</b>'],
['\\[red\\](.+)\\[/red\\]', '<font color="red">$1</font>'],
['\\[darkred\\](.+)\\[/darkred\\]', '<font color="darkred">$1</font>'],
['\\[blue\\](.+)\\[/blue\\]', '<font color="blue">$1</font>'],
['\\[darkblue\\](.+)\\[/darkblue\\]', '<font color="darkblue">$1</font>'],
['\\[orange\\](.+)\\[/orange\\]', '<font color="orange">$1</font>'],
['\\[brown\\](.+)\\[/brown\\]', '<font color="brown">$1</font>'],
['\\[green\\](.+)\\[/green\\]', '<font color="green">$1</font>'],
['\\[violet\\](.+)\\[/violet\\]', '<font color="violet">$1</font>'],
['\\[olive\\](.+)\\[/olive\\]', '<font color="olive">$1</font>'],
['\\[cyan\\](.+)\\[/cyan\\]', '<font color="cyan">$1</font>'],
['\\[indigo\\](.+)\\[/indigo\\]', '<font color="indigo">$1</font>'],
['\\[droite\\](.+)\\[/droite\\]', '<span style="float: right; line-height:100%">$1</span>'],
['\\[centrer\\](.+)\\[/centrer\\]', '<center>$1</center>'],
['\\[gauche\\](.+)\\[/gauche\\]', '<span style="float: left; line-height:100%">$1</span>'],
[':\\)', '<img src="images/smileys/1.gif" />'],
[':peur:', '<img src="images/smileys/2.gif" />'],
[':ouch:', '<img src="images/smileys/3.gif" />'],
[':nul:', '<img src="images/smileys/4.gif" />'],
[':ouin:', '<img src="images/smileys/5.gif" />'],
[':beurk:', '<img src="images/smileys/6.gif" />'],
[':boulot:', '<img src="images/smileys/7.gif" />'],
[':fleur:', '<img src="images/smileys/8.gif" />'],
[':love:', '<img src="images/smileys/9.gif" />'],
[':dodo:', '<img src="images/smileys/10.gif" />'],
[':D', '<img src="images/smileys/11.gif" />'],
[':dsl:', '<img src="images/smileys/12.gif" />'],
[':fete:', '<img src="images/smileys/13.gif" />'],
[':kesta:', '<img src="images/smileys/14.gif" />'],
[':P', '<img src="images/smileys/15.gif" />']
];
for(var i=0; i < tab.length; i++) {
contenu = contenu.replace(new RegExp(tab[i][0], "g"), tab[i][1]);
}
  retour = new RegExp("(\r\n|\r|\n)", "g" );
	contenu = contenu.replace(retour,"<br />" );
	document.getElementById("aperc").innerHTML = contenu;
 }

/* --------------------------------------------------------------------------------------------------------------------------------------- MENU FLASH */
function menuflash(nom,l,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+l+'" height="'+h+'">\n');
document.write('<param name="movie" value="'+nom+'" />\n');
document.write('<param name="play" value="true" />\n');
document.write('<param name="loop" value="true" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="WMode" value="transparent" />\n');
document.write('<embed width="'+l+'" height="'+h+'" src="'+nom+'" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" WMode="transparent"></embed>\n');
document.write('</object>\n');
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CALQUE ERREUR */
function aff_calque_erreur(type,titre,message){
/*var height = document.getElementById('corp').offsetHeight;*/
var height = document.documentElement.clientHeight;
var margin = ((height/2)-91);
document.write('<div id="pop" align="center" style="z-index: 999; position:absolute; left: 50%; top: 50%; width: 481px; height: 182px; margin-left: -240px; margin-top: -91px; background-image: url(images/fond-calque-'+type+'.gif); visibility: visible;">\n');
document.write('<p style="line-height:250%; margin-left: 128px; margin-top: 30px;"><font size="5"><b>'+titre+'</b></font></p><br /><p style="line-height:180%; margin-left: 128px;">'+message+'\n');
document.write('<br /><br /><a href="javascript:calque(\'close\');">[ Fermer cet avertissement ]</a></p>\n');
document.write('</div>\n');
document.write('<div id="popfond" align="center" style="z-index: 500; position:absolute; left: 0%; top: 0%; width: 100%; height: '+height+'px; margin-left: 0px; margin-top: 0px; background-color:#000; filter:alpha(opacity=50); -moz-opacity: 0.50; opacity: 0.50; visibility: visible;"></div>\n');
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CHAT */
function open_chat(cl) {
if(cl == "close") {
document.getElementById("amis").style.visibility = 'hidden';
} else {
document.getElementById("amis").style.visibility = 'visible';
}
}

/* --------------------------------------------------------------------------------------------------------------------------------------- FERMETURE CALQUE */
function calque(message) {
if(message == "close") {
document.getElementById("pop").style.visibility = 'hidden';
if(document.getElementById("popfond")) document.getElementById("popfond").style.visibility = 'hidden';
}
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CALQUE SORT */
function sortilege(){
document.getElementById("sort").style.visibility = 'hidden';
document.getElementById("sort2").style.visibility = 'hidden';
document.getElementById("sort3").style.visibility = 'hidden'; 
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CALQUE EVENEMENTS */
function evenement(act){
if(act == "fermer"){ document.getElementById("eve").style.visibility = 'hidden'; document.getElementById("eve2").style.visibility = 'hidden'; document.getElementById("eve3").style.visibility = 'hidden'; }
if(act == "ouvrir"){ document.getElementById("eve").style.visibility = 'visible'; document.getElementById("eve2").style.visibility = 'visible'; document.getElementById("eve3").style.visibility = 'visible'; }
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CALQUE ALPET */
function aff_calque_alpet(){
document.getElementById("pop").style.visibility = 'visible';
}
/* --------------------------------------------------------------------------------------------------------------------------------------- FERMETURE CALQUE TICKET*/
function close_ticket() {
document.getElementById("caisse").style.visibility = 'hidden';
}
/* --------------------------------------------------------------------------------------------------------------------------------------- AJOUT AUX FAVORIS 
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Legendia Land","http://www.legendia-land.com/",""); }
else { window.external.AddFavorite("http://www.legendia-land.com/","Legendia Land"); }
} */
/* --------------------------------------------------------------------------------------------------------------------------------------- AFFICHER PEGASE OU LICORNE INSCRIPTION */
function choix(tamago) {
document.getElementById("aff_tamago").innerHTML = '<img src="images/pegase-logo.png" width="90" height="140" alt="Un Pégase" title="Un Pégase" />';
if(tamago == "licorne") {
document.getElementById("aff_tamago").innerHTML = '<img src="images/licorne-logo.png" width="90" height="140" alt="Une Licorne" title="Une Licorne" />';
} else {
document.getElementById("aff_tamago").innerHTML = '<img src="images/pegase-logo.png" width="90" height="140" alt="Un Pégase" title="Un Pégase" />';
}
}
/* --------------------------------------------------------------------------------------------------------------------------------------- VERIF CLIQUE */
var nbclic = 0
function clic(formulaire){
nbclic++;
if(nbclic > 1) { alert("Tu as déjà cliqué pour valider.\nTa demande est en cours de traitement... Patience"); }
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CALCUL BOUTIQUE */
function calcul(idd,art,px,tot,rayon){
// ---- debut encode64
//var encode64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
//var binEncode = new Array();
//for (i=0;i<encode64Table.length;i++)
//binEncode[binBits(i, 6)] = encode64Table.charAt(i);
//function base64_encode(chaineAconvertir) {
//var base64String = "";
//var groupe128bits = "";
//for (var i=0;i<chaineAconvertir.length;i = i+3) {
//groupe24bits = chaineAconvertir.substr(i,3);
//nbCar = groupe24bits.length;
//var binContainer = "";
//for (var j=0;j<nbCar;j++)
//binContainer += binBits(groupe24bits.charCodeAt(j), 8);
//binContainer = nbCar==1?binContainer+"0000":nbCar==2?binContainer+"00":binContainer;
//for (var k=0;k<binContainer.length;k = k + 6)
//base64String += binEncode[binContainer.substr(k,6)];
//}
//base64String = nbCar==1?base64String+"==":nbCar==2?base64String+"=":base64String;
//return base64String;
//}
//function binBits(nbr, lng) {
//var bin = nbr.toString(2);
//return "00000000".substr(0, lng - bin.length ) + bin;
//}
// ---- fin encode64
var qq = document.getElementById('' + idd + '').value;
var total = (qq*px);
total = total.toFixed(2);

if(!isNaN(qq)){
// if(idd > "17" && idd < "22" && document.getElementById('' + idd + '').value > 1){ document.getElementById('' + idd + '').value = 1;  qq = 1;} 
var total_ticket = 0;
var total_objet = 0;
var dd = 0;
for(var aa = 0; aa <= tot; aa++){
total_ticket = (document.getElementById(''+dd+'').value*document.getElementById('p'+dd+'').value)+total_ticket;
if(document.getElementById(''+dd+'').value == ""){ var obj = 0; } else { var obj = document.getElementById(''+dd+'').value; }
total_objet = parseInt(obj)+parseInt(total_objet);
dd++;
}



//var base64Resultat = base64_encode('boutique&'+art+'&'+qq+'');
document.getElementById("" + art + "").style.visibility = "visible";
//document.getElementById("" + art + "").innerHTML = '<a href="action.php?action='+base64Resultat+'"><font color="#003399">'+qq+' x '+px+'</font><br /><font size="4" color="#003399">'+total+'</font><br />Emporter</a>';
document.getElementById("" + art + "").innerHTML = '<br /><font color="#003399">'+qq+' x '+px+'<br />=</font><br /><font size="4" color="#003399">'+total+'</font>';
}
if((qq == "") || (qq == "0") || (qq == "00")) { document.getElementById("" + art + "").style.visibility = "hidden"; }

if( total_ticket > 0 ){
if(total_objet > 1){ var s = "s"; } else { var s = ""; }
document.getElementById("ticket1").style.display = "none";
document.getElementById("ticket2").style.display = "none";
document.getElementById("ticket3").style.display = "none";
document.getElementById("ticket4").style.display = "none";
document.getElementById("ticket"+rayon).innerHTML = '<br /><font color="#f08d1e" size="4">Total '+total_ticket.toFixed(2)+' Kopeks pour '+total_objet+' article'+s+'<br /><input type="submit" value=" Acheter " style="margin-top:10px;" /><br /><br />';
document.getElementById("ticket"+rayon).style.display = "block";

} else { 
document.getElementById("ticket1").style.display = "none";
document.getElementById("ticket2").style.display = "none";
document.getElementById("ticket3").style.display = "none";
document.getElementById("ticket4").style.display = "none";
}
}
/* --------------------------------------------------------------------------------------------------------------------------------------- FONCTION DA LEGENDIA CODE */
var c1 = ''; var c2 = ''; var c3 = ''; var c4 = '';
function da_code(id,color){
document.getElementById(id).innerHTML = '<img src="images/jeux/mind-bouton-' + color + '.gif" title="' + color + '" />';

if(id == 1){ c1 = color; }
if(id == 2){ c2 = color; }
if(id == 3){ c3 = color; }
if(id == 4){ c4 = color; }

document.getElementById('couleur').value = c1+'-'+c2+'-'+c3+'-'+c4;
}
/* --------------------------------------------------------------------------------------------------------------------------------------- FONCTION CHOIX PSEUDO MP */
function valide_mp(id){
var pseu = document.getElementById(id).value;
document.getElementById("mp_div").style.visibility = "visible";
document.getElementById('mp_div').innerHTML = '<font color="#FF6600"><br />Ce message sera envoyé à <b>' + pseu + '</b></font><input type="hidden" id="messdest" name="messdest" value="' + pseu + '" /><br />';
}
/* --------------------------------------------------------------------------------------------------------------------------------------- MENU GRANGE */
function menu_grange(eltId,id_close){
var elt = document.getElementById(eltId);
var close = document.getElementById(id_close);
elt.style.display = (elt.style.display == "block") ? "none" : "block";

}
/* --------------------------------------------------------------------------------------------------------------------------------------- CLASSEMENT */
function classement(){
document.getElementById("classement").style.color = "#ff6600";
}
/* --------------------------------------------------------------------------------------------------------------------------------------- POPUP */
function pop(url,nom,w,h,scroll){
  var winl = (screen.width) ? (screen.width-w)/2 : 0;
  var wint = (screen.height) ? (screen.height-h)/2 : 0;
  var options = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no';
  journal = window.open(url,nom,options);
  if(journal.window.focus){journal.window.focus();}
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CHECK */
function check(id){
var id = id;
if(document.getElementById('prod['+id+']').checked == true){
document.getElementById('prod['+id+']').checked = false;
} else {
document.getElementById('prod['+id+']').checked = true;
}
}
/* --------------------------------------------------------------------------------------------------------------------------------------- CABANE */
function mat_mur() {
document.getElementById("murs").innerHTML = '<img src="images/cabane/mur/'+document.getElementById('mate_mur').value+'.jpg" alt="" />';
}
function mat_sol() {
document.getElementById("sol").innerHTML = '<img src="images/cabane/sol/'+document.getElementById('mate_sol').value+'.jpg" alt="" />';
}
function mat_plinthe() {
document.getElementById("plinthe").innerHTML = '<img src="images/cabane/plinthe/'+document.getElementById('mate_plinthe').value+'.jpg" alt="" />';
}































/* --------------------------------------------------------------------------------------------------------------------------------------- DIV DETAIL */
/*function details(prod) {
document.getElementById("aff_detail").innerHTML = "";
if(prod == "poudre5") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>( 1 bleue, 1 verte, 1 blanche, 1 noire, 1 or )<br />Valeur totale : 4100 Kopeks</p>";
if(prod == "poudre4") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>( 1 mauve, 1 rouge, 1 noire, 1 blanche )<br />Valeur totale : 5000 Kopeks</p>";
if(prod == "sucre") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "betterave") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4500 Kopeks</p>";
if(prod == "cidre") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "etoile") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "lune") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "dragon") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "ange") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "paon") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "sirene") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "oeil") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "soleil") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "trefle") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 5000 Kopeks</p>";
if(prod == "crapaud") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4500 Kopeks</p>";
if(prod == "arrosoir") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4500 Kopeks</p>";
if(prod == "engrais") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4500 Kopeks</p>";
if(prod == "nymphea") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "enchantera") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "feeria") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "utopia") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "malefia") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Valeur totale : 4800 Kopeks</p>";
if(prod == "potion") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>( 1 orange, 1 bleue, 1 jaune, 1 rose, 1 émeraude )<br />Valeur totale : 5000 Kopeks</p>";

if(prod == "2000") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Reçois 2000 Kopeks</p>";
if(prod == "culture1") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>1 tracteur, 3 outillages, 15 arrosoirs, 10 engrais,<br />3 insecticides, 3 épouvantail<br />Valeur totale : 1942.50 Kopeks</p>";
if(prod == "magie1") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>20 items d'école :<br />5 baguettes, 5 grimoires, 5 boules, 5 chapeaux<br />Valeur totale : 2175 Kopeks</p>";
if(prod == "sante1") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>49 items de soins :<br />7 foins, 7 eaux, 7 savons, 7 médicaments, 7 pommes, 7 carottes, 7 sucres<br />Valeur totale : 2894.50 Kopeks</p>";
if(prod == "culture2") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>1 tracteur, 3 outillages, 15 arrosoirs, 10 engrais,<br />3 insecticides, 3 épouvantail<br />Valeur totale : 1942.50 Kopeks</p>";
if(prod == "magie2") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>12 items de faculté :<br />3 balais, 3 grimoires, 3 coiffes, 3 lampes<br />Valeur totale : 2610 Kopeks</p>";
if(prod == "sante2") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>49 items de soins :<br />7 foins, 7 eaux, 7 savons, 7 médicaments, 7 pommes, 7 carottes, 7 sucres<br />Valeur totale : 2894.50 Kopeks</p>";
if(prod == "culture3") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>1 outillage, 30 arrosoirs, 1 terreau, 1 anti-limaces,<br />1 sachet de chaque graine<br />Valeur totale : 2152.50 Kopeks</p>";
if(prod == "magie3") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>10 Chopines, 2 Stères, 10 points d'XP<br />Valeur totale : 2200 Kopeks</p>";
if(prod == "sante3") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>49 items de soins :<br />7 foins, 7 eaux, 7 savons, 7 médicaments,<br />7 pommes, 7 carottes, 7 sucres<br />Valeur totale : 2894.50 Kopeks</p>";
if(prod == "deplacements") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Reçois 10 déplacements sur la carte</p>";
if(prod == "jetons") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Reçois 20 jetons pour les jeux</p>";
if(prod == "pieces") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Reçois 20 pièces à souhaits pour le puits</p>";
if(prod == "avance") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Reçois 10 avancées pour la quête</p>";
if(prod == "vip_boutik") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Tes achats Boutik journaliers sont doublés pendant 7 jours</p>";
if(prod == "vip_casino") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Tes jetons journaliers pour le casino sont doublés pendant 7 jours</p>";
if(prod == "vip_inventaire") document.getElementById("aff_detail").innerHTML = "<p class=\'renta2\'>Ta limite d'inventaire monte à 100 pendant 7 jours</p>";
}
*/

/* --------------------------------------------------------------------------------------------------------------------------------------- SOUS MENUS */
/*function ss_menu(courant){
if (document.getElementById) {
thisMenu=document.getElementById(courant).style;
if (thisMenu.display=="block"){
thisMenu.display="none";
} else {
thisMenu.display="block"; }
return false;
} else { return true; }
}
*/
/* --------------------------------------------------------------------------------------------------------------------------------------- MESSAGE STATUS */
/*texteAff = 'http://www.legendia-land.com ... Adoption virtuelle d\'un être de légende, licorne ou pégase';
place = 0;
tempoLong = 100;
function legendia(){
texteTemp1 = texteAff.substring(0,place);
texteTemp2 = texteAff.substring(place,place+1);
texteTemp2 = texteTemp2.toUpperCase();
texteTemp3 = texteAff.substring(place+1,texteAff.length);
window.status = texteTemp1 + texteTemp2 + texteTemp3;
if (place>texteAff.length){
	place = 0;
	tempoLong = 1000;
	tempoAnimEtat2 = 0;
	}
if (place==0)
	tempoLong = 100;
	place++;
	tempoAnimEtat2 = setTimeout('legendia()',tempoLong)
	}
function legendiaBreak(){
	window.status = '';
	clearTimeout(tempoAnimEtat2);
	}

*/
/* --------------------------------------------------------------------------------------------------------------------------------------- BLOQUER ENTREE*/
/*if (document.layers)
document.captureEvents(Event.KEYPRESS)
function entree(e) { 
if(window.event){
if (window.event.type == "keypress" & window.event.keyCode == 13)
return !(window.event.type == "keypress" & window.event.keyCode == 13);
}
if(e){
if (e.type == "keypress" & e.keyCode == 13)
return !e;
}}
document.onkeypress = entree;
*/

/* --------------------------------------------------------------------------------------------------------------------------------------- POPUP FORMULAIRE */
/*function createTarget(t,wi,he){
window.open('', t, 'width='+wi+',height='+he+'');
return true;
}
*/
/* --------------------------------------------------------------------------------------------------------------------------------------- CALQUES */
/*function open_banque(object) {
  if (document.getElementById)
      var objectStyle = document.getElementById(object).style;
      objectStyle.visibility = 'visible';   
       }

function close_banque(object) {
  if (document.getElementById)
      var objectStyle = document.getElementById(object).style;
      objectStyle.visibility = 'hidden'; 
}
*/
/* --------------------------------------------------------------------------------------------------------------------------------------- PLURIEL */
/*function pluriel(qq,px_bourse){
if(qq > 1){ document.getElementById("pluriel").innerHTML = "s"; } else { document.getElementById("pluriel").innerHTML = ""; }
var tot_bourse = Math.round((px_bourse*qq)*100)/100;
var tot_bourse = tot_bourse.toFixed(2);
if(!isNaN(qq)){
document.getElementById("total").innerHTML = ' <font color="orange"><b>= '+tot_bourse+' kopeks</b></font>&nbsp;&nbsp;<input type="submit" value="Acheter" onclick="clic()">';
} else {
document.getElementById("total").innerHTML = "";
}
}
*/