//<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
//<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />


function formaz(x)
{
  xx="";
  for(i = x.value.length; i>=0 ; i--)
   {
    if (((i)==3) || ((i)==6) || ((i)==9))
     xx=xx+" ";
    xx=xx+x.value.charAt(x.value.length-i);
   }
 x.value=xx;
}

function unformaz(x)
{
  xx="";
  for(i=0;  i<x.value.length; i++)
   {
    if (x.value.charAt(i)!=" ")
     xx=xx+x.value.charAt(i);
   }
 x.value=xx;
}

function kc(myfield,e)
{
  var keycode;
  if (window.event) keycode = window.event.keyCode;
  else if (e) keycode = e.which;
  else return true;
  if (((keycode>47) && (keycode<58) )  || (keycode==8)  || (keycode==9)  || (keycode==13)  || (keycode==127)) { return true; }
  else return false;
}