var xmlHttp;
var divTarget;

function GetPage(url, target) {
	divTarget = target;
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null) {
  		alert ("Please upgrade to Internet Explorer 5 or later.");
 		return;
  	} 
	
	isbusy = 1;
	xmlHttp.open("GET","http://www.freeflirtdating.com/chat/"+url,true);
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.send(null);
}

function stateChanged(){ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
		isbusy = 0; 
		document.getElementById(divTarget).innerHTML=xmlHttp.responseText; 
 	}
}

function GetXmlHttpObject()
{
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

