

// Code links to tpfic pages using the linkto function in tpficlink.js
// Specify the HTM page name and the product.  Default is TPF 4.1.
// EG.  'javascript:linkto("gtpc3m29" )' : where gtpc3m29 is the name
//      of the HTM file being linked to.  This filename is found on the
//      page in the upper lefthand corner. The product is 41 by
//      default.

//      Note that these names can
//      shift from time to time due to how the ICs are built.  In this
//      case the hardcoded link must be corrected.

// Refer to pages/envfile.js for values of global variables.                                              
function linkto2(what,product){

linkto(what,product) ;

}


function linkto(what,product){
var dir ;
var prod ;

if ( product == undefined ) { product = "41" ; } 

switch(product){ 
   case "41" : plugin = tpfplugin ;
               current_TPFIC_PUT = tpficput ;
               prod = "tpf" ;
               dir = what.substr(0,5)+"/" ; 
               break ;
   case "ZT" : plugin = ztpfplugin ;
               current_TPFIC_PUT = ztpficput ;
               prod = "ztpf-ztpfdf" ;        
               dir = what.substr(0,5)+"/" ;  
               break ;
   case "DF" : plugin = dfplugin ;
               current_TPFIC_PUT = dftpficput ;
               prod = "tpfdf" ;
               dir = what.substr(0,5)+"/" ;  
               break ;
   case "DZ" : plugin = ztpfdfplugin ;
               current_TPFIC_PUT = zdftpficput ;
               prod = "ztpfdf" ;
               dir = what.substr(0,5)+"/" ;  
               break ;
   case "TOS" : plugin = tosplugin ;
                current_TPFIC_PUT = tosicput ;
                prod = "tpftos" ;
                dir = "" ;
                break ;
   default :    plugin = tpfplugin ;
                current_TPFIC_PUT = tpficput ;
                prod = "tpf" ;
                dir = what.substr(0,5)+"/" ;

   }

// URL path  ;
what = "http://publib.boulder.ibm.com/infocenter/tpfhelp/current/topic/com.ibm."+prod+".doc"+plugin+current_TPFIC_PUT+"/"+dir+what+".htm" ;

// what = "http://publib.boulder.ibm.com/infocenter/tpfhelp/v1r3m0/index.jsp?topic=/com.ibm."+prod+".doc"+plugin+current_TPFIC_PUT+"/"+dir+what+".htm" ;

// http://publib.boulder.ibm.com/infocenter/tpfhelp/v1r3m0/index.jsp?topic=/com.ibm.tpf.doc_put.19/gtpc3/gtpc3m29.htm

// old
// what = "http://publib.boulder.ibm.com/infocenter/tpfhelp/v1r3m0/index.jsp?topic=/com.ibm.tpf.doc."+current_TPFIC_REL+"-PUT"+current_TPFIC_PUT+"/"+dir+"/"+what+".htm"

// http://publib.boulder.ibm.com/infocenter/tpfhelp/index.jsp?topic=/com.ibm.tpf.doc.4.1-PUT19/gtps5/gtps5m06.htm".

// what = "http://publib.boulder.ibm.com/tpf/tpf41/v1r0m2/infoctr.html?&f="+what;

// alert(what) ;

window.open( what , "newwin");

}

