//
// Copyright (cİ UNext.com LLC (2002).
// This software is the confidential and proprietary information of
// UNext.com LLC. Any use of this software is subject to and limited by the
// terms of the License Agreement among Thomson Learning Inc.,  UNext Inc.
// and Cardean University LLC, dated March 1, 2002, as amended from time to
// time.
//
// for retrofitting with old DCR model
function getParams(selfcall)
{
     GetParam('lo_lo_0','answers',0);
}

function GetParam(obj,param,temp)
  {
      var o = document[obj];

      if (o.lo_type == 'js') 
      {
         return document[obj].params[param];
      }  
     else if (o.lo_type == 'dcr')
     {
         if (temp == 0) 
         {
             setTimeout("GetParam('" + obj + "','" + param + "',1);",300);
         }
         else 
          {
              theArgs = o.params[param];
              document[o.lo_moviename].EvalScript(theArgs);
          }
     }  
  }

function DoneWithObject(obj)
  {
      document[obj].Done();
  }

function SetReturnValue(obj,field,value)
  {
      document[obj].return_values[field] = value;
}

function LOGetParam(field)
  {
	return this.params[field];
  }

function LOSetReturnValue(field,value)
  {
      this.return_values[field] = value;
  }

function LOGetReturnValue(field)
  {
      return this.return_values[field];
  }

function LODone(){
    // Loop through all return variables
    // then submit the form
    for (var f in this.return_values)
    {
	document[this.form_name].lo_extras_return.value = document[this.form_name].lo_extras_return.value + f +'=' + this.return_values[f] + '|||';
    }
    
    document[this.form_name].submit();
}
