text: /**
   * Openbizx Report Form class
   */
  Openbizx.PackageForm = Class.create(Openbizx.Form,
  {
      install: function(paramArray, options)
      {
      	this.CallFunction("install", paramArray, options);
          
          this.CallFunction("getProgress", paramArray, options);
      },
      updateFields: function(fieldValues)
      {
          fieldValues.each(function(tgt_ctnt) {
              // special handling progress_bar update
              if (tgt_ctnt.target == 'fld_status') {
                  inst_info = tgt_ctnt.content.split('|', 4);
                  state = inst_info[0];                 
                  log = inst_info[1]; 
                  $(tgt_ctnt.target).innerHTML = log;
                  if (state == 'Install' ||
                  	state == 'Download' ||
                  	state == 'Wait' 
                  	) {
                      setTimeout(function() {
                          Openbizx.CallFunction("package.local.form.PackageInstallerForm.getProgress()",null);
                      }, 2000);
                  }
              }
              else if (tgt_ctnt.target == 'fld_total_progress' || tgt_ctnt.target == 'fld_download_progress') {
                  // use jquery selector to set the progress
                  var barobj = $j('#'+tgt_ctnt.target).find('.bar_bg')[0];
                  var bardata = $j(barobj).find('.bar_data')[0];
                  var bardatabg = $j(barobj).find('.bar_data_bg')[0];
                  var barval = $j('#'+tgt_ctnt.target).find('.value')[0];
                  barval.innerHTML = tgt_ctnt.content + "%";
                  var barobj_width = $j(barobj).css("width");
                  var progress_width = Math.round(parseInt(tgt_ctnt.content)/100*parseInt(barobj_width));
                  $j(bardata).css("width", progress_width+'px');
                  $j(bardatabg).css("width", progress_width+'px');
              }
              else {
                  $(tgt_ctnt.target).value = tgt_ctnt.content;
              }
          });
      }
  });
  /*
  Openbizx.ProgressBar = 
  {
      set: function(divid, progress)
      {
          // set progress value and text
          $(divid).value = progress;
          // draw the bar
          
          // wait 1 second to check again
          setTimeout(function() {
                  alert('again');
                  Openbizx.CallFunction("package.local.form.PackageLocalDetailForm.getProgress()",null);
              }, 1000);
      },
      get: function(divid)
      {
          // get progress value
          return $(divid).value;
      }
  }
  */
  
  /*
  function periodicXHReqCheck() {
      xhReq = Ajax.getTransport();
      alert('check xhReq '+xhReq.responseText);
      $("progressDiv").innerHTML += xhReq.responseText;
      $("progressDiv").show();
  }*/