function makeChaseWin() {
	chasewin = window.open("","chasewin",
	            "width=180,height=40");
        chasewin.location.href="chaser/chaseme.html";
	if (chasewin.opener == null)
               chasewin.opener = window;
        chasewin.opener.name = "opener";
}

//Returns a random number between 0 and 1
function getRandom() {
   return Math.random()
}
function mover() {

	 //dx = Math.floor((getRandom()-0.5)*200); 
	 dx = Math.floor((getRandom()*50)+50);
	 if (Math.floor(getRandom()*2)==0)
              dx *= -1;
        
         if (x+dx > minx || x+dx < maxx ) 
	       dx *= -1;               
	 //dy = Math.floor((getRandom()-0.5)*200);
	 dy = Math.floor((getRandom()*50)+50);
	 if (Math.floor(getRandom()*2)==0)
              dy *= -1;
         if (y+dy > miny && y+dy < maxy);
               dy *= -1;
	window.moveBy(dx,dy);

	x = x+dx;
	y = y+dy;

}

