﻿




productListUtil = new productListUtil();

if (document.getElementById('prlistwrapper')) {
  productListUtil.init();
}




function productListUtil() {
  var i;

  this.init = function () {
    redesignDescription();
    removeEight();
  }
  redesignDescription = function () {
    if (exists("prlistDescription")) {
      if (document.getElementById('prlistDescription').innerHTML == "") {
        document.getElementById('prlistDescription').style.display = "none";
      }
    }
  }
  removeEight = function () {
    if (document.getElementById('ProductList_TD')) {
      var fResult = document.getElementById('Main_TD').getElementsByTagName("DIV");
      for (i = 0; i < fResult.length; i++) {
        if (fResult[i].className == "prlPrc") {
          fResult[i].innerHTML = fResult[i].innerHTML.replace(new RegExp("</strike>8<strike>", "gi"), "8");
        }
      }
    }
  }

  exists = function (inVal) {
    if (document.getElementById(inVal)) {
      return true;
    }

  }

}




