function getField(fldName, strType) {
  var arrCheck = new Array;
  var blnFound = false;
  arrObjects = document.getElementsByTagName(strType.toUpperCase());

  for (i=0; i<arrObjects.length; i++) {
    if (arrObjects[i].id.split("_")[arrObjects[i].id.split("_").length - 1] == fldName) {
      blnFound = true;
      break;
    }
  }
	
  return arrObjects[i];
}

function getFlashURL() {
	alert(document.location.href.toString());
  return document.location.href.toString();
}

function TrainingCheckBox(training) {

    var CurCheckbox = document.getElementById('cb' + training)
    var Training = document.getElementById('div' + training)

    if (CurCheckbox.checked == true) {
        Training.style.display = "block"
    } else {
        Training.style.display = "none"
    }
}
