    function strReplace(myString,searchString,replaceString) {
     output = "" + myString;

      while (output.indexOf(searchString)>-1) {
       searchStringPos = output.indexOf(searchString);
       output = output.substring(0, searchStringPos) + replaceString + output.substring((searchStringPos + searchString.length), output.length);
      }

      return output;
    }
  
  	var featureName = "";
  	var featureXML = "";
  	function setFeatureAttributes(fname,fxml){
  	
  	  if(fname.indexOf("+")>-1){
  	    fname = strReplace(fname,"+","%25%32%42");
  	  }
  	  
  		featureName = "%3FfeatureName%3d" + fname;
  		
  		featureXML = "%3FfeatureXML%3d" + fxml;

  	}
  
  
    function openPopup(pName,pWidth,pHeight){
    	if(pName=='tafPopup'){
      	var tafPopupPath = /*VIPURL*/"tell_a_friend/form.jsp?targetPageUrl=/com/en/technical_terms/content.jsp"+featureName;
        centerPopup(pName,tafPopupPath,pWidth,pHeight);
      }else if(pName=='printPopup'){
      	var printPopupPath = /*VIPURL*/"../general/print_preview/index.jsp?content=../../technical_terms/print_popup.jsp"+featureXML;
        centerPopup(pName,printPopupPath,pWidth,pHeight);
      }
    }
  
  
		function trackingParameter(modulname,bandwitch,filmname){
			var tempParam1 = "/COM/en/" + modulname + "/" + bandwitch + "/" + filmname;
			var tempParam2 = bandwitch.substr(0,1).toUpperCase() + bandwitch.substr(1);
			trackAbsolute(tempParam1,tempParam2);
		}
	
	
	function openFeaturePopup(featureName){
		centerPopup('technical_terms',/*VIPURL*/'feature_popup.jsp?featureName='+featureName,581,490,null,null,0)
	}
