function Article(docID)//Object to manage ajax calls { this.docID=docID; this.url = 'articles.js/' + this.docID + '?open'; if(typeof Article._intialized == "undefined") { Article.prototype.loadAjax = function()//Function used to make the ajax call { var oXHR = createXHR(); oXHR.open('GET',this.url,false); oXHR.send(null); return oXHR.responseText; }; } Article._initialiazed = true; }