function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,scrollbars,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}

    // find all the forms with textareas we want
    // to allow to collapse
    function setupTextareas() {
      var pageForms = document.getElementsByTagName("form");

      for( var j=0; j<pageForms.length; j++) {
        var formArea = pageForms[j];

        if( formArea.id.indexOf("entryform") > -1 ) {
          var txtAreas = formArea.getElementsByTagName("textarea");
          for( var i=0; i<txtAreas.length; i++ ) {
            var thisTxtArea = txtAreas[i];

            if( thisTxtArea.addEventListener ) {
              thisTxtArea.addEventListener("focus", bigSmlTextarea, false);
              thisTxtArea.addEventListener("blur", bigSmlTextarea, false);
            } else { // IE
              thisTxtArea.attachEvent("onfocus", bigSmlTextarea);
              thisTxtArea.attachEvent("onblur", bigSmlTextarea);
            }
          }
        }
      }
    }

    // collapse or expand a textarea
    function bigSmlTextarea(e)
    {
      var node = ( e.target ? e.target : e.srcElement );

      if( node.className.indexOf("expanded") == -1 )
        node.className += " expanded";
      else
        node.className = node.className.replace(/expanded/gi, "");
      }

    // prep the the desired textareas to
    // collapse and expand
    window.onload = setupTextareas;

