 var wmx_string, wmx_thisURL, wmx_title, wmx_sno=3;  

  wmx_string  = document.referrer; 

  wmx_thisURL = document.URL; 

  wmx_title   = document.title;

 <!--------->
  var paraIndex = wmx_thisURL.indexOf("uclId=active");
  
  if(paraIndex != -1)
  {
      wmx_sno = "1";
  }
  
  paraIndex = wmx_thisURL.indexOf("uclId=product");
  
  if(paraIndex != -1)
  {
      paraIndex = wmx_thisURL.indexOf("result")
      if(paraIndex != -1)
      {
          wmx_sno = "2";
      }
      else
      {
          wmx_sno = "1";
      }
      
  } 

 <!----------->

  if(wmx_title == "")

  {

      wmx_title = wmx_thisURL;

      var nIndex = wmx_title.indexOf("?");

      if(nIndex != -1)

      {

          wmx_title = wmx_title.substring(0, nIndex);

      }

      nIndex = wmx_title.indexOf("#");

      if(nIndex != -1)

      {

          wmx_title = wmx_title.substring(0, nIndex);

      }

      nIndex = wmx_title.lastIndexOf("/");

      if(nIndex != -1)

      {

          var nLen  = wmx_title.length;

          wmx_title = wmx_title.substring(nIndex+1, nLen);

      }

  }  

  if (navigator.userAgent.indexOf("IE")> -1)  

  {

      document.write("<div style='display:none'>");  

      document.write("<img height=1 width=1 border=0 SRC='http://em.hinet.net/web_service/counter/counter.aspx?client="+wmx_client_id+"&campaign="+wmx_campaign_id+"&url="+escape(wmx_string)+"&pname="+escape(wmx_title)+"&this_url="+escape(wmx_thisURL)+"'> </div>"); 

      document.write("<div style='display:none'>");

      document.write("<img width=1 height=1 SRC='http://wm4.ecrm/web_service/counter/WebMAX_Effect.aspx?sno="+wmx_sno+"'></div>");

  } 

  else

  {

      document.write("<layer visibility=hide>");  

      document.write("<img height=1 width=1 border=0 SRC='http://em.hinet.net/web_service/counter/counter.aspx?client="+wmx_client_id+"&campaign="+wmx_campaign_id+"&url="+escape(wmx_string)+"&pname="+escape(wmx_title)+"&this_url="+escape(wmx_thisURL)+"'> </layer>");  

      document.write("<layer visibility=hide>");

      document.write("<img width=1 height=1 SRC='http://wm4.ecrm/web_service/counter/WebMAX_Effect.aspx?sno="+wmx_sno+"'></layer>");

  }
