//---------------------------------------
// 1. Parses query string looking for "WSRet=n"
// 2. Sets javascript variables WSRetString  
//    & WSRet for use in other scripts.
//---------------------------------------
var WSRet = document.location.search.replace(/^.*WSRet=(\d+).*$/,"$1");
var WSRetString = "";
switch(WSRet)
{
  case '0':  /* Good */ break; 
  case '1':  /*WSRetString = "Please Log-In.";*/ break; 
  case '2':  WSRetString = "The User Name cannot be found."; break;
  case '3':  WSRetString = "The Group associated with the User Name cannot be found."; break;
  case '4':  WSRetString = "The Password is incorrect."; break;
  case '5':  WSRetString = "All of your concurrent user passwords are in use."; break;
  case '6':  WSRetString = "A WS System Error has occurred."; break;
  case '7':  WSRetString = "A License Agreement for the User Name is required."; break;
  case '8':  /*8 not defined*/ break;
  case '9':  WSRetString = "The Trial Period for the User Name has expired."; break;
  case '10': WSRetString = "The User Name has been placed on hold."; break;
  case '11': WSRetString = "The User Name is inactive."; break;
  case '12': WSRetString = "Access to this product/area is denied for the User Name."; break;
  case '13': WSRetString = "Your access has expired."; break;
}
/* return codes 
WSGood = 0; 
WSLogon = 1; 
WSBadUserName  = 2;
WSBadGroup     = 3;
WSBadPassword  = 4;
WSTooManyUsers = 5;
WSSystemError  = 6;
WSLicAgree     = 7;
WSExpiredTrial = 9;
WSOnHold      = 10;
WSInactive    = 11;
WSNotAuthorized = 12;
*/
