function moveNext(that, e){
   var idx = (that.title * 1);
   var myKey = e.keyCode;
   var error = false;

   if(that.value.length > 1) that.value = that.value.substr(0,1);

   for(i=1; i<=5; i++) if(!$('cr'+ i).value){
      error = true;
      break;
   }

   if(!error){
      Effect.Appear($('confB'));
      new Effect.Highlight($('cr_cnt'), {startcolor:'#ffff99', endcolor:'#E4EFE0'});
   }
   else $('confB').style.display = 'none'

   try {
      switch(myKey){
         case 46: break;
         case 37: case 8: if($('cr'+ (idx-1))) $('cr'+ (idx-1)).focus(); break;
         case 13: if($('confB').style.display == '') showResult(); break;
         default: if($('cr'+ (idx+1))) $('cr'+ (idx+1)).focus(); break;
      }
   }
   catch(er){}
}

function showResult(){
   var error = false;
   for(i=1; i<=5; i++) if(!$('cr'+ i).value){
      error = true;
      break;
   }
   if(!error) $('form1').submit();
}
