//This function disables the use of letters in field

function validate(evt) {
  var theEvent = evt || window.event;
  var key = theEvent.keyCode || theEvent.which;
  key = String.fromCharCode( key );
  var regex = /[0-9]|\./;
  if( !regex.test(key) ) {
    theEvent.returnValue = false;
    if(theEvent.preventDefault) theEvent.preventDefault();
    }
}




function performCode() {
    var codeTerm = encodeURIComponent(document.getElementById('codeField').value);
    window.open('https://www.ntradmin.com/main2/ntradmin.web.services/remotecontrol/downloadclientexe/?code=' + codeTerm +"&lang=FR", 'new_window_1');
}
