var csc = document.getElementById("csc");
   if(csc != null) {
      csc.onblur=function(){
         var typ = document.getElementById("cctype");
         if(typ != null){
            if(csc.value.indexOf("Choose") == -1 && 
               ! checkCSC(typ.value, csc.value.
               replace(/\s/,""))) {
               eMsg("Prosz poda poprawny kod bezpieczestwa karty.
               ","red");
               csc.focus();
               document.getElementById("submit").disabled=true;
            } else {
               clearMsg();
               document.getElementById("submit").disabled=false;

            }
         }
      };
   }
