/* LAISSER CES LIGNES */
function OpeniFrameURL(url) {
    Shadowbox.open({
      content: url,
      player:  'iframe',
      height:  350,
      width:   640
    });
  }

function showsup()
{
	if(document.getElementById && ScanCookie("dxjc")==0)
	{
	  OpeniFrameURL("formpopup.php")
		CreationCookie("dxjc",true, true);
	}
}

function closeSup()
{
   if(document.getElementById)
	{
		document.getElementById("pub").style.width = 1;
		document.getElementById("pub").style.height = 1;
		document.getElementById("pub").innerHTML = '';
	}
}

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;
}

/*if(document.all)
{
	larg = document.body.clientWidth;
	haut = document.body.clientHeight;
}
else
{*/
   larg = screen.width;
	haut = screen.height;
	
//}

