function submit_form()
{
	
nombre= Math.floor(Math.random() * 3)+1;

if (nombre == 1) {
		window.open('tops.php','minienter','toolbar=1,location=1,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=300,height=300');
}
else if (nombre == 2 || nombre == 3) {

	window.open('tops.php','minienter','toolbar=1,location=1,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=300,height=300');
}
		else {
		window.open('tops.php','minienter','toolbar=1,location=1,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=300,height=300');
		}
		
	window.focus()
	document.entrer.submit();
}

function ScanCookie(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 CreationCookie(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;
}

function load_pop_power()
{
if(ScanCookie("dejapopup")==0)
{
win2 = window.open("tops.php",'_blank',"top=20, left=20, fullscreen, scrollbars=1, resizable=1, toolbar=1, location=1, menubar=1, status=1, directories=1");
win2.blur()
window.focus()
CreationCookie("dejapopup","oui",false)
}
}
