/*  Copyright © 2001, 2002 OGMA Consulting Corp. */

/*
 * sendSession(url, thruWorking, doAppend, frame)
 *  url     : what we're calling
 *  thruWorking   : 'yes' if want to show the "working" page first
 *  doAppend  : 'yes' if we're appending (the url has stuff in it)
 */
function sendSession(url, thruWorking, doAppend) {

  var sessionID    = getValueByName("sessionID");
  var content      = eval('parent._' + sessionID + 'content');
  if (content==null)
  {
        content=eval('document');
  }
  var urlString    = new String(url);
     
  if (thruWorking == 'yes') {
    if (doAppend == 'yes') {
      content.location = 'showWorking?sessionID=' + sessionID + '&redirect=' + url + '^||^sessionID=' + sessionID;
    } else {
      content.location = 'showWorking?sessionID=' + sessionID + '&redirect=' + url + '?sessionID=' + sessionID;
    }
  } else {
    if (doAppend == 'yes') {
      content.location = url + '&sessionID=' + sessionID;
    } else {
      content.location = url + '?sessionID=' + sessionID;
    }
  }
}
