skift æ,ø,å til ae,oe,aa
jeg har en form hvor bl.a \"kortindehaver\" skal indtastes, men betalingsscriptet virker ikke hvis der er æ,ø,å i navnet så nu vil jeg gerne have et javascript der automatisk laver indtastede æ,ø,å om før form sendes.Her er formen:
<html>
<head>
<META HTTP-EQUIV=\"content-type\" CONTENT=\"text/html;charset=iso-8859-1\">
<META HTTP-EQUIV=\"published\" CONTENT=\"1 Marts 2000 00:00:00\">
<META HTTP-EQUIV=\"expires\" CONTENT=\"1 April 2020 00:00:00\">
<META HTTP-EQUIV=\"keywords\" CONTENT=\"teater show billetter\">
<META HTTP-EQUIV=\"description\" CONTENT=\"WebBillets hjemmeside\">
<META HTTP-EQUIV=\"author\" CONTENT=\"www.web-designers.dk\">
<title>Velkommen til WebBillet</title>
<link rel=\"stylesheet\" href=\"StyleSheet_WebBillet.css\">
<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"checknb2.js\">
</SCRIPT>
<script Language=\"javascript\">
function slet(){
document.order.reset();
}
</script>
</head>
<body bgcolor=\"#FFFFFF\" marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\" bgproperties=\"fixed\" OnLoad=\"reset()\">
<!--<form NAME=\"order\" action=\"test2.php\" target=\"main\" method=\"post\" onSubmit=\"return CheckForm()\" > -->
<form NAME=\"order\" action=\"servlet\" target=\"main\" method=\"post\" onSubmit=\"return CheckForm()\" >
<table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr align=\"left\" valign=\"top\">
<td class=\"brodtxtBlack\"> <br>
<table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr align=\"left\" valign=\"top\">
<td width=\"20\" height=\"20\"></td>
<td><img src=\"img/txt_kreditkort_oplysninger.gif\" width=\"191\" height=\"14\"></td>
<td align=\"right\"><a href=\"java script:history.back();\"><img src=\"img/knap_tilbage_off.gif\" width=\"73\" height=\"13\" border=\"0\"></a></td>
<td width=\"20\" height=\"20\"></td>
</tr>
</table>
<img src=\"img/delimiter_top.gif\" width=\"510\" height=\"14\">
<table border=\"0\" cellspacing=\"5\" cellpadding=\"3\">
<tr>
<td class=\"brodtxt6B7F7B\"><img src=\"img/PixelTrans.gif\" width=\"5\" height=\"5\"></td>
<td bgcolor=\"#B5BDBB\" class=\"brodtxt6B7F7B\" width=\"85\" align=\"left\" valign=\"middle\">Korttype
<input type=hidden name=\"cardType\" value=\"k\" >
</td>
<td class=\"brodtxt6B7F7B\" colspan=\"5\" align=\"left\" valign=\"middle\">Dankort
<span class=\"brodtxtminiOrange\">[andre kreditkort vil snart være
tilgængelig]</span> </td>
</tr>
<tr>
<td class=\"brodtxt6B7F7B\"></td>
<td bgcolor=\"#B5BDBB\" class=\"brodtxt6B7F7B\" width=\"85\" align=\"left\" valign=\"middle\">Kortindehaver</td>
<td class=\"brodtxt6B7F7B\" colspan=\"5\" align=\"left\" valign=\"middle\">
<input type=\"text\" name=\"cardOwner\" size=\"25\" class=\"brodtxt6B7F7B\">
</td>
</tr>
<tr>
<td class=\"brodtxt6B7F7B\"></td>
<td bgcolor=\"#B5BDBB\" class=\"brodtxt6B7F7B\" width=\"85\" align=\"left\" valign=\"middle\">Kortnummer</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\" colspan=\"4\">
<input type=\"text\" name=\"cardNumber\" size=\"25\" class=\"brodtxt6B7F7B\" maxlength=\"16\"> NB Kortnummer <b>skal</b> være 16 cifre.
</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\"> </td>
</tr>
<tr>
<td class=\"brodtxt6B7F7B\"></td>
<td bgcolor=\"#B5BDBB\" class=\"brodtxt6B7F7B\" width=\"85\" align=\"left\" valign=\"middle\">Gyldig
til</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\">
<input type=\"text\" name=\"cardMonth\" size=\"4\" class=\"brodtxt6B7F7B\" maxlength=\"4\">
</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\">
<input type=\"text\" name=\"cardYear\" size=\"4\" class=\"brodtxt6B7F7B\" maxlength=\"4\">
</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\">
<input type=hidden name=Anrede value=\"\" size=10 maxlength=8>
<INPUT name=Bezahlung type=hidden value=\"c\">
<INPUT name=Payment type=hidden value=\"c\">
<INPUT maxLength=34 name=BankAccountOwner type=hidden size=27>
<INPUT maxLength=27 name=BankName type=hidden size=27>
<INPUT maxLength=8 name=BankNumber type=hidden size=8>
<INPUT maxLength=12 name=BankAccount type=hidden size=12>
</td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\"></td>
<td class=\"brodtxt6B7F7B\" align=\"left\" valign=\"middle\"></td>
</tr>
</table>
<img src=\"img/delimiter_bottom.gif\" width=\"510\" height=\"14\"><br>
<br>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr align=\"center\" valign=\"top\">
<td>
<input type=\"hidden\" name=\"Name\" value=\"\'.$Name.\'\">
<input type=\"hidden\" name=\"Strasse\" value=\"\'.$Strasse.\'\">
<input type=\"hidden\" name=\"PLZ\" value=\"\'.$PLZ.\'\">
<input type=\"hidden\" name=\"Ort\" value=\"\'.$Ort.\'\">
<input type=\"hidden\" name=\"Country\" value=\"\'.$Country.\'\">
<input type=\"hidden\" name=\"Telefon\" value=\"\'.$Telefon.\'\">
<input type=\"hidden\" name=\"EMail\" value=\"\'.$EMail.\'\">
<input type=\"hidden\" name=\"PriceGroup\" value=\"\'.$PriceGroup.\'\">
<input type=\"hidden\" name=\"Reduction\" value=\"\'.$Reduction.\'\">
<input type=\"hidden\" name=\"Price\" value=\"\'.$Price.\'\">
<input type=\"hidden\" name=\"TotalPrice\" value=\"\'.$TotalPrice.\'\"> \' ;
/*
array_push($ticket,$Name,$Strasse,$PLZ,$Ort,$Country,$Telefon,$EMail);
$ticket=serialize($ticket);
$ticket=urlencode($ticket);
*/
print \'
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<input type=\"image\" src=\"img/knap_betal_off.gif\" border=\"0\"></td>
<td><img src=\"img/PixelTrans.gif\" width=\"5\" height=\"5\"></td>
<td>
<a href=\"java script:slet();\">
<img src=\"img/knap_slet_off.gif\" width=\"50\" height=\"13\" border=\"0\">
</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</HTML>
så det er altså \"cardOwner\" der er problemet...