i write this code but iget error

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1. 0 Strict//EN"
"http://www. w3. org/TR/xhtml1/DTD/xhtml1-strict. dtd">
<html lang="EN" dir="ltr" xmlns="http://www. w3. org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>absLayout.html</title>
<link rel = "stylesheet"
type = "text/css"
href = "follow.css" />

<script>


document.onmousemove = mouseMove;
function mouseMove(ev){
ev = ev || window.event;
if(ev==ev){ctate="ev";}
if(ev==window.event){ctate="window.event";}
var mousePos = mouseCoords(ev);

}
x = ('ev').pageX;
y = ('ev').pageY;


function testr(){
xpostion=x;
ypostion=y;
all=document.getElementById("all");
all.style.left = xpostion + "px";
all.style.top = ypostion + "px";

}
document.onmousemove = testr;
</script>

</head>
<body>

<div id = "all" style = "position: absolute;
left: 100px;
top: 100px;">
<div id = "resource_menu">

</div>

<div id = "center_area">
<iframe src="FrameTester.html" frameborder="1" width="900" height="565" scrolling=no></iframe>
</div>


<div id = "bottom_content">
<div id = "character">
<img src=pics/diot-1.jpg width=200 height=200>
</div>

<div id = "actions_menu">

</div>
</div>
</div>

<script>

</script>

<input type="text"
id="outt">
</body>
</html>


but code doesn't work any one can help me?