// JScript File function bookmarkSite(title, url){ if (document.all) window.external.AddFavorite(url, title); else if (window.sidebar) window.sidebar.addPanel(title, url, "") } function search() { var strPhrase = document.getElementById("phrase").value; if (strPhrase == '') alert('You must enter a phrase or keyword to search for. Please try again.') else window.location = '/search/content.aspx?phrase=' + strPhrase; } function viewMensBrands() { var strBrand = document.getElementById("ctl00_ddlBrandMens").value; var strReplaceAll = strBrand; var intIndexOfMatch = strReplaceAll.indexOf( " " ); // Loop over the string value replacing out each matching // substring. while (intIndexOfMatch != -1){ // Relace out the current instance. strReplaceAll = strReplaceAll.replace( " ", "-" ) // Get the index of any next matching substring. intIndexOfMatch = strReplaceAll.indexOf( " " ); } intIndexOfMatch = strReplaceAll.indexOf( "&" ); // Loop over the string value replacing out each matching // substring. while (intIndexOfMatch != -1){ // Relace out the current instance. strReplaceAll = strReplaceAll.replace( "&", "and" ) // Get the index of any next matching substring. intIndexOfMatch = strReplaceAll.indexOf( "&" ); } strBrand = strReplaceAll; window.location = '/clothing-brands/Mens/' + strBrand + '.aspx'; } function viewWomensBrands() { var strBrand = document.getElementById("ctl00_ddlBrandWomens").value; var strReplaceAll = strBrand; var intIndexOfMatch = strReplaceAll.indexOf( " " ); // Loop over the string value replacing out each matching // substring. while (intIndexOfMatch != -1){ // Relace out the current instance. strReplaceAll = strReplaceAll.replace( " ", "-" ) // Get the index of any next matching substring. intIndexOfMatch = strReplaceAll.indexOf( " " ); } intIndexOfMatch = strReplaceAll.indexOf( "&" ); // Loop over the string value replacing out each matching // substring. while (intIndexOfMatch != -1){ // Relace out the current instance. strReplaceAll = strReplaceAll.replace( "&", "and" ) // Get the index of any next matching substring. intIndexOfMatch = strReplaceAll.indexOf( "&" ); } strBrand = strReplaceAll; window.location = '/clothing-brands/Womens/' + strBrand + '.aspx'; } function viewMensCategories() { var strBrand = document.getElementById("ctl00_ddlCategoryMens").value; window.location = '/Mens' + strBrand ; } function viewWomensCategories() { var strBrand = document.getElementById("ctl00_ddlCategoryWomens").value; window.location = '/Womens' + strBrand ; }