

	try
	{
		var AJAX= new ActiveXObject("Microsoft.XMLHTTP");
		AJAX.onreadystatechange = function()
		{
 			if(AJAX.readyState == 4)
 			{
 				var strResult = unescape(AJAX.responseText);
				//alert(strResult);	
				document.all.ResearchNetCount.innerHTML=strResult;
 			}
 		}
		//strSend="flag=1";
		AJAX.open("POST","/ResearchNet_NSFC/count/newCount.aspx",true);
		AJAX.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		//AJAX.send(strSend);
		AJAX.send();
	}
	catch(e)
	{ 
		alert(e.description);
	}


/*
if(screen.width >= 980)
{
  document.write("<div id='AdLayer1' style='position:absolute; width:61px; height:59px; z-index:1; visibility:hidden;; left: 2px; top: 100px; font-size:11px; color:#014981;'> ");
  document.write("<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no width=100 height=100 src='/ResearchNet_NSFC/count/newCount.aspx'></iframe>");
  document.write("</div>"); 
  initAd();
}
*/
function initAd() 
{
  document.all.AdLayer1.style.posTop = 130;             
  document.all.AdLayer1.style.visibility = 'visible';   
  MoveLayer(); 
}

function MoveLayer() 
{
	var x = screen.width - 135;
	var y = document.body.scrollTop + screen.Height - 300;

	eval("document.all.AdLayer1.style.posTop = y");
	eval("document.all.AdLayer1.style.posLeft = x");
	setTimeout("MoveLayer();", 20); 
}


