Retro Shower Curtains & Liners

Filter
SORT
Most Popular
Newest
Lowest Price
Highest Price
Highest Rated
On Sale
availability
current offers
Average Review
More Colors Available
Select item for more details
Online Exclusive
More Colors Available
Select item for more details
Online Exclusive
More Colors Available
Select item for more details
Online Exclusive
1
10945032|10945036|10945043|
");
//If they came in from request postal code
if (document.getElementById("wrongPostalWarning")) {
if (!isValidPostalCode(postalCookie)) {
document.getElementById("wrongPostalWarning").innerHTML = "Invalid Zip Code"
document.getElementById("wrongPostalWarning").style.display = "block";
return;
}
else {
document.getElementById("wrongPostalWarning").style.display = "none";
}
}
ajaxStockSearchId = setTimeout("cancelStockSearchCall()", 60000); //wait 20 seconds until forfitting the call.
ajax('/ajax/stockSearchNew.aspx?sku=' + storeLowessku + '&lowesItemNum=' + storeLowesItemNum + "&postalCode=" + postalCookie + "&showAll=true", showLowesStoresByQty, true);
}
var intCurrentPage = parseInt(strCurrentPage);
if (intCurrentPage == 0) {
preloadPage(2);
}
else {
preloadPage(intCurrentPage + 1)
}
function htmlDecode(value) {
return $('').html(value).text();
}
//hides div on click of x image
function closeQuickViewPop() {
$('#divQuickViewBox').addClass("displayn");
$(".moretxt").click(function () {
if ($(this).hasClass("sample")) {
$(this).removeClass("sample");
$(this).text(showtxt);
} else {
$(this).addClass("sample");
$(this).text(hidetxt);
$(".xyz").text = "";
$(".abc p").addClass("fnts");
}
$(this).parent().prev().toggle();
$(this).prev().toggle();
return false;
});
}
function CategoryShowMore(showMoreDiv)
{
var divFilterList = document.getElementById("searchSort_attr_category");
if (divFilterList)
{
var showMoreDiv = document.getElementById("searchFilterLink_attr_category");
if (showMoreDiv)
{
divFilterList.className = "";
showMoreDiv.onclick = CategoryShowLess;
showMoreDiv.innerHTML = "show less";
}
var divShowMoreResponsive = document.getElementById("div_attr_category");
if (divShowMoreResponsive)
{
divFilterList.className = "";
divShowMoreResponsive.onclick = CategoryShowLess;
}
}
}
function CategoryShowLess(showMoreDiv)
{
var divFilterList = document.getElementById("searchSort_attr_category");
if (divFilterList)
{
var showMoreDiv = document.getElementById("searchFilterLink_attr_category");
if (showMoreDiv)
{
divFilterList.className = "searchShortList";
showMoreDiv.onclick = CategoryShowMore;
showMoreDiv.innerHTML = "show more";
}
var divShowMoreResponsive = document.getElementById("div_attr_category");
if (divShowMoreResponsive)
{
divFilterList.className = "searchShortList";
divShowMoreResponsive.onclick = CategoryShowMore;
}
}
}
function updateH1AndWindowText() {
function toTitleCase(str)
{
return str.replace(/(?!to\b)\b\w+/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1);});
}
function hasCaps(str) {
var arrWords;
var isCapsHere = false;
if(str != "") {
arrWords = str.split(" ");
for(var i=0;i div').each(function () {
if($(this).text() != "x"){
headerText = headerText + " " + $(this).text().replace(" - ", "-");
}
});
}
//BUGS-8007
var regxDuplicateH1="";
if(currentH1Text[currentH1Text.trim().length-1]=='s')
{
regxDuplicateH1= "(\\b" + currentH1Text.trim().slice(0, currentH1Text.trim().length - 1).replace(" ","\\b|\\b") + "\\b)|(\\b" + currentH1Text.trim().replace(" ","\\b|\\b") + "\\b)";
var regx=new RegExp(regxDuplicateH1,'gmi');
var match=regx.exec(headerText);
//fix for BUGS-8007, breaking on match.index
if(match){
if(match.index == 1)
{
currentH1Text="";
}
else
{
headerText=headerText.replace(regx," ");
}
}
}
else
{
regxDuplicateH1= "(\\b" + (currentH1Text.trim()+"s").replace(" ","\\b|\\b") + "\\b)|(\\b" + currentH1Text.trim().replace(" ","\\b|\\b") + "\\b)";
var regx=new RegExp(regxDuplicateH1,'gmi');
var match=regx.exec(headerText);
if(match){
if(match.index == 1)
{
currentH1Text="";
}
else
{
headerText=headerText.replace(regx," ");
}
}
}
// ensure no CAPS words exist in header from DB, promo/DIY categories require that words stay capitalized, e.g. DEWALT
if(currentH1Text != null && currentH1Text != undefined && currentH1Text != "") {
if(hasCaps(currentH1Text) == true) {
headerText = (headerText != "") ? headerText + " " + currentH1Text : currentH1Text;
} else {
headerText = (headerText != "") ? toTitleCase(headerText + " " + currentH1Text) : toTitleCase(currentH1Text);
}
}
document.getElementById("headTag").innerHTML = headerText;
if(!$("#headTag").hasClass("header1Responsive")) {
$("#headTag").addClass("header1Responsive");
}
}
function imageErrorSearch(element) {
var src = element.src;
if (src.indexOf("mfr_logo") == -1) {
element.src = '//images.atgstores.com/images/noimage/atg_p.jpg';
} else {
//Mfrlanding
//search page.
if (document.getElementById("imgMfrSearch"))
{
$("#imgMfrSearch").addClass("displayn");
}
}
}
////////////
//Display Previous User Search in TextBox
///////////
function displayPreviousSearch() {
var previousSearch = readCookie("searchTerm");
if (previousSearch != null && previousSearch != "" && bolProductPage == "False") {
//populate text box
document.getElementById("tbxsearchtermNew").value = previousSearch;
}
}
////////////
//Grab Popoular Categories HTML
///////////
function grabPopularCategoriesValue(){
if ($("#divPopularCategories") != null) {
divPopularCategoriesValue = $("#divPopularCategories").html();
}
}
function isLfpUserLoggedIn() {
var bolIsLfpUserLoggedIn = false;
setSiteName();
if (strShortName == "lfp" && ((readCookies("user%5Fid") != null && readCookies("user%5Fid") != "" && readCookies("LFPCustomerID") != null && readCookies("LFPCustomerID") != ""))) {
bolIsLfpUserLoggedIn = true;
}
return bolIsLfpUserLoggedIn;
}
//Opinion Labs Search Feed back
function OpinionLabFeedbackThankYouMessage(divId){
if(divId.id == "divHelpUpper"){
$("#divHelpLower").addClass("displayn");
}else{
$("#divHelpUpper").addClass("displayn");
}
$(".divHelp").text("Thank you for your feedback.");
}
addLoadEvent(function () { hideNonContent(2); });
Comments
Post a Comment