function _stream(WidgetID,LicenceNum,Size){ var obj={ _getupdates:function(){ var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("id-Badge" +WidgetID).innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","https://membership.buynz.org.nz/pages/CMS/Widget/HContent.aspx?w=" + WidgetID + "&l=" + LicenceNum + "&s=" + Size,true); xmlhttp.send(); } }; return obj }