// JavaScript Document
var reqObj = null;
function createRequest(){
	try {
	   reqObj = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (err)	{
	   try {
		reqObj = new ActiveXObject("Microsoft.XMLHTTP");
	   }
	   catch (err2) {
		try {
		   reqObj = new XMLHttpRequest();
		}
		catch (err3) {
		   reqObj = null;
		}
	   }
	}
	return reqObj;
}
var now_tan = 1;
function loadfrm_ajx(str, imgid){
	loadProgress();
	xmlhttp = createRequest();
	if(xmlhttp != null)
	{
		// call open with GET or POST, the URL, and true for asynchronous
		xmlhttp.open("GET",str+"&rand="+Math.random(1,10), true);
		xmlhttp.onreadystatechange = calltextvalue;
		xmlhttp.send(null);
	}	
}

function loadProgress()
{
	document.getElementById("tabs").innerHTML = "<div align=center class='text' align=left><img src=\"http://www.buypropertyanywhere.ru/images/loading_m.gif\" border=\"0\"></div>";	
}

function calltextvalue(){
	
	if (xmlhttp.readyState == 4) {
	  if (xmlhttp.status == 200) {
			var text1  = xmlhttp.responseText;
			//alert(text1);
			document.getElementById('tabs').innerHTML = text1;
	  }
	}
}

