function rollOver(item, couleur) {
  var ms = navigator.appVersion.indexOf("MSIE");
  var ns = navigator.appName=="Netscape";
  ok = ( (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) ) || (ns && (parseInt(navigator.appVersion) >= 5));
  if(ok)
    item.style.cssText="text-decoration: none;color: " + couleur + ";";
}

function rollOut(item, couleur) {
  var ms = navigator.appVersion.indexOf("MSIE");
  var ns = ( navigator.appName == "Netscape");
  ok = ( (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) ) || (ns && (parseInt(navigator.appVersion) >= 5));
  if(ok)
    item.style.cssText="text-decoration: none;color: " + couleur + ";";
}

function manageDocument() {

  if ( currentMode == "2" ) 
  { 
    var URL = "scripto.asp?resultat=" + pageId; 
  } 
  else 
  { 
    var URL = "scripto.asp?resultat=" + pageId + "&mode=2"; 
  }

  if ( sesNum == "") {
    window.location.href = adminpath + "index.asp?editpage=" + pageId;
  } 
  else
  {
    window.location.href = URL;
  }
}

function RQ()
{
  this.Querystring = this.RQS();
}
    
RQ.prototype.RQS = function()
{
  var qs = window.location.href.split("?");
  var rqs = new Array();
      
  if ( qs.length == 2 )
  {
    qs = qs[1].split("&");
        
    for( i = 0; i < qs.length; i++ )
    {
      rqs[qs[i].split("=")[0]] = qs[i].split("=")[1]
    }
  }
  return rqs;
}

function PopUp (width, height, windowname, strUrl) {
	var pBrowse = window.open(strUrl,windowname,"scrollbars=yes,menubar=no,width="+ width +",height="+ height +",resizable=yes,top="+ ((screen.height-height)/2) +",left="+ ((screen.width-width)/2));

	if (pBrowse.opener == null)
	pBrowse.opener = self

	pBrowse.focus();
}
var Request = new RQ();