dir = 3
uplimit = -460
downlimit = 103
moveVal = 0
if (!apple){
Dspeed = -4
Uspeed = 4}
else{
Dspeed = -4
Uspeed = 4}

function MoveLayerU(){
	dir = 2
	if (document.all){
		curLoc = document.all['textField'].style.top
		if (!apple){
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
		}
	}
	else if (document.getElementById){
		curLoc = document.getElementById('textField').style.top
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
	}
	else if (document.layers)
	{
		curLoc = document.layers['textField'].top
	}
//	defaultStatus =  curLoc
	if (curLoc >= downlimit){
		moveVal = 1
	}
	else
	{
		moveVal = Uspeed
	}
}
function MoveLayerD(){
	//alert(downlimit);
	dir = 1
	if (document.all){
		curLoc = document.all['textField'].style.top
		if (!apple){
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
		}
	}
	else if (document.getElementById){
		curLoc = document.getElementById('textField').style.top
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
	}
	else if (document.layers)
	{
		curLoc = document.layers['textField'].top
	}
//	defaultStatus =  curLoc
	if (curLoc <= uplimit){
		moveVal = 0
	}
	else
	{
		moveVal = Dspeed
	}
}
function stopMove()
{moveVal = 0}

function makeMove()
{
	if (document.all)
	{
		curLoc = document.all['textField'].style.top
		if (!apple){
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
		}
		if ((curLoc <= uplimit && dir == 1) || (curLoc >= downlimit && dir == 2))
		{
			stopMove();
		}
		document.all['textField'].style.top=eval(curLoc) + eval(moveVal)
	}
	else if (document.getElementById)
	{
		curLoc = document.getElementById('textField').style.top
		curLoc = eval(curLoc.substring(0,(curLoc.length -2)))
		if ((curLoc <= uplimit && dir == 1) || (curLoc >= downlimit && dir == 2))
		{
			stopMove();
		}
		document.getElementById('textField').style.top=curLoc + moveVal
	}
	else if (document.layers)
	{
		curLoc = document.layers['textField'].top
		if ((curLoc <= uplimit && dir == 1) || (curLoc >= downlimit && dir == 2))
		{
			stopMove();
		}
		document.layers['textField'].top=eval(curLoc) + moveVal
	}
setTimeout('makeMove();',10)
}
