function bzmainexec_perform_fromform(actionperform, fromform, returnexec, returnf, response_to) {
  var httprequest = createRequestObject();
    if ( !httprequest ) return false;

  httprequest.open('post', 'bz_mainexec.php');
  httprequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  var	to = 'bz_mainexeccontent'; 
  if (	response_to ) { to = response_to; }
  setEventListener(httprequest, function(event) {eventListener_response_to(to, event)});  
  var parstr = "";
  form =	document.getElementById(fromform);
  if ( form ) { parstr = formelems2parstr_att(form, 'name'); }
  if ( returnexec ) { parstr += '&re='+returnexec; }
  if ( returnf ) { parstr += '&rf='+returnf; }
  httprequest.send('exec='+actionperform+parstr);
  if ( document.getElementById && document.getElementById('bz_requeststate') )
    document.getElementById('bz_requeststate').innerHTML = loading_msg;
}
