var sb={ tags: null, //this sets up a place holder for the tags domain: "quickbooksenterprise.com", https: false, url: "tag/tag.php", v_id: 0, ScriptTag: null, SetTags: function() { if (this.https) { this.url="https://"+this.domain+"/"+this.url; } else { this.url="http://"+this.domain+"/"+this.url; } if (this.tags!=null && this.tags.length>0) { this.url+="?"; for (i=0; i0) { this.url+="&v_id="+this.v_id; } this._SendTags(); } else { return false; } }, _SendTags: function() { var e = document.createElement("script"); e.src=this.url; e.type="text/javascript"; this.ScriptTag=e; document.getElementsByTagName("head")[0].appendChild(e); }, _CleanUp: function() { if (this.ScriptTag!=null) { document.getElementsByTagName("head")[0].removeChild(this.ScriptTag); } } }