function IsAlphaNum(i)
// return true if chr(i) is in ['0'..'9'] or ['A'..'Z'] or ['a'..'z']
{  return (((i>47) && (i<58)) || ((i>64) && (i<91)) || ((i>96) && (i<123))) };

function CountAlphaNums(s)
{ var result = 0;
  var len    = s.length;
  for (var i=0; i < len; i++) if (IsAlphaNum(s.charCodeAt(i))) result++;
  return result;
}

function submitForm(productID)
{ with (document.forms[0]) {
  var c = company.value;
  if (CountAlphaNums(c) < 6) {
    alert('The company name must contain at least six letters or digits.');
    company.focus();
	return false;
  } else { top.location.href = 'https://secure.shareit.com/shareit/checkout.html?productid=' + productID + '&COMPANY=' + c;
           return true;
}}}

with (document.forms[0]) { btSmall.disabled = false; btLarge.disabled = false }
/*
function SubmitForm()
{ with (document.forms[0]) {
  var s = company.value;
  if (CountAlphaNums(s) < 6) {
    alert('The company name must contain at least six letters or digits.');
    company.focus();
  } else {
    s = 'http://shareit1.element5.com/checkout.html?PRODUCT[212306]=1&COMPANY=' + s;
//    alert(s);
    top.document.location.href = s;
    return true;
  }
}}
*/