//------------------------------------------------------------------

// Begin frameless window
var windowW=screen.width ;// wide, pixel number or width for fullscreen
var windowH=screen.height; // high, pixel number or width for fullscreen
var windowX = 0 ;// from left
var windowY = 0 ;// from top
//var urlPop = "index_bis.html"
// ?? supprimé ??   var urlPop = "seq_txt.php";
var title =  "This Is A Frameless Popup Window";
// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = false;          //true
// do not edit below this line
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false;



function openFrameless(leTh) {
if (leTh) { //s'il y a bien un theme envoyé

// envoyer l'url avec le theme sélectionné
urlPop = "seq_txt.php?leTheme="+leTh;

if (beIE) {
NFW = window.open("","popFrameless","fullscreen,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>";
NFW.document.open();
NFW.document.write(frameString);
NFW.document.close();
}
else {
NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
NFW.blur();
window.focus();
NFW.resizeTo(windowW,windowH);
NFW.moveTo(windowX,windowY);
}
NFW.focus();
if (autoclose) {
window.onunload = function(){NFW.close();}
   }

} // fin de if il y a bien un theme

}
//  End of frameless window-->

function disableRightClick(e)
{
  var message = "Right click disabled";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      return false;
    }
  }
  else
  {
    return false;
  }
}
disableRightClick();

