function BoostScanCookie(variable)
{
cook = document.cookie;
variable += "=";
place = cook.indexOf(variable,0);
if (place <= -1)
	return("0");
else
	{
	end = cook.indexOf(";",place)
	if (end <= -1)
		return(unescape(cook.substring(place+variable.length,cook.length)));
	else
		return(unescape(cook.substring(place+variable.length,end)));
	}
}

function BoostCreationCookie(nom,valeur,permanent)
{
	if(permanent)
		{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
}

var win2 = null;

function LoadBoostPopup()
{
    if(BoostScanCookie("boostpopup")==0)
	{
		win2 = window.open("http://www.netleix.com/boost/","_blank","top=20, left=20, width=1000, height=700, scrollbars=1, resizable=1, toolbar=1, location=1, menubar=1, status=1, directories=1");
		window.focus();
		win2.blur();
		BoostCreationCookie("boostpopup","oui",false);
	}
}

