window.onload=function(){
   if($("login_nm") && $("gobut")){
      $("gobut").onclick=function(){
         if((! $F("login_nm")) || ($F("login_nm").length < 6) ||
               $F("login_nm").match(/\d+/g) ){
            $("login_nm").value="";
            Effect.Shake('entry_box');
         } else {
            Svar xmlHttp= new Ajax.Request("/hacks/shake_resp",
            {method: "get",
               parameters: "login_nm="+$F("login_nm"),
               onComplete:function(request){
                  $("answer").innerHTML=request.responseText;
                  Effect.Appear("answer");
                  var vrl=window.setInterval(function(){
                     Effect.Fade("answer");
                     window.clearInterval(vrl);
                  },10*1000);
                  }});

         }
      }
   }
};
