/*----------------------------------------------------------------------

  File:         common.js

  Description:  Client Specific WEB Server common repository.  Use to 
                store common functions variables across all client 
                sites.  That is, LIVE, TEST and TRAIN.

    Version  Date       Author   Notes
    -------  -------    -------- ---------------------------------------
      1.00   01Feb02	RDA	 ECAT363: Created

NOTES:
-----------------------------------------------------------------------*/

function USE_GLOBAL(inform,globs) {
    if (inform=="") inform="logform"
    globvars=new String(globs)
    globs=globvars.split(",")
    for (i=0;i<globs.length;i++){
       if (globs[i]!="") {
         if (eval("document."+inform+"."+globs[i])) {
           if (eval("c"+globs[i])) {
             newval=eval("c"+globs[i]);
             hidvar=eval("'"+newval+"'")
             eval("document."+inform+"."+globs[i]+".value='"+hidvar+"'")
           }  
         }  
       }
    }   
}
function GET_GLOBAL(globvar) {
  if (eval("c"+globvar)) {
    newval=eval("c"+globvar);
    return newval
  }  
  else {
    return ""
  }  
}

