//navigation functions function submitFormUsingAttrs(aId, aVal) { document.form1.attrId.value = aId; document.form1.attrVal.value = aVal; document.form1.PAGENUM.value = "1"; document.form1.SORT_ORDER.value = ""; document.form1.SORT_COLUMN.value = ""; document.form1.newCrumb.value = '&' + bc_tag_attrid + '=' + aId; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.attrId.value = ""; document.form1.attrVal.value = ""; } function submitFormUsingCluster(clids, kwds) { oldclusterids = document.form1.clusterIdStr.value; document.form1.clusterIdStr.value = clids; oldkeywd = document.form1.keyWord.value; document.form1.keyWord.value = kwds; document.form1.PAGENUM.value = "1"; document.form1.SORT_ORDER.value = ""; document.form1.SORT_COLUMN.value = ""; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.keyWord.value = oldkeywd; document.form1.clusterIdStr.value = oldclusterids; } function submitFormUsingCategory(catattrid) { document.form1.breadCrumbs.value = ""; document.form1.selectedAltCateg.value = ""; splitval = catattrid.split(":"); oldspecific = document.form1.specific.value; document.form1.specific.value = splitval[0]; oldattrsetid = document.form1.attrSetId.value; document.form1.attrSetId.value = splitval[1]; document.form1.clusterIdStr.value = ""; document.form1.attrId.value = ""; document.form1.attrVal.value = ""; document.form1.PAGENUM.value = "1"; if (document.getElementById("filterId")) { document.getElementById("filterId").value = 'AllItems'; } document.form1.SORT_ORDER.value = ""; document.form1.SORT_COLUMN.value = ""; for (i = 0; i < document.form1.elements["attrIdArr"].length; i++) { document.form1.elements["attrIdArr"][i].value = ""; document.form1.elements["attrValArr"][i].value = ""; } if (document.form1.elements["matchedIdArr"].length == undefined) { document.form1.matchedIdArr.value = ""; document.form1.matchedValArr.value = ""; } else { for (i = 0; i < document.form1.elements["matchedIdArr"].length; i++) { document.form1.elements["matchedIdArr"][i].value = ""; document.form1.elements["matchedValArr"][i].value = ""; } } document.form1.categoryChoice.value = "Y"; document.form1.fromGenericPage.value = "N"; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.specific.value = oldspecific; document.form1.attrSetId.value = oldattrsetid; } function submitFormUsingNarrowCategory(catattrid) { document.form1.selectedAltCateg.value = selectedCategBP; document.form1.selectedAltCategType.value = selectedCategTypeBP; splitval = catattrid.split(":"); oldspecific = document.form1.specific.value; document.form1.specific.value = splitval[0]; oldattrsetid = document.form1.attrSetId.value; document.form1.attrSetId.value = splitval[1]; document.form1.clusterIdStr.value = ""; document.form1.attrId.value = ""; document.form1.attrVal.value = ""; document.form1.fromGenericPage.value = "Y"; document.form1.newCrumb.value += '&' + bc_tag_narrow + '=' + splitval[0]; document.form1.PAGENUM.value = "1"; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.specific.value = oldspecific; document.form1.attrSetId.value = oldattrsetid; } function submitFormUsingPrice(qminpr, qmaxpr) { oldminpr = document.form1.queryMinPrice.value; oldmaxpr = document.form1.queryMaxPrice.value; document.form1.queryMinPrice.value = qminpr; document.form1.queryMaxPrice.value = qmaxpr; document.form1.newCrumb.value += '&' + bc_tag_prrange + '=$' + qminpr + "-$" + qmaxpr; document.form1.PAGENUM.value = ""; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.queryMinPrice.value = oldminpr; document.form1.queryMaxPrice.value = oldmaxpr; } function submitFormUsingBreadCrumb(crumbid) { document.form1.crumbId.value = crumbid; document.form1.attrId.value = ""; document.form1.attrVal.value = ""; document.form1.PAGENUM.value = ""; setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.crumbId.value = ""; } function SwitchMenu(obj) { if (document.getElementById) { var el = document.getElementById(obj); var ar = document.getElementById("CategoryDiv").getElementsByTagName("span"); if (el.style.display != "block") { for (var i = 0; i < ar.length; i++) { if (ar[i].className == "submenu") { ar[i].style.display = "none"; } } el.style.display = "block"; } else { el.style.display = "none"; } } } function searchvalidate() { if (document.form1.searchKeyWord.value == "") { Alert('Please enter a search term.'); return false; } oldkeyword = document.form1.keyWord.value; document.form1.keyWord.value = document.form1.searchKeyWord.value; document.form1.clusterIdStr.value = ""; document.form1.attrSetId.value = ""; document.form1.bargainOnly.value = ""; document.form1.breadCrumbs.value = ""; document.form1.crumbId.value=""; if (document.form1.elements["attrIdArr"].length == undefined) { document.form1.attrIdArr.value = ""; } else { for (i = 0; i < document.form1.elements["attrIdArr"].length; i++) { document.form1.elements["attrIdArr"][i].value = ""; document.form1.elements["attrValArr"][i].value = ""; } } document.form1.PAGENUM.value = ""; document.form1.SORT_ORDER.value = ""; document.form1.SORT_COLUMN.value = ""; document.form1.attrId.value = ""; document.form1.attrVal.value = ""; document.form1.specific.value = ""; document.form1.selectedAltCateg.value = ""; document.form1.selectedAltCategType.value = ""; document.form1.fromGenericPage.value = "N"; document.form1.categoryId.value = ""; if (document.getElementById("filterId")) { document.getElementById("filterId").value = 'AllItems'; } if (document.form1.elements["altCategoryArr"].length == undefined) { document.form1.altCategoryArr.value = ""; } else { for (i = 0; i < document.form1.elements["altCategoryArr"].length; i++) { document.form1.elements["altCategoryArr"][i].value = ""; } } if (document.form1.elements["narrowCategoryArr"].length == undefined) { document.form1.narrowCategoryArr.value = ""; } else { for (i = 0; i < document.form1.elements["narrowCategoryArr"].length; i++) { document.form1.elements["narrowCategoryArr"][i].value = ""; } } if (document.form1.elements["matchedIdArr"].length == undefined) { document.form1.matchedIdArr.value = ""; document.form1.matchedValArr.value = ""; } else { for (i = 0; i < document.form1.elements["matchedIdArr"].length; i++) { document.form1.elements["matchedIdArr"][i].value = ""; document.form1.elements["matchedValArr"][i].value = ""; } } setCookie('HONESTY_INTMDT_COOKIE','moveAhead',"","/",".honesty.com",""); document.form1.submit(); document.form1.keyWord.value = oldkeyword; } //summary functions function gotoFeedbackform(feedbacklink) { feedbackPopup = window.open(feedbacklink, "feedback_bp","width=700,height=300,left=200,top=100,location=0,statusbar=0,menubar=0,toolbar=0,resizable=1,scrollbars=1"); if ((browser=="Microsoft Internet Explorer") && (parseInt(version) < 4)) { // do nothing } else { feedbackPopup.opener = self.parent; } feedbackPopup.focus(); } function gotoEmailForm(emailLink) { openpopup = window.open(emailLink,"email_bp","width=650,height=400,left=200,top=100,location=0,statusbar=0,menubar=0,toolbar=0,resizable=1,scrollbars=1"); if ((browser=="Microsoft Internet Explorer") && (parseInt(version) < 4)) { // do nothing } else { openpopup.opener = self.parent; } openpopup.focus(); } function gotoZipForm(zipurl) { openpopup = window.open(zipurl,"zipcode_bp","width=300,height=150,left=200,top=100,location=0,statusbar=0,menubar=0,toolbar=0,resizable=1,scrollbars=1"); if ((browser=="Microsoft Internet Explorer") && (parseInt(version) < 4)) { // do nothing } else { openpopup.opener = self.parent; } openpopup.focus(); } function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); }