prodon = new Image();
prodon.src = "../image/product_on.jpg";
prodoff = new Image();
prodoff.src = "../image/product_off.jpg";
downon = new Image();
downon.src = "../image/download_on.jpg";
downoff = new Image();
downoff.src = "../image/download_off.jpg";
supporton = new Image();
supporton.src = "../image/support_on.jpg";
supportoff = new Image();
supportoff.src = "../image/support_off.jpg";
communityon = new Image();
communityon.src = "../image/community_on.jpg";
communityoff = new Image();
communityoff.src = "../image/community_off.jpg";

var aState, nStates, strLastCountry, strLastState;
var version = "2.3.5.2";

<!-- Begin
function SetFormFocus(FormNo, ElementNo) {
  if (document.forms.length > 0) {
    document.forms[FormNo].elements[ElementNo].focus();
  }
}
function DisplaySLA() {
  ver = parseInt(navigator.appVersion.substring(0,1));
  newWin = window.open("license.html","SoftwareLicenseAgreement","width=400,height=360,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,");
  if ((!((navigator.appname == "Netscape")&&(ver==2))) && (!((navigator.appname == "Microsoft Internet Explorer")&&(ver<4)))){
    setTimeout("if (newWin) newWin.focus();",1000);
  }
}

function OnInitialize() {
  if (!document.DataForm) return;

  var a, i, nLength, strCountryValue, strStateValue;
  var focusName = document.DataForm.Name;
  strLastState = document.DataForm.laststate.value;
  strLastCountry = document.DataForm.Country.options[document.DataForm.Country.selectedIndex].value;
  aState = new Array(nStates = document.DataForm.State.options.length);
  for (i = 0; i < nStates; i++) {
    aState[i] = document.DataForm.State.options[i].value + "," + document.DataForm.State.options[i].text
  }

  ResetStates(document.DataForm,strLastCountry, strLastState);
  focusName.focus();
}

function OnChangeCountry(frm) {
  var strCountry;
  strCountry = frm.Country.options[frm.Country.selectedIndex].value;
  if (strCountry == strLastCountry) {
    return;
  }
    ResetStates(frm,strCountry, strLastState);
    strLastCountry = strCountry;
}

function ResetStates(frm,strCountry, strState) {
  var a, i, n;
  for (i = n = 1; i < nStates; i++) {
    a = aState[i].split(",");
    if (strCountry == a[0]) {
      if (n < frm.State.options.length) {
        frm.State.options[n].text = a[2];
        frm.State.options[n].value = a[0] + "," + a[1];
      }
      else {
        frm.State.options[n] = new Option(a[2], a[0] + "," + a[1]);
      }
      if (frm.State.options[n].value == strState) {
        frm.State.options[n].selected = true;
      }
      n++;
    }
  }
  while (n < frm.State.options.length) {
    frm.State.options[n] = null;
  }
  if (frm.State.options.length == 1) {
    frm.State.options[0].text = "None";
    frm.State.options[0].value = "NA,NA";
  }
  else {
    frm.State.options[0].text = "Select State or Province";
    frm.State.options[0].value = "";
  }
}

function OnChangeState(frm) {
  strLastState = frm.State.options[frm.State.selectedIndex].value;
}
// End -->
