var Mint = new Object(); Mint.save = function() { var now = new Date(); var debug = false; // this is set by php var path = '/stat/mint' + ((debug)?'.debug':'') + '.php?key=303037314e446b63414e6e584f504f673163634f61336f4c683535314b31'; // Loop through the different plug-ins to assemble the query string for (var developer in this) { for (var plugin in this[developer]) { if (this[developer][plugin] && this[developer][plugin].onsave) { path += this[developer][plugin].onsave(); }; }; }; // Slap the current time on there to prevent caching on subsequent page views in a few browsers path += '&'+now.getTime(); // Redirect to the debug page if (debug) { window.location.href = path; return; }; // Record this visit document.write(''); }; // Could not connect to the database Mint.save();