

var tm2=1

function ajaxFunction()
{

	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				//no error message
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var z=document.getElementById('user_info_pm');

			if( z.innerHTML = xmlHttp.responseText )
			{
				//do nothing
			}
			else
			{
				z.innerHTML=xmlHttp.responseText;
			}
		}
	}
	xmlHttp.open("GET","/mail_comm.php",true);
	xmlHttp.send(null);
}

function timer2()
{
	var t=setTimeout("banner2()",1000)
}

function banner2()
{
	ajaxFunction()

	tm2=tm2+1
	if(tm2==6)
	{
		tm2=0
	}
	timer2()
}



