 
      function xtranslate(s)
	  {
         res='cylinderhead-'+s;
         return res;
      }
	  function addurlvariable(href,s)
	  {
	  	url=href+'_'+s;
	  	return url;
	  }

     
      function showProductX(cid, provider_key){        
        href = 'http://www.test.com/';
        z = href.indexOf('[commodity_id]');
        if (z>=0)
            href = href.substring(0,z)+cid+href.substring(z+14,href.length);
        z = href.indexOf('[provider_key]');
        if (z>=0)
            href = href.substring(0,z)+provider_key+href.substring(z+14,href.length);
        pw = window.open(href,'product_window','top=100,left=100,height=380,width=540,status=no,toolbar=no,menubar=no,location=no, resizable=yes, scrollbars=yes');
        pw.focus();
      } 
      

      function goCarPartsX(a,b,c,d,e){
         goCarParts(a,b,c,d,e);
         document.getElementById('carSelect').innerHTML='<center class="searchForm">Loading, please wait ...</center>';
      }
      
      function goCarParts(make,model,year,liter,config){    
        var href = '';
		var step = 0;
        if (make!='')
		{

              href = xtranslate(make);
			  step=1;
			  
			  if (model!='')
			  {
             	 href = addurlvariable(href,model);
				 step=2;
        	  }
			  
			  		if (year!='')
					{
					   href = addurlvariable(href,year);
					   step=3;					   
					}
						if (liter!='')
						{
						   href = addurlvariable(href,liter);
						   step=4;					   
						}
							if (config!='')
							{
							   href = addurlvariable(href,config);
							   step=5;					   
							}
        }

        location=href+'_'+step+'.html';
      }
