function LTrim(value) {
  var re = /\s*((\S+\s*)*)/;
  return value.replace(re, "$1");
}
function RTrim(value) {
  var re = /((\s*\S+)*)\s*/;
  return value.replace(re, "$1");
}
function trim(value) {
  return LTrim(RTrim(value));
}
function closeWnd() {
  opener.location.reload();
  window.close();
}
function validateText(theText) {
  var val = trim(theText);
  if (val == "")
    return(false);
  return (true);
}

