<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<script type="text/javascript">
es=['','','"','"','[',']','',''];
function buildstr(f){
w=f.str.value.split(' ');
tn=document.getElementById("test");
for(i=0,i2=tn.childNodes.length;i<i2;tn.removeChild(tn.firstChild),i++);
tmpn=document.createElement("div");
tmpn2=document.createTextNode(w[0].substring(0,1).toUpperCase()+w[0].substring(1)+" "+w[1].substring(0,1).toUpperCase()+w[1].substring(1));
tmpn.appendChild(tmpn2);
tn.appendChild(tmpn);
for(i=0;i<es.length;i+=2){
x=(i<6)?" ":"";
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+"a"+w[0].substring(1)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+"d"+w[0].substring(1)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,1)+"o"+w[0].substring(2)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,1)+w[0].substring(2)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,1)+w[0].substring(2,3)+w[0].substring(1,2)+w[0].substring(3)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,2)+"b"+w[0].substring(3)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,2)+"b"+w[0].substring(3)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,2)+w[0].substring(3)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,4)+w[0].substring(5)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,5)+w[0].substring(6)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,w[0].length-1)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(1)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,2)+"d"+w[1].substring(3)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,3)+"o"+w[1].substring(4)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,3)+w[1].substring(4)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,4)+w[1].substring(5)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,w[1].length-1)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,w[1].length-1)+"a"+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,w[1].length-1)+"d"+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,5)+w[1].substring(6)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,2)+w[1].substring(3)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0]+x+w[1].substring(0,1)+w[1].substring(2)+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,6)+w[0].substring(7)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(0,3)+w[0].substring(4)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(1)+x+w[1]+es[i+1];
tn.appendChild(tmp);
tmp=tmpn.cloneNode(true);
tmp.firstChild.nodeValue=es[i]+w[0].substring(1,2)+w[0].substring(0,1)+w[0].substring(2)+x+w[1]+es[i+1];
tn.appendChild(tmp);
}
}
</script>
</head><body>
<form onsubmit="buildstr(this);return false;">
<input type="text" value="superman returns" name="str">
<input type="submit" value="beregn">
</form>
<div id="test">Javascript kræves</div>
</body></html>