var xmlHttp = false;



//loadDataPM();
//loadDataFT();
//setInterval("loadDataPM()",3000);
//setInterval("loadDataFT()",5000); 



function loadDataPM(){
myRand=parseInt(Math.random()*99999999);
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') { 
    xmlHttp = new XMLHttpRequest();
}
 if (xmlHttp) {
     xmlHttp.open('GET', 'community_ticker_messages.php?rx='+myRand, true);
     xmlHttp.onreadystatechange = function () {
							         if (xmlHttp.readyState == 4) {
										if(document.getElementById("ticker_messages")){
											 document.getElementById("ticker_messages").innerHTML = xmlHttp.responseText;
										}
							         }
							     };
     xmlHttp.send(null);
 }
}

function loadDataFT(){
myRand=parseInt(Math.random()*99999999);
try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
	if (xmlHttp){
   		xmlHttp.open('GET', 'community_ticker_friends.php?rx='+myRand, true);
     	xmlHttp.onreadystatechange = function (){
								     	if (xmlHttp.readyState == 4) {
											if(document.getElementById("ticker_friends")){
											   document.getElementById("ticker_friends").innerHTML = xmlHttp.responseText;
											}
										}
								     };
     xmlHttp.send(null);
} 
}



