function getHTTPObject() { //create an httpobject and returns it var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } function gbet_show(started,visible) { var http_get = getHTTPObject(); function h_show() { if (http_get.readyState == 4) { var results = http_get.responseText; var html = ''; var items = new Array(); //alert(results); eval(results); for (i=0;i'; html += '
' + this.status + '
'; html += '
' + this.p2 + '
'; html += ' '; if (this.live) { html += '
'; html += this.live; html += '
'; } html += ''; return html; } } function Newsportal(id, title, url, desc, author){ this.id = id; this.title = title; this.url = url; this.desc = desc; this.author = author; this.getHtml = function(){ var html = ''; html += '
' + this.title + '
'; html += '
' + this.desc + '
'; html += ' '; html += ''; return html; } }