Kurt Langer: Objekt erwartet

Beitrag lesen

Ich bin ein Javascript anfänger und hab ein Script gebaut, dass immer wieder die gleiche Meldung ausgibt: Code 0 Objekt erwartet.
es ist noch nicht ganz fertig aber ich poste mal den source:

---Begin of Source----
<html>
<head>
<title>
Translator
</title>
</head>
<style rel="css.css" type="text/css">
</style>
<script language="JavaScript">
<!--
function leet(){
alert('noch nicht verfügbar!')
}

function abc(){
var variable
var a
var b
var c
var d
var e
var f
var g
var h
var i
var j
var k
var l
var m
var n
var o
var p
var q
var r
var s
var t
var u
var v
var w
var x
var y
var z
var temp
variable=form.content.value
a=variable.search(\a.)
b=variable.search(\b.)
c=variable.search(\c.)
d=variable.search(\d.)
e=variable.search(\e.)
f=variable.search(\f.)
a=variable.search(\g.)
b=variable.search(\h.)
c=variable.search(\i.)
d=variable.search(\j.)
e=variable.search(\k.)
f=variable.search(\l.)
a=variable.search(\m.)
b=variable.search(\n.)
c=variable.search(\o.)
d=variable.search(\p.)
e=variable.search(\q.)
f=variable.search(\r.)
a=variable.search(\s.)
b=variable.search(\t.)
c=variable.search(\u.)
d=variable.search(\v.)
e=variable.search(\w.)
f=variable.search(\x.)
a=variable.search(\y.)
z=variable.search(\z.)
if(a!=-1){
temp=variable.replace(\a,"4")
}
if(b!=-1){
variable.replace(\b,"ß")
}
if(c!=-1){
variable.replace(\c,"(")
}
if(d!=-1){
variable.replace(\d,"[)")
}
if(e!=-1){
variable.replace(\e,"3")
}
if(f!=-1){
variable.replace(\f,"|=")
}
if(g!=-1){
variable.replace(\g,"6")
}
if(h!=-1){
variable.replace(\h,"|-|")
}
if(i!=-1){
variable.replace(\i,"1")
}
if(j!=-1){
variable.replace(\j,"]")
}
if(k!=-1){
variable.replace(\k,"|<")
}
if(l!=-1){
variable.replace(\l,"1")
}
if(m!=-1){
variable.replace(\m,"|^|")
}
if(n!=-1){
variable.replace(\n,"^|")
}
if(o!=-1){
variable.replace(\o,"0")
}
if(p!=-1){
variable.replace(\p,"|°")
}
if(q!=-1){
variable.replace(\q,"°|")
}
if(r!=-1){
variable.replace(\r,"|2")
}
if(s!=-1){
variable.replace(\s,"$")
}
if(t!=-1){
variable.replace(\t,"7")
}
if(u!=-1){
variable.replace(\u,"|_|")
}
if(v!=-1){
variable.replace(\v,"/")
}
if(w!=-1){
variable.replace(\w,"^/")
}
if(x!=-1){
variable.replace(\x,"X")
}
if(y!=-1){
variable.replace(\y,"Y")
}
if(z!=-1){
variable.replace(\z,"Z")
}
}
//-->
</script>
</head>
<body>
<form name="form">
<center><textarea name="content" id="textfeld">
</textarea><br>
<input type="button" id="button" value="|_337  -> Abc" onClick="leet()">
<input type="button" id="button" value="Abc  -> |_337" onClick="abc()"></center>
</form></td></tr></table>
</center>
</body>
</html>