Det virker ikke!!!!!!!
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Oprettelse af liste</title>
<SCRIPT Laguage="JavaScript">
function GG(document.forms["side"].Hos.value) {
val = document.forms["side"].Hos.value.toLowerCase();
temp = val.split(".");
bla = (val.indexOf("
http://") == 0) ? true : false;
if ((bla || temp[0] == "www") && (temp[temp.length - 1].length == 2 || temp[temp.length - 1].length == 3))
document.forms["side"].Hos.value = "<a href=" + ((bla) ? "" : "
http://") + " + document.forms["side"].Hos.value + ">" + document.forms["side"].Hos.value + "</a>";
}
</SCRIPT>
</head>
<body bgcolor="#45566C">
<form name="side" action="f3.php" method="post" onSubmit="GG(this.Hos); return true;">
<div align="center">
<center>
<? echo "Hos: $Hos"; ?>
<input type="text" name="Hos" size="23" maxlength="40">
<input type="submit" value="Godkend" name="B6">
<? echo "Hos: $Hos"; ?>
</SCRIPT>
</form>
</body>
</html>