window.status="CBC21.com - Continental Business Connection"
function Usuario_Validator(theForm)
{
    if (theForm.Usuario.value.length < 5)
  {
    theForm.Usuario.focus();
    return (false);
  }
  
   if (theForm.Password.value.length < 5)
  {
    theForm.Password.focus();
    return (false);
  }
    return (true);
}

function ToSearch_Validator(theForm)
{
    if (theForm.ToSearch.value.length < 5)
  {
    theForm.ToSearch.focus();
    return (false);
  }
  else
  {
  var posx = (screen.width-380)/2;
  var posy = (screen.height-240)/2;
  window.open('http://www.comflyer.com/ComFlyerSendEmail.asp?ToSearch='+document.form3.ToSearch.value+'&Language='+document.form3.Language.value,'eMail','scrollbars=no,menubar=no,height=240,width=380,left='+posx+',top='+posy+',resizable=no,toolbar=no,location=no,status=no');

  return (false);
  }
}


function Certificate_Validator(theForm)
{
    if (theForm.C.value.length < 14)
  {
    theForm.C.focus();
    return (false);
  }
  theForm.C.value = theForm.C.value.toUpperCase()
  var checkOK = "0123456789-ABCDEF";
  var checkStr = theForm.C.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    theForm.C.focus();
    return (false);
  }
  
  return (true);
}
