|
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/publish/ |
Upload File : |
function savings(r,s,f) {var percent = 100-((s/r)*100).toFixed(0); var saved = (s-r).toFixed(2); if (f == "percentonly") {document.write("(" + percent + "% off) ");}else {document.write("$" + saved + " (" + percent + "%) ");}}
Array.prototype.max = function() {var max = this[0];var len = this.length;for (var i = 1; i < len; i++) if (this[i] > max) max = this[i];return max;}
Array.prototype.min = function() {var min = this[0];var len = this.length;for (var i = 1; i < len; i++) if (this[i] < min) min = this[i];return min;}
function genToggle(elone,eltwo) {var elorig = document.getElementById(elone); var elnew = document.getElementById(eltwo); if (elorig != null) {elorig.setAttribute('id',eltwo);} else {elnew.setAttribute('id',elone);};}
function selectCheck(f) {var popts = f.getElementsByTagName("select"); for (var i=0;i<popts.length;i++) {var lasttwo = popts[i].value.substr(-2); if (lasttwo == ";n") {popts[i].setAttribute("class","notselected"); alert("Oops, you still need to select an option "); return false;};}}
function checkSubproducts(f) {var itemnum = ss_jQuery('input[name=itemnum]:checked',f);if(itemnum.length >= 1)return true;else{alert("Oops, you still need to select an option ");return false;}}
function sizePop() {$("#bb-sizepopup").toggle(); return false;}
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 );}}