Décidement, soit je comprend vraiment rien a javascript (c'est possible).
Soit j'ai une mini erreur débile qui plante tout mais les boutons ne sont visiblement plus actif (quel que soit le code (sur le site ou celui de joshua))
Il y a quelque chose a activé comme pour le php ?
Soit j'ai une mini erreur débile qui plante tout mais les boutons ne sont visiblement plus actif (quel que soit le code (sur le site ou celui de joshua))
Il y a quelque chose a activé comme pour le php ?
Code PHP :
<?php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Projet Aegis</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="design par defaut" href="css/europeO.css" />
</head>
<body>
<h1>Choix des compétences</h1>
<center>
<form method="POST" action="traitement_competences.php" name="competence">
<b>Nombre d'<acronym title="Point d'investissement">XPI</acronym> restant : </b>
<input type="text" style="background-color:#766a4d;" name="XPI" size="1" value="300" readonly='true'>
<p>Pour le choix de vos compétences et la comprehénsion de cette partie, nous vous recommandons de lire les règles du jeu Projet Aegis (onglet inscription et compétences) !</p>
<div id="competence_permanente">
<h2>Compétences dite permanente</h2>
<h3>Compétences d'armements</h3>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes de poing
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_poing" size="1" readonly='true' value="70">
<td width="75%"> <input name="button111" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_poing')" value="-" size="20">
<input name="button111" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_poing')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes blanches
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_blanches" size="1" readonly='true' value="70">
<td width="75%"> <input name="button112" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_blanches')" value="-" size="20">
<input name="button112" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_blanches')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Combats à mains nues
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="combats_mains_nues" size="1" readonly='true' value="85">
<td width="75%"> <input name="button113" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','combats_mains_nues')" value="-" size="20">
<input name="button113" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','combats_mains_nues')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes d'épaule et légère
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_epaule" size="1" readonly='true' value="0">
<td width="75%"> <input name="button114" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','Armes_epaule')" value="-" size="20">
<input name="button114" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_epaule')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes lourdes
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_lourdes" size="1" readonly='true' value="0">
<td width="75%"> <input name="button115" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_lourdes')" value="-" size="20">
<input name="button115" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_lourdes')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes légères
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_legeres" size="1" readonly='true' value="0">
<td width="75%"> <input name="button116" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_legeres')" value="-" size="20">
<input name="button116" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_legeres')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes de jet
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_jet" size="1" readonly='true' value="0">
<td width="75%"> <input name="button117" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_jet')" value="-" size="20">
<input name="button117" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_jet')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Explosif
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="explosif" size="1" readonly='true' value="0">
<td width="75%"> <input name="button118" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','explosif')" value="-" size="20">
<input name="button118" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','explosif')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Armes de véhicules
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="armes_vehicules" size="1" readonly='true' value="0">
<td width="75%"> <input name="button119" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','armes_vehicules')" value="-" size="20">
<input name="button119" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','armes_vehicules')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Artilleur
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="artilleur" size="1" readonly='true' value="0">
<td width="75%"> <input name="button1110" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','artilleur')" value="-" size="20">
<input name="button1110" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','artilleur')" value="+" size="20"></td>
</tr>
</table>
<h3>Compétences de caractéristiques</h3>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Randonnées
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="randonnees" size="1" readonly='true' value="100">
<td width="75%"> <input name="button121" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','randonnees')" value="-" size="20">
<input name="button121" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','randonnees')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Navigation (Mer)
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="navigation" size="1" readonly='true' value="0">
<td width="75%"> <input name="button122" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','navigation')" value="-" size="20">
<input name="button122" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','navigation')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Conduire (Terre)
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="conduire" size="1" readonly='true' value="0">
<td width="75%"> <input name="button123" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','conduire')" value="-" size="20">
<input name="button123" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','conduire')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Pilotage (Air)
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="pilotage" size="1" readonly='true' value="0">
<td width="75%"> <input name="button124" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','pilotage')" value="-" size="20">
<input name="button124" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','pilotage')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Eclaireur
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="eclaireur" size="1" readonly='true' value="60">
<td width="75%"> <input name="button125" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','eclaireur')" value="-" size="20">
<input name="button125" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','eclaireur')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Musculation
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="musculation" size="1" readonly='true' value="0">
<td width="75%"> <input name="button126" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','musculation')" value="-" size="20">
<input name="button126" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','musculation')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Connaissance des blindages
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="connaissance_blindage" size="1" readonly='true' value="10">
<td width="75%"> <input name="button127" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','connaissance_blindage')" value="-" size="20">
<input name="button127" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','connaissance_blindage')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Survie
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="survie" size="1" readonly='true' value="30">
<td width="75%"> <input name="button128" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','survie')" value="-" size="20">
<input name="button128" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','survie')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Connaissance des métabolismes
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="connaissance_metabolisme" size="1" readonly='true' value="700">
<td width="75%"> <input name="button129" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','connaissance_metabolisme')" value="-" size="20">
<input name="button129" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','connaissance_metabolisme')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Résistance aux poisons
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="resistance_poison" size="1" readonly='true' value="10">
<td width="75%"> <input name="button1210" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','resistance_poison')" value="-" size="20">
<input name="button1210" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','resistance_poison')" value="+" size="20"></td>
</tr>
</table>
<h3>Compétences diverses</h3>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Médecine
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="medecine" size="1" readonly='true' value="0">
<td width="75%"> <input name="button131" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','medecine')" value="-" size="20">
<input name="button131" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','medecine')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Premiers Secours
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="premiers_secours" size="1" readonly='true' value="0">
<td width="75%"> <input name="button132" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','premiers_secours')" value="-" size="20">
<input name="button132" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','premiers_secours')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Parachutisme
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="parachutisme" size="1" readonly='true' value="0">
<td width="75%"> <input name="button133" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','parachutisme')" value="-" size="20">
<input name="button133" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','parachutisme')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Réparations
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="reparations" size="1" readonly='true' value="0">
<td width="75%"> <input name="button134" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','reparations')" value="-" size="20">
<input name="button134" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','reparations')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Mécanique
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="mecanique" size="1" readonly='true' value="0">
<td width="75%"> <input name="button135" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','mecanique')" value="-" size="20">
<input name="button135" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','mecanique')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Espionnage
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="espionnage" size="1" readonly='true' value="0">
<td width="75%"> <input name="button136" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','espionnage')" value="-" size="20">
<input name="button136" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','espionnage')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Alpinisme
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="alpinisme" size="1" readonly='true' value="0">
<td width="75%"> <input name="button137" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','alpinisme')" value="-" size="20">
<input name="button137" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','alpinisme')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">As de l'aviation
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="as_aviation" size="1" readonly='true' value="0">
<td width="75%"> <input name="button138" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','as_aviation')" value="-" size="20">
<input name="button138" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','as_aviation')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Camouflage
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="camouflage" size="1" readonly='true' value="0">
<td width="75%"> <input name="button139" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','camouflage')" value="-" size="20">
<input name="button139" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','camouflage')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Berzeker
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="berzeker" size="1" readonly='true' value="0">
<td width="75%"> <input name="button1310" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','berzeker')" value="-" size="20">
<input name="button1310" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','berzeker')" value="+" size="20"></td>
</tr>
</table>
</div>
<div id="competence_temporaire">
<h2>Compétences dite temporaire</h2>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Fortifications
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="fortifications" size="1" readonly='true' value="0">
<td width="75%"> <input name="button211" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','fortifications')" value="-" size="20">
<input name="button211" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','fortifications')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Marches forcées
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="marches_forcees" size="1" readonly='true' value="0">
<td width="75%"> <input name="button212" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','marches_forcees')" value="-" size="20">
<input name="button212" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','marches_forcees')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Cartographie
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="cartographie" size="1" readonly='true' value="0">
<td width="75%"> <input name="button213" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','cartographie')" value="-" size="20">
<input name="button213" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','cartographie')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Franc tireur
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="franc_tireur" size="1" readonly='true' value="0">
<td width="75%"> <input name="button214" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','franc_tireur')" value="-" size="20">
<input name="button214" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','franc_tireur')" value="+" size="20"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="10%" align="center" valign="left">Génie Civil
<td width="4%" height="26" align="center" valign="middle"><input type="text" style="background-color:#766a4d;" name="genie_civil" size="1" readonly='true' value="0">
<td width="75%"> <input name="button215" type="button" style="background-color:#766a4d;" onClick="moins('1','XPI','genie_civil')" value="-" size="20">
<input name="button215" type="button" style="background-color:#766a4d;" onClick="plus('1','XPI','genie_civil')" value="+" size="20"></td>
</tr>
</table>
</div>
</form>
</center>
</body>
</html>
Code PHP :
<?php
<script>
<!--
function plus(1, XPI, armes_poing)
{
var a = window.document.forms['competence'].elements[XPI].value;
var b = window.document.forms['competence'].elements[armes_poing].value;
a = a - 1;
if(a < 0 )
{
a = 0;
}
else
{
b = b - - 1;
}
window.document.forms['competence'].elements[XPI].value = a;
window.document.forms['competence'].elements[armes_poing].value = b;
}
function moins(1, XPI, armes_poing)
{
var a = window.document.forms['competence'].elements[XPI].value;
var b = window.document.forms['competence'].elements[armes_poing].value;
b = b - 1;
if(b < 0 )
{
b = 0;
}
else
{
a = a - - 1;
}
window.document.forms['competence'].elements[XPI].value = a;
window.document.forms['competence'].elements[armes_poing].value = b;
}
-->
</script>