function UrlLookup(callerID, form, urlTail){
  /************************************************ URL Table Variables ********************************************************/

//------------------------------------------------------------------------------------------------------------------
// This javascript file was created so our html pages did not have to have hard coded url paths and domain names
// by doing so we can specify them here in our javascript file and port the application to any directory structure
// follow the steps below to change from production to development.
//------------------------------------------------------------------------------------------------------------------
//
// READ BELOW!
//
//---------------------------------------------------------------------------------------------------------------
// To switch this to devlop on your local pc read the steps below and find the corresponding numbers in the code
//---------------------------------------------------------------------------------------------------------------
// 1.
// Make sure the two https and httpPrefix variables point to your local pc
// 2.
// un-comment the finalLink = httpPrefix + urlTail. This will make sure the http link prefix is used
//---------------------------------------------------------------------------------------------------------------



//---------------------------------------------------------------------  
// 1.
// Change the below httpsPrefix and httpPrefix to your local pc name
//--------------------------------------------------------------------- 
  //var httpsPrefix = "https://localhost:1443";
  //var httpPrefix  = "http://localhost:1080";
  var httpsPrefix = "https://www.reliable.com:443";
  var httpPrefix  = "http://www.reliable.com:80";

  var urlTable =
  [
   ["https",  "/NASApp/Reliable/CustomerRegistration",      "NA",null ],  //0
   ["https" , "/NASApp/Reliable/CallRegistration",          "NA",null ],  //1
   ["https",  "/NASApp/Reliable/Authenticate",              "NA",null ],  //2
   ["https",  "/NASApp/Reliable/PasswordCheck",             "NA",null ],  //3
   ["http",   "/reliable/main2.html",                                            "NA",null ],  //4
   ["http",   "/NASApp/Reliable/Header",                    "1",null  ],  //5
   ["http",   "/reliable/tabs2.html",                                            "2",null  ],  //6
   ["http",   "/NASApp/Reliable/Body",                      "3",null  ],  //7
   ["http",   "NA",                                                              "NA","ftabs" ],   //8
   ["https",  "NA",                                                              "NA","parent"],   //9
   ["http",  "NA",                                                               "NA","parent"],   //10
   ["https", "NA",                                                               "NA","fbody"] //11
 ];

  sslFlag  = 0;
  url      = 1;
  objIndex = 2;
  tabloc   = 3;
  /***********************************************************************************************************************************/

  var finalLink;

  if(urlTable[callerID][sslFlag] == "https"){ 
      finalLink =  httpsPrefix + urlTail; 
  }  /*finalLink =  httpsPrefix + urlTable[callerID][url];*/
  else{ 
      finalLink =  httpPrefix  + urlTail; 
  }                                        /*finalLink =  httpPrefix  + urlTable[callerID][url];*/

//------------------------------------------------------------------
// 2.
// un-comment the below line for the link to point to your local pc
//------------------------------------------------------------------
//  finalLink = httpPrefix + urlTail;

  if(form != null){
    form.action = finalLink;
    form.submit();
  }
  else if(urlTable[callerID][objIndex] != "NA"){
    frames[urlTable[callerID][objIndex]].location=finalLink;
  }
  else { //Currently, this section is only hit from the web site section "Communication Center" and login.html.
    if(urlTable[callerID][tabloc] == null){
      location.href=finalLink;
    }else if(urlTable[callerID][tabloc] == "ftabs"){
      parent.ftabs.location.href = finalLink;
    }else if(urlTable[callerID][tabloc] == "parent"){
      parent.location.href = finalLink;
    }else if(urlTable[callerID][tabloc] == "fbody"){
      parent.fbody.location.href = finalLink;
    }

  }
}

