function openCentWin(theHeight, theWidth, theLocation, theWindowName, addlWinFeatures){
    var winX = (screen.availWidth - theWidth)/2;
    var winY = (screen.availHeight - theHeight)/2 - (screen.availHeight - theHeight)/5;
    var winFeatures = "WIDTH=" + theWidth + ",HEIGHT=" + theHeight + ",LEFT=" + winX + ",TOP=" + winY + ",screenX=" + winX + ",screenY=" + winY + ',' + addlWinFeatures;
    
    if (theLocation.indexOf('?')!=-1) {
	    var newWin = window.open (theLocation + '&rand=' + Math.random(), theWindowName, winFeatures);
	} else {
	    var newWin = window.open (theLocation + '?rand=' + Math.random(), theWindowName, winFeatures);
	}
    newWin.focus();
}

function setSelectListValue(objRef, theValue ){
	if (!objRef) {
		return;
	}

	if ( objRef.options ) {
		for ( i=0; i<objRef.options.length; i++ ) {
			if ( objRef.options[i].value==theValue ) {
				objRef.options[i].selected=true;
				return;
			}
		}
	}
}


  function dataUpdatesDownloadFormValidator(theForm)
  {
    // Check to see that an Access Passcode is entered.
    if (theForm.bliPassword.value == "")
    {
      alert("A BLI Download PassCode is Required.");
      theForm.bliPassword.focus();
      return (false);
    }
  
    if (theForm.bliPassword.value.length < 3)
    {
      alert("Please enter a valid BLI Download Pass Code.");
      theForm.bliPassword.focus();
      return (false);
    }

    if (theForm.bliPassword.value.length > 6)
    {
      alert("Please enter a valid BLI Download Pass Code of up to 6 characters.");
      theForm.bliPassword.focus();
      return (false);
    }

    // If the YES box is checked let's verify that the other two fields contain data...
    if (theForm.R1[0].checked)
    {
      // Check to see if there is a name entered...
      if (theForm.noticeName.value == "")
      {
        alert("A name is required in the \"First and Last Name\" field.");
        theForm.noticeName.focus();
        return (false);
      }

      if (theForm.noticeName.value.length < 3)
      {
        alert("Please enter your full name in the \"First and Last Name\" field.");
        theForm.noticeName.focus();
        return (false);
      }

      if (theForm.noticeName.value.length > 35)
      {
        alert("Please enter at most 35 characters in the \"First and Last Name\" field.");
        theForm.noticeName.focus();
        return (false);
      }

      // Now check for an email address...
      if (theForm.emailAddr.value == "")
      {
        alert("An Email Address is required in the \"Email Address\" field.");
        theForm.emailAddr.focus();
        return (false);
      }

      if (theForm.emailAddr.value.length < 8)
      {
        alert("Please enter a valid email address in the \"Email Address\" field.");
        theForm.emailAddr.focus();
        return (false);
      }

      if (theForm.emailAddr.value.length > 65)
      {
        alert("Please enter at most 65 characters in the \"Email Address\" field.");
        theForm.emailAddr.focus();
        return (false);
      }

      return (true);
    }
    return (true);
  }

