/*
 * jump2URI
 *
 * Facilitate jumping to the given web page
 *
 * Chris Helmers
 * 23.Feb.2005
 */
function jump2URI(page)
{
    window.location=page;
}

/*
 * TextArea Max Script
 *
 * Found at: http://javascript.about.com/library/scripts/blcounttext.htm
 * Compatibility: IE 3.0+, NS 3.0+, Mac/Win
 *
 * The TextArea Max script provides handlers that you can attach to a
 * TextArea form element. The handler functions limit the number of
 * characters a user can type and display the number of characters
 * remaining in a counter field.
 *
 * Note: In NetScape 4.x, if your form is embedded in a table (like in
 * this example page), the form handlers may not be called. This is a
 * general problem with Netscape 4.x tables and forms.
 */
function TrackCount(fieldObj,countFieldName,maxChars)
{
  var countField = eval("fieldObj.form."+countFieldName);
  var diff = maxChars - fieldObj.value.length;

  // Need to check & enforce limit here also in case user pastes data
  if (diff < 0)
  {
    fieldObj.value = fieldObj.value.substring(0,maxChars);
    diff = maxChars - fieldObj.value.length;
  }
  countField.value = diff;
}

function LimitText(fieldObj,maxChars)
{
  var result = true;
  if (fieldObj.value.length >= maxChars)
    result = false;
  
  if (window.event)
    window.event.returnValue = result;
  return result;
}
