Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/cgi-bin/sc/templates/publish/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/cgi-bin/sc/templates/publish/ResponsiveDesign.js
function discountcalc(price,sale){var c=price.replace(/[0-9.,]*$/,'');var onsaleamt = price.replace(c,'');var priceamt = sale.replace(c,'');var percentage = 100-((priceamt/onsaleamt)*100).toFixed(0);var amtsaved = (onsaleamt-priceamt).toFixed(2);document.write(" " + c + amtsaved + " (" + percentage + "%)");}
function displayMenu(){document.getElementById("nav").style.display = "block";document.getElementById("nav").id = "navBlock";document.getElementById("hideMenu").style.display = "block";document.getElementById("icon-menu").style.display = "none";}
function hideMenu(){document.getElementById("navBlock").style.display = "none";document.getElementById("navBlock").id = "nav";document.getElementById("hideMenu").style.display = "none";document.getElementById("icon-menu").style.display = "block";}
function showFade(){document.getElementById("fade").style.display = "block"; document.getElementById("header-search").style.display = "block";}
function hideFade(){document.getElementById("fade").style.display = "none"; document.getElementById("header-search").style.display = "none";}
function extrasMenu() {var cookies=document.cookie; var start = cookies.indexOf("ss_cart_[-- STORE_Serial_Number --]="); var startaccount = cookies.indexOf("[-- RegCookieName --]="); var cartvalues = ""; var linecount = 0; var start1; var end1; var tmp; var name = ""; var signed_in = -1;
[-- IF MiniCart --]
  document.write("<span id=\"icon-cart\"><a href=\"[-- SHOPPING_CART_URL --]\" title=\"[-- STORE.SC_YourShoppingCart --]\">");
if (start == -1) {document.write("0 [-- STORE.Items --]");}
else {start = cookies.indexOf("=", start) +1; var end = cookies.indexOf(";", start); if (end == -1) {end = cookies.length;}; cartvalues = unescape(cookies.substring(start,end)); start = 0; while ((start = cartvalues.indexOf("|", start)) != -1) {start++; end = cartvalues.indexOf("|", start);
    if (end != -1) {linecount++; if (linecount == 2) {tmp = cartvalues.substring(start,end); colon = tmp.indexOf(":", 0); document.write(tmp.substring(colon+1,end - start)); if ((tmp.substring(colon+1,end - start)) == 1 ) {document.write(" [-- STORE.Item --]");} else {document.write(" [-- STORE.Items --]");}; document.write(": ");}
      if (linecount == 3) {tmp = cartvalues.substring(start,end); colon = tmp.indexOf(":", 0); document.write(tmp.substring(colon+1,end - start));}
      start = end;
    }
    else
      break;
    }}; document.write("<\/a><a id=\"link-stay-cart\" href=\"[-- SHOPPING_CART_URL --]\" title=\"[-- STORE.SC_YourShoppingCart --]\">[-- STORE.Name REMOVE_HTML --] [-- STORE.SC_YourShoppingCart --]<\/a><\/span>");
[-- ELSE --]
  document.write("<span id=\"icon-cart\"><a href=\"[-- SHOPPING_CART_URL --]\" title=\"[-- STORE.SC_YourShoppingCart --]\" id=\"icon-cart\">[-- STORE.SC_YourShoppingCart --]<\/a><a id=\"link-stay-cart\" href=\"[-- SHOPPING_CART_URL --]\" title=\"[-- STORE.Name REMOVE_HTML --] [-- STORE.SC_YourShoppingCart --]\">[-- STORE.Name REMOVE_HTML --] [-- STORE.SC_YourShoppingCart --]<\/a><\/span>");
[-- END_IF --]
[-- IF SC_Registration --]
  if (startaccount != -1) {
      startaccount = cookies.indexOf("=", startaccount) +1;
      var end = cookies.indexOf("|", startaccount);
      if (end != -1) { 
          signed_in = cookies.indexOf("|yes", startaccount);
          name = unescape(cookies.substring(startaccount,end));
          if (signed_in != -1) {
[-- IF WishList --]               document.write("<span id=\"icon-wishlist\"><a id=\"your-wishlist\" href=\"[-- SHOPPING_CART_URL Base --]/wishlist.cgi?storeid=[-- STORE.ID --]&amp;func=ywl\" title=\"[-- STORE.wl_WishList --]\">" + name + " [-- STORE.wl_WishList --]s<\/a><a id=\"search-wishlists\" href=\"[-- SHOPPING_CART_URL Base --]/wishlist.cgi?storeid=[-- STORE.ID --]&amp;func=wl\" title=\"[-- STORE.FindWishList --]\">[-- STORE.FindWishList --]<\/a><a id=\"link-stay-wishtwo\" href=\"[-- SHOPPING_CART_URL Base --]/wishlist.cgi?storeid=[-- STORE.ID --]&amp;func=wl\" title=\"[-- STORE.wl_WishList --]s\">[-- STORE.FindWishList --]<\/a><\/span>");[-- END_IF --]
               document.write("<span id=\"icon-account\"><a id=\"your-account\" href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" title=\"[-- STORE.YourAccount --]\">[-- STORE.YourAccount --]<\/a><a id=\"sign-out\" href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=4&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" title=\"[-- STORE.SignOut --]\">[-- STORE.SignOut --]<\/a><a id=\"link-stay-accounttwo\" href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" title=\"[-- STORE.YourAccount --]\" title=\"[-- STORE.YourAccount --]\">[-- STORE.YourAccount --]<\/a><\/span>");}
      }
  }
  if (signed_in == -1) {
[-- IF WishList --]               document.write("<span id=\"icon-wishlist\"><a href=\"[-- SHOPPING_CART_URL Base --]/wishlist.cgi?storeid=[-- STORE.ID --]&amp;func=wl\" title=\"[-- STORE.FindWishList --]\">[-- STORE.FindWishList --]<\/a><a id=\"link-stay-wish\" href=\"[-- SHOPPING_CART_URL Base --]/wishlist.cgi?storeid=[-- STORE.ID --]&amp;func=wl\" title=\"[-- STORE.wl_WishList --]s\">[-- STORE.FindWishList --]<\/a><\/span>");[-- END_IF --]
               document.write("<span id=\"icon-account\"><a id=\"sign-in\" href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=2&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" title=\"[-- STORE.SignIn --]\">[-- STORE.SignIn --]<\/a><a id=\"link-stay-account\" href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=2&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" title=\"[-- STORE.SignIn --]\" title=\"[-- STORE.Name REMOVE_HTML --] [-- STORE.SignIn --]\">[-- STORE.SignIn --]<\/a><\/span>");} 
[-- END_IF --]
[-- IF SearchOnStorePages --]
  document.write("<span id=\"icon-search\"><a id=\"icon-search\" onClick=\"showFade()\" title=\"[-- STORE.Search --] [-- STORE.Name REMOVE_HTML --]\">[-- STORE.Name REMOVE_HTML --] [-- STORE.Search --]<\/a><\/span><span id=\"icon-home\"><a id=\"icon-home\" href=\"[-- MyStoreURL --]\" title=\"[-- STORE.Name REMOVE_HTML --] [-- STORE.Home --]\">[-- STORE.Name REMOVE_HTML --]<\/a><\/span>");
[-- END_IF --]
}
################################################################################
function productTabs() {var container = document.getElementById("tabContainer"); var tabcon = document.getElementById("tabscontent"); var navitem = document.getElementById("tabHeader_1"); var ident = navitem.id.split("_")[1]; navitem.parentNode.setAttribute("data-current",ident); navitem.setAttribute("class","tabActiveHeader"); var pages = tabcon.getElementsByClassName("tabpage"); for (var i = 1; i < pages.length; i++) {pages.item(i).style.display="none";}; var tabs = container.getElementsByTagName("li"); for (var i = 0; i < tabs.length; i++) {tabs[i].onclick=displayPage;}}
function displayPage() {var current = this.parentNode.getAttribute("data-current"); document.getElementById("tabHeader_" + current).removeAttribute("class"); document.getElementById("tabpage_" + current).style.display="none"; var ident = this.id.split("_")[1]; this.setAttribute("class","tabActiveHeader"); document.getElementById("tabpage_" + ident).style.display="block"; this.parentNode.setAttribute("data-current",ident);}
################################################## SUBPRODUCTS #################
function checkChecker (thisForm, myWarning) {var myForm = document.getElementById(thisForm); var gotCheck = false; var isChecked = false; for (i=0; i < myForm.length; i++) {if (myForm[i].type == "checkbox") {gotCheck = true; if (myForm[i].checked) {isChecked = true;}}}; if (gotCheck == true) {if (isChecked == true) {return true;} else {alert(myWarning); return false;}} else {return true;}}
################################################################################
function menuChange(pageWidth){var navWidth  = document.getElementById("contained").offsetWidth;
 if (pageWidth >= navWidth) {document.getElementById("icon-menu").style.display = "block"; document.getElementById("nav").style.display = "none"; var docBody = document.getElementById("contained"); docBody.setAttribute("class", "narrowview");}
 else {document.getElementById("icon-menu").style.display = "none"; document.getElementById("nav").style.display = "block";}}
var menuids=["ShopSite"]
function buildsubmenus_horizontal()
{for(var i=0;i<menuids.length;i++)
{var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for(var t=0;t<ultags.length;t++)
{if(ultags[t].parentNode.parentNode.id==menuids[i])
{ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"}
else{ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"}
ultags[t].parentNode.onmouseover=function(){this.getElementsByTagName("ul")[0].style.visibility="visible"}
ultags[t].parentNode.onmouseout=function(){this.getElementsByTagName("ul")[0].style.visibility="hidden"}}}}
if(window.addEventListener) 
window.addEventListener("load",buildsubmenus_horizontal,false) 
else if(window.attachEvent) 
window.attachEvent("onload",buildsubmenus_horizontal)
function debouncer( func , timeout ) {var timeoutID , timeout = timeout || 100; return function () {var scope = this , args = arguments; clearTimeout( timeoutID ); timeoutID = setTimeout( function () {func.apply( scope , Array.prototype.slice.call( args ) );} , timeout );}}

haha - 2025