function move(arr,offset,nonce,istwo,type) //字符串,初始像素，当前显示第几条,是否第一次进入,类型1:产品 2:商品 3:商机
{
	var img = new Array();
	
	if (istwo) //只有当第一次进入时，需要重新赋值
	{
		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.open("POST","/TransitionResult.aspx",false);
		xmlhttp.send(type);
		if (xmlhttp.responsetext != "")
		{
			img = xmlhttp.responsetext.split("\r\n");
			
			if (img.length > 0)
			{
				if (img.length < 8)
				{
					for (var s=img.length;s<8;s++)
						img[s] = "";
				}
				for (var i=0; i<document.all.Commend.rows.length; i++)
					document.all.Commend.rows[i].cells[0].innerHTML = img[i];
			
				document.all.Commend.style.pixelTop = (offset-3); //这个数字是步长
				//document.all.top.innerText = document.all.Commend.style.pixelTop + "<br>" + nonce;
				if (document.all.Commend.style.pixelTop % 105 == 0) //这个数字是停顿间隔（走过多少像素停一下，需要注意的是这个数字必须要可以被步长除得尽）
				{
					//如果nonce是3，则要先取后面的几条填进表格，再取第一条填进表格
					document.all.Commend.style.pixelTop = 0;
					var m=0;
					if (nonce>document.all.Commend.rows.length-1)
						nonce=0
					for (var n=(nonce+1); n<document.all.Commend.rows.length; n++)
					{
						document.all.Commend.rows[m].cells[0].innerHTML = img[n];
						m++;
					}
					for (var x=0; x<=nonce;x++)
					{
						document.all.Commend.rows[m].cells[0].innerHTML = img[x];
						m++
					}
					setTimeout("move('"+img.join(",")+"',0,"+ ++nonce +",false,"+type+")",4000) //这个数字是停顿时间
				}
				else
					setTimeout("move('"+img.join(",")+"',"+ (offset-3) +","+ nonce +",false,"+type+")",60) //这个数字调整速度
			}
			else
				document.all.Left_Main.innerText = "未能找到推荐内容";
		}
		else
			document.all.Left_Main.innerText = "未能找到推荐内容";
	}
	else //不是第一次进入,则从arr中取数据
	{
		img = arr.split(",");
		if (img.length > 0) //如果有记录
		{
			if (img.length < 8)
			{
				for (var s=img.length;s<8;s++)
					img[s] = "";
			}
			document.all.Commend.style.pixelTop = (offset-3); //这个数字是步长
			//document.all.top.innerText = document.all.Commend.style.pixelTop + "<br>" + nonce;
			if (document.all.Commend.style.pixelTop % 105 == 0) //这个数字是停顿间隔（走过多少像素停一下，需要注意的是这个数字必须要可以被步长除得尽）
			{
				//如果nonce是3，则要先取后面的几条填进表格，再取第一条填进表格
				document.all.Commend.style.pixelTop = 0;
				var m=0;
				if (nonce>document.all.Commend.rows.length-1)
					nonce=0
				for (var n=(nonce+1); n<document.all.Commend.rows.length; n++)
				{
					document.all.Commend.rows[m].cells[0].innerHTML = img[n];
					m++;
				}
				for (var x=0; x<=nonce;x++)
				{
					document.all.Commend.rows[m].cells[0].innerHTML = img[x];
					m++
				}
				setTimeout("move('"+img.join(",")+"',0,"+ ++nonce +",false,"+type+")",4000) //这个数字是停顿时间
			}
			else
				setTimeout("move('"+img.join(",")+"',"+ (offset-3) +","+ nonce +",false,"+type+")",60) //这个数字调整速度
		}
		else
			document.all.Left_Main.innerText = "未能找到推荐内容";
	}
}
//<body onLoad="move(0,0,true,1)">
