//sample
var LIST_OF_NAMES=300;
var WELCOME_TO_HELP= 400;
var LOGGING_IN = 501;
var SELECTING_A_FUNCTION = 502;
var LOGGING_OUT = 503;
var DRIVING_FACTORS = 504;
var WHAT_ARE_DRIVING_FACTORS = 505;
var MONTHLY_PD_NA = 600;
var CREDIT_QUALITY_NA = 603;
var PUBLIC_DATA_NA = 604;
var PORTFOLIO_NA = 605;
var OPEN_PORTFOLIO_NA = 606;
var DELETE_FROM_PORTFOLIO = 607;
var MONTHLY_PD_WE = 700;
var CREDIT_QUALITY_WE = 701;
var PUBLIC_DATA_WE = 702;


var strHelpOptions = "location=no";
strHelpOptions += ",toolbar=yes";
strHelpOptions += ",menubar=no";
strHelpOptions += ",status=no";
strHelpOptions += ",scrollbars=yes";
strHelpOptions += ",resizable=yes";
strHelpOptions += ",top=0";
strHelpOptions += ",left=0";
strHelpOptions += ",width=800";
strHelpOptions += ",height=500";

function ShowHelp(nPageIndex)
{
   var strUrl = "/us/help/riskcalc.asp?url=";
   switch (nPageIndex)
   {
    case parseInt(WELCOME_TO_HELP):
    {
       strUrl += "Welcome_to_help.htm"
       break;
    }
  case 300:
    {
       strUrl += "Searching_by_company_name.htm"
       break;
    }   
case 501:
    {
       strUrl += "logging_in_to_.htm"
       break;
    }
    case 502:
    {
       strUrl += "Selecting_a_function.htm"
       break;
    }
    case 503:
    {
       strUrl += "Logging_out.htm"
       break;
    }
    case 504:
    {
       strUrl += "Driving_factors_help.htm"
       break;
    }
    case 505:
    {
       strUrl += "What_are_driving_factors_.htm"
       break;
    }
    case 600:
    {
       strUrl += "Monthly_PD_History.htm"
       break;
    }
    case 601:
    {
       strUrl += "Big_movers.htm"
       break;
    }
    case 602:
    {
       strUrl += "Big_Movers_PDs_and_ratings.htm"
       break;
    }
    case 603:
    {
       strUrl += "North_American_Credit_Quality_Index.htm"
       break;
    }
    case 604:
    {
       strUrl += "North_American_public_data_set.htm"
       break;
    }
    case 605:
    {
       strUrl += "Creating_a_portfolio.htm"
       break;
    }
    case 606:
    {
       strUrl += "Opening_a_portfolio.htm"
       break;
    }
    case  607:
    {
       strUrl += "Removing_companies_from_a_portfolio.htm"
       break;
    }
    case 700:
    {
       strUrl += "Western_Europe_Monthly_PD_and_ratings.htm"
       break;
    }
    case 701:
    {
       strUrl += "Western_European_credit_quality_index.htm"
       break;
    }
    case 702:
    {
       strUrl += "Western_European_public_data_set.htm"
       break;
    }
    case 800:
    {
       strUrl += "PD_calculation_for_private_companies.htm"
       break;
    }
    case 801:
    {
       strUrl += "Private_North_American_companies_field_definitions.htm"
       break;
    }
    case 802:
    {
       strUrl += "PD_Batch_Calculation.htm"
       break;
    }
    case 850:
    {
       strUrl += "Batch_processing_.htm"
       break;
    }
    case 900:
    {
       strUrl += "PD_for_private_companies_-_Australia.htm"
       break;
    }
    case 901:
    {
       strUrl += "PD_Batch_Calculation_-_Australia.htm"
       break;
    }
    case 1010:
    {
       strUrl += "PD_for_private_companies_-_Germany_(simple_UKV).htm"
       break;
    }
    case 1011:
    {
       strUrl += "PD_for_private_companies_-_Germany_(complex_UKV).htm"
       break;
    }
    case 1012:
    {
       strUrl += "PD_for_private_companies_-_Germany_(Simple_GKV).htm"
       break;
    }
    case 1013:
    {
       strUrl += "PD_for_private_companies_-_Germany_(complex_GKV).htm"
       break;
    }
    case 1002:
    {
       strUrl += "PD_Batch_Calculation_-_Germany.htm"
       break;
    }
    case 1003:
    {
       strUrl += "EDF_Batch_Calculation_-_Germany_Extended.htm"
       break;
    }
    case 1101:
    {
       strUrl += "Comparative_Index.htm"
       break;
    }
    case 1102:
    {
       strUrl += "Comparative_Index_trend.htm"
       break;
    }
    case 1103:
    {
       strUrl += "Selecting_the_Comparative_Index.htm"
       break;
    }
    case 1500: 
    {
       strUrl += "PD_for_private_companies_-_Spain.htm"
       break;
    }
    case 1501: 
    {
       strUrl += "PD_Batch_Calculation_-_Spain.htm"
       break;
                 }
    case 1600: 
    {
       strUrl += "PD_for_private_companies_-_Mexico.htm"
       break;
    }
    case 1601: 
    {
       strUrl += "PD_Batch_Calculation_-_Mexico.htm"
       break;
    }
    case 1700: 
    {
       strUrl += "PD_for_private_companies_-_France.htm"
       break;
    }
    case 1701: 
    {
       strUrl += "PD_Batch_Calculation_-_France.htm"
       break;
    }
    case 1800: 
    {
       strUrl += "PD_for_private_companies_-_Japan.htm"
       break;
    }
    case 1801: 
    {
       strUrl += "PD_Batch_Calculation_-_Japan.htm"
       break;
    }
              case 1900: 
	  {
	     strUrl += "PD_for_private_companies_-_UK.htm"
	     break;
	  }
               case 1901: 
	  {
	     strUrl += "PD_Batch_Calculation_-_UK.htm"
	     break;
	  }
               case 2000: 
	  {
	     strUrl += "PD_for_private_companies_-_US_Banks.htm"
	     break;
	  }
               case 2001: 
	  {
	     strUrl += "PD_Batch_Calculation_-_US_Banks.htm"
	     break;
                   }
                case 3000: 
	  {
	     strUrl += "PD_for_private_companies_-_Belgium.htm"
	     break;
	  }
               case 3001: 
	  {
	     strUrl += "PD_Batch_Calculation_-_Belgium.htm"
	     break;
	  }
              case 4000: 
	  {
	     strUrl += "PD_for_private_companies_-_Portugal.htm"
	     break;
	  }
               case 4001: 
	  {
	     strUrl += "PD_Batch_Calculation_-_Portugal.htm"
	     break;
	  }
               case 5000: 
	  {
	     strUrl += "PD_for_private_companies_-_Australia_V1.5.htm"
	     break;
	  }
               case 5001: 
	  {
	     strUrl += "PD_Batch_Calculation_-_Australia_V1.5.htm"
	     break;
	  }
               case 6000: 
	  {
	     strUrl += "PD_for_private_companies_-_Netherlands.htm"
	     break;
	  }
              case 6001: 
	  {
	     strUrl += "PD_Batch_Calculation_-_Netherlands.htm"
	     break;
	  }
              case 8000:
          {
	     strUrl += "PD_for_private_companies_-_Italy.htm"
	     break;
	  }
              case 8001:
          {
	     strUrl += "PD_Batch_Calculation_-_Italy.htm"
	     break;
	  }
              case 9000:
          {
	     strUrl += "PD_for_private_companies_-_Singapore.htm"
	     break;
	  }
              case 9001:
          {
	     strUrl += "PD_Batch_Calculation_-_Singapore.htm"
	     break;
	  }
              case 10000:
          {
	     strUrl += "PD_for_private_companies_-_Denmark.htm"
	     break;
	  }
              case 10001:
          {
	     strUrl += "PD_Batch_Calculation_-_Denmark.htm"
	     break;
	  }
              case 11000:
          {
	     strUrl += "PD_for_private_companies_-_Finland.htm"
	     break;
	  }
              case 11001:
          {
	     strUrl += "PD_Batch_Calculation_-_Finland.htm"
	     break;
          }
              case 12000:
          {
	     strUrl += "PD_for_private_companies_-_Norway.htm"
	     break;
	  }
              case 12001:
          {
	     strUrl += "PD_Batch_Calculation_-_Norway.htm"
	     break;
          }
              case 13000:
          {
	     strUrl += "PD_for_private_companies_-_Sweden.htm"
	     break;
	  }
              case 13001:
          {
	     strUrl += "PD_Batch_Calculation_-_Sweden.htm"
	     break;
          }
          
              case 14000:
          {
	     strUrl += "PD_for_private_companies_-_Korea.htm"
	     break;
	  }
              
              case 14001:
          {
	     strUrl += "PD_Batch_Calculation_-_Korea.htm"
	     break;
          } 
             
             case 15000:
          {
	     strUrl += "PD_for_private_companies_-_Austria.htm"
	     break;
	  }
             
             case 15001:
          {
	     strUrl += "PD_Batch_Calculation_-_Austria.htm"
	     break;
          }
            case 16000:
          {
	     strUrl += "EDF_for_private_companies_-_US_20.htm"
	     break;
	  }
             
             case 16001:
          {
	     strUrl += "EDF_Batch_Calculation_US_20.htm"
	     break;
          }                                            
             case 17000:
          {
	     strUrl += "EDF_for_private_companies_-_UK_20.htm"
	     break;
	  }
             
             case 17001:
          {
	     strUrl += "EDF_Batch_Calculation_-_UK_20.htm"
	     break;
          }
             case 18000:
          {
	     strUrl += "EDF_for_private_companies_-_Japan_20.htm"
	     break;
	  }
             
             case 18001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Japan_20.htm"
	     break;
          }
             case 19000:
          {
	     strUrl += "EDF_for_private_companies_-_Canada_20.htm"
	     break;
	  }
             
             case 19001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Canada_20.htm"
	     break;

          }
             case 20000:
          {
	     strUrl += "EDF_France_31.htm"
	     break;
	  }
             
             case 20001:
          {
	     strUrl += "EDF_Batch_Calculation_-_France_31.htm"
	     break;

          } 

            case 21000:
          {
	     strUrl += "EDF_Italy_31.htm"
	     break;
	  }
             
             case 21001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Italy_31.htm"
	     break;

          }

            case 22000:
          {
	     strUrl += "EDF_South_Africa_31.htm"
	     break;
	  }
             
             case 22001:
          {
	     strUrl += "EDF_Batch_Calculation_-_South_Africa_31.htm"
	     break;

          }         
 
            case 23000:
          {
	     strUrl += "EDF_Germany_UKV_31.htm"
	     break;
	  }

           case 23005:
          {
	     strUrl += "EDF_Germany_GKV_31.htm"
	     break;
	  }

             
             case 23001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Germany_31.htm"
	     break;

          }
                                  
            case 24000:
          {
	     strUrl += "EDF_Swiss_31.htm"
	     break;
	  }
             
             case 24001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Swiss_31.htm"
	     break;

          }

            case 25000:
          {
	     strUrl += "EDF_for_private_public_US_Banks_3.1.htm"
	     break;
	  }
             
             case 25001:
          {
	     strUrl += "EDF_Batch_Calculation_-_US_Banks_3.1.htm"
	     break;

          }

             case 26000:
          {
	     strUrl += "EDF_Denmark_3.1.htm"
	     break;
	  }
             
             case 26001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Denmark_3.1.htm"
	     break;

          }

             case 27000:
          {
	     strUrl += "EDF_Norway_3.1.htm"
	     break;
	  }
             
             case 27001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Norway_3.1.htm"
	     break;

          }

             case 28000:
          {
	     strUrl += "EDF_Sweden_3.1.htm"
	     break;
	  }
             
             case 28001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Sweden_3.1.htm"
	     break;

          }

             case 29000:
          {
	     strUrl += "EDF_Finland_3.1.htm"
	     break;
	  }
             
             case 29001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Finland_3.1.htm"
	     break;

          }
	
	     case 30000:
          {
	     strUrl += "EDF_Austria_3.1.htm"
	     break;

          }
	  
             case 30001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Austria_3.1.htm"
	     break;

          }

             case 31000:
          {
	     strUrl += "EDF_Belgium_3.1.htm"
	     break;
	  }
             
             case 31001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Belgium_3.1.htm"
	     break;

          }

             case 32000:
          {
	     strUrl += "EDF_Netherlands_3.1.htm"
	     break;
	  }
             
             case 32001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Netherlands_3.1.htm"
	     break;

          }
	
	     case 33000:
          {
	     strUrl += "EDF_Korea_3.1.htm"
	     break;

          }
	  
             case 33001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Korea_3.1.htm"
	     break;

          }

             case 34000:
          {
	     strUrl += "EDF_Mexico_3.1.htm"
	     break;

          }

             case 34001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Mexico_3.1.htm"
	     break;

          }

             case 35000:
          {
	     strUrl += "EDF_Spain_3.1.htm"
	     break;

          }

             case 35001:
          {
	     strUrl += "EDF_Batch_Calculation_-_Spain_3.1.htm"
	     break;

          }

             case 50000: 
	  {
	     strUrl += "LossCalc_LGD_Calculations.htm"
	     break;
	  }

             case 50001: 
	  {
	     strUrl += "LossCalc_LGD_Batch_Calculator.htm"
	     break;
	  }

    default:
    {
       strUrl += "help_unavailable.htm";
       break;
    }
   }
   window.open(strUrl, "Help", strHelpOptions);
}