Hvad med:
type="procent" -> type="text" rel="procent"
... og et script :o) (der måler på rel og ikke name)
...
...
... d.v.s. f.eks.:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 9px;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">
function calcprocent(f){
var submits=true;
var inps=f.getElementsByTagName("input");
for(i=0,i2=inps.length;i<i2,submits;i++){
if(inps[i].getAttribute("rel")=="procent"){
var tmp=inps[i].getAttribute("value")+"";
tmp=tmp.split(",");
if(tmp.length>2){alert("Procent kan ikke have 2 kommaer");submits=false;}
for(j=0;j<tmp.length;j++){
if(tmp[j].replace(/[0-9]/g,"")!=""){alert("Der er ugyldige tegn i et procent felt 0-9 og et , er tilladt");submits=false;}
}
if(!submits)inps[i].focus();
}
}
return submits;
}
/*
*/
</script>
</head>
<body>
<table width="598" height="543" border="0">
<tr>
<td height="102" colspan="2" align="left" valign="top"><div align="left">
<img src="logo.gif" width="480" height="100" /></div></td>
</tr>
<tr>
<td width="250" align="left" valign="top"><div align="center"><strong>Menu :<br />
<br />
</strong><a href="regn.php"><img src="iconer/regn.gif" width="150" height="30" border="0" /></a><br />
<a href="retregn.php"><img src="iconer/redigere.gif" width="150" height="30" border="0" /></a><br />
<a href="slutseddel.php"><img src="iconer/slut.gif" width="150" height="30" border="0" /></a><br />
<a href="status.php"><img src="iconer/statistik.gif" width="150" height="30" border="0" /></a><br />
<a href="cha.php"><img src="iconer/cha.gif" width="150" height="30" border="0" /></a><br />
<a href="pakker.php"><img src="iconer/udvid.gif" width="150" height="30" border="0" /></a><br />
<br />
</div></td>
<td width="800" align="left" valign="top" style="border-left: 1px solid black;"><br />
<table border="0">
<tr>
<td><div align="left"><img src="
http://side.dkiconer/regnstor.gif" width="250" height="50" /></div><p></td>
</tr>
<tr>
<td>
<form id="form1" name="form1" method="post" action="regn.php?mere=ja" onsubmit="return calcprocent(this);">
<p>Vælg start uge :
<label>
<select name="uge">
<option value="21">21</option><option value="23">23</option><option value="25">25</option><option value="27">27</option><option value="29">29</option><option value="31">31</option><option value="41">41</option><option value="43">43</option><option value="45">45</option><option value="47">47</option><option value="49">49</option><option value="51">51</option>
</select>
</label>
</p>
<b>Rasmus Madsen</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent1" value="22,3"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="1" value="0" /><input type="hidden" name="navn1" value="Rasmus Madsen" /></td>
</tr>
</table><p><br>
<b>Martin</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent2" value="32,44"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="2" value="0" /><input type="hidden" name="navn2" value="Martin" /></td>
</tr>
</table><p><br>
<b>Test</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent3" value="43"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="3" value="0" /><input type="hidden" name="navn3" value="Test" /></td>
</tr>
</table><p><br>
<b>1</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent18" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="18" value="0" /><input type="hidden" name="navn18" value="1" /></td>
</tr>
</table><p><br>
<b>2</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent19" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="19" value="0" /><input type="hidden" name="navn19" value="2" /></td>
</tr>
</table><p><br>
<b>3</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent20" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="20" value="0" /><input type="hidden" name="navn20" value="3" /></td>
</tr>
</table><p><br>
<b>4</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent21" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="21" value="0" /><input type="hidden" name="navn21" value="4" /></td>
</tr>
</table><p><br>
<b>5</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent22" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="22" value="0" /><input type="hidden" name="navn22" value="5" /></td>
</tr>
</table><p><br>
<b>6</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent23" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="23" value="0" /><input type="hidden" name="navn23" value="6" /></td>
</tr>
</table><p><br>
<b>7</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent24" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="24" value="0" /><input type="hidden" name="navn24" value="7" /></td>
</tr>
</table><p><br>
<b>8</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent25" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="25" value="0" /><input type="hidden" name="navn25" value="8" /></td>
</tr>
</table><p><br>
<b>9</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent26" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="26" value="0" /><input type="hidden" name="navn26" value="9" /></td>
</tr>
</table><p><br>
<b>10</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent27" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="27" value="0" /><input type="hidden" name="navn27" value="10" /></td>
</tr>
</table><p><br>
<b>11</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent28" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="28" value="0" /><input type="hidden" name="navn28" value="11" /></td>
</tr>
</table><p><br>
<b>12</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent29" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="29" value="0" /><input type="hidden" name="navn29" value="12" /></td>
</tr>
</table><p><br>
<b>13</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent30" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="30" value="0" /><input type="hidden" name="navn30" value="13" /></td>
</tr>
</table><p><br>
<b>14</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent31" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="31" value="0" /><input type="hidden" name="navn31" value="14" /></td>
</tr>
</table><p><br>
<b>15</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent32" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="32" value="0" /><input type="hidden" name="navn32" value="15" /></td>
</tr>
</table><p><br>
<b>16</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent33" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="33" value="0" /><input type="hidden" name="navn33" value="16" /></td>
</tr>
</table><p><br>
<b>17</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent34" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="34" value="0" /><input type="hidden" name="navn34" value="17" /></td>
</tr>
</table><p><br>
<b>18</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent35" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="35" value="0" /><input type="hidden" name="navn35" value="18" /></td>
</tr>
</table><p><br>
<b>19</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent36" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="36" value="0" /><input type="hidden" name="navn36" value="19" /></td>
</tr>
</table><p><br>
<b>20</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent37" value="47,14"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="37" value="0" /><input type="hidden" name="navn37" value="20" /></td>
</tr>
</table><p><br>
<b>Test22</b><br><table width="317" border="0">
<tr>
<td width="158">Procent</td>
<td width="226"><label>
<input type="text" rel="procent" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="procent39" value="332,2"/>
</label></td>
</tr>
<tr>
<td>Indkørt</td>
<td><input type="text" style="border-left:none; border-right:none; border-top:none; border-bottom-color:#000000;" name="39" value="0" /><input type="hidden" name="navn39" value="Test22" /></td>
</tr>
</table><p><br>
<input name="koder" type="hidden" id="procent" value="1,2,3,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,39,"/>
<br>
<input name="antal" type="hidden" id="" value="24"/><p>
<label>
<input type="image" src="iconer/knap_lon.gif" name="submit">
</label>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><hr />
<div align="center" class="style1"></div></td>
</tr>
</table>
</body>
</html>