function lLoopRun(sFuncLoop,sFuncEnd,nDelay) { //writen by http://fengyan.iecn.cn
	var vintervalId = null;
	var runString	= sFuncLoop;
	var stopString	= sFuncEnd;
	var delayTime	= nDelay;
	var nCount = 0; //为便于测试，应用时就将此行注释掉
	this._doLoop = function (){
		if (vintervalId && !eval(stopString)){
			eval(runString);
			nCount++;//为便于测试，应用时就将此行注释掉
		} else {
			window.clearInterval(vintervalId);
			vintervalId = null;
		}
		document.getElementById("TestCount").innerHTML = nCount;//为便于测试，应用时就将此行注释掉
	}
	window.clearInterval(vintervalId);
	vintervalId = window.setInterval(this._doLoop,delayTime);
}
