//未登录和注册的会员再使用Act360的产品时弹出的对话框
function firm()
{
	alert("此功能只向会员开放，请先登录或注册");
}

//会员登录后点击试用产品minitest调用的方法
function  toMinitest(course){
	var url="/servlet/minitest?courseName="+course;
	window.open(url,"","left=127,top=107,height=600,width=800,toolbar=no,menubar=no,scrollbars=yes");

}

//Act360的产品的产品过期弹出的对话框
function expiration()
{
	alert("您的免费试用权限已过！如果想使用正式的产品，欢迎购买");
}
 
function writeIBTTestLog(course,courseCate,courseProType)
	{ 
				
		var url = "/act360testlog.action?courseName="+course+"&courseType="+courseCate+"&courseProType="+courseProType;
		
		runByAjax(url,handleStatus);
	}
	
	function runByAjax(url,methodName)
	{
		createXMLHttpRequest();
		xmlHttpRequest_operation.open("POST",url,true);
		xmlHttpRequest_operation.onreadystatechange = methodName;
		xmlHttpRequest_operation.send(null);
	}

	var xmlHttpRequest_operation = false;
			
	function createXMLHttpRequest()
	{
		try
		{
			xmlHttpRequest_operation = new XMLHttpRequest();
		}
		catch (Microsoft)
		{
			try
			{
				xmlHttpRequest_operation = new ActiveXOjbect("Msxml2.XMLHTTP");
			}
			catch (Microsoft2)
			{
				try
				{
					xmlHttpRequest_operation = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (failed)
				{
					xmlHttpRequest_operation = false;
				}
			}
		}
		
		if(!xmlHttpRequest_operation)
		{
			window.alert("error in initializing XMLHttpRequest");
		}
		else
		{
			
		}
	}
	
	

	function handleStatus()
	{
		if(xmlHttpRequest_operation.readyState==4&&xmlHttpRequest_operation.status==200)
		{	
			var doc = xmlHttpRequest_operation.responseText;

			if(doc == "error")
			{
				return;
			}
			
			}

	}
	

	