var CookieName = 'fasic_test';
var Cookies = new CookieHandler();

function make_Cookie(m,s) {
	if(s) {
		var TestType = Cookies.getCookie(CookieName);
		var CookieTime = (60*60*24);
		if(m=='type' && s) {
			Cookies.setCookie(CookieName, s, CookieTime);
		}
		else if(m=='num' && s && TestType.length==1) {
			Cookies.setCookie(CookieName, TestType+s, CookieTime);
		}
	}
}

function closeMe() {
	document.getElementById('TestAnsBoxContent').innerHTML = "";
	document.getElementById('TestAnsBox').style.display = 'none';
}

function floatSS(iX,iY,id){
	var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];
	this[id+"O"]=L;
	if(dD.layers)L.style=L;
	L.nX=L.iX=iX;
	L.nY=L.iY=iY;
	L.P=function(x,y){
		this.style.left=x+px;
		this.style.top=y+px;
	};
	L.Fss=function(){
		var pX, pY;
		winW = (self.innerHeight)?self.innerWidth:(dE && dE.clientHeight)?dE.clientWidth:dB.clientWidth;
		winH = (self.innerHeight)?self.innerHeight:(dE && dE.clientHeight)?dE.clientHeight:dB.clientHeight;
		pX=(self.pageXOffset)?self.pageXOffset:(dE && dE.scrollLeft)?dE.scrollLeft:dB.scrollLeft;
		if(this.iX<0)pX+=winW;
		pY=(self.pageYOffset)?self.pageYOffset:(dE && dE.scrollTop)?dE.scrollTop:dB.scrollTop;
		if(this.iY<0)pY+=winH;
		this.nX+=.1*(pX+this.iX-this.nX);
		this.nY+=.1*(pY+this.iY-this.nY);
		this.P(this.nX,this.nY);
		setTimeout(this.id+"O.Fss()",33);
	};
	return L;
}
