pos = 2;
TO = null;
function shake_funct2(object,speed)
{ 
  obj = eval(object)
  txt = obj.value;
  if (pos == 2)
  {
   txt = txt + "   ";
   pos = -2;
  }
  else
  {
   txt = "   " + txt;
   pos = 2;
  }  
  obj.value = txt;
  obj.style.top = parseInt(obj.style.top) + pos;
  obj = object;
  sp = speed;
  TO = setTimeout("shake_funct2(obj,sp)",speed);
  setTimeout("end_shake_funct2(obj)",1000);
}


function end_shake_funct2(object)
{
  clearTimeout(TO);
  obj = eval(object);
  txt = obj.value;
  obj.value = txt;
  //alert(pos);
  if (pos == -2)
  {
   obj.style.top = parseInt(obj.style.top) + 2;
  }
  pos = 2;
}