function ouvrirplan(l)
{
var msg = new Array();
msg[0] = "Pour consulter cette page, il vaut mieux avoir une connexion rapide !!!\n";
msg[0] = msg[0] + "Sinon, un peu de patience...\nVoulez-vous continuer ?";
msg[1] = "Om deze pagina kunnen te bekijken, is het beter over een snelle connectie te beschikken !!!\n";
msg[1] = msg[1] + "Anders, een beetje geduld...\nWenst U verder te gaan ?";
msg[2] = "Um diese Seite zu laden, ist es besser über eine schnelle Verbindung zu verfügen !!!\n";
msg[2] = msg[2] + "Sonst, ein bischen Geduld...\nMöchten Sie weitergehen ?";
URL = "../plan/plan.php?l=" + l;
response = confirm(msg[l]);
if(response == true)
window.open(URL,'','fullscreen,scrollbars');
}
function centerWindow(URL,x,y,withmenu) {
if (withmenu == 1) 
{
	menustring = ", Menubar=yes, Toolbar=yes, Location=yes";
}
else
{
	menustring = "";
}
if (document.all)
{
	var xMax = screen.width, yMax = screen.height;
}
else if (document.layers)
	{
		var xMax = window.outerWidth, yMax = window.outerHeight;
	}
	else
	{
	var xMax = 1024, yMax=768;
	}
var xOffset = (xMax - x)/2, yOffset = (yMax - y)/2;
window.open(URL,'windowbis',
'width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',Scrollbars=yes, resizable=yes'+menustring+'');
}
function leftWindow(URL,x,y,withmenu) {
if (withmenu == 1) 
{
	menustring = ", Menubar=yes, Toolbar=yes, Location=yes";
}
else
{
	menustring = "";
}
if (document.all)
{
	var xMax = screen.width, yMax = screen.height;
}
else if (document.layers)
	{
		var xMax = window.outerWidth, yMax = window.outerHeight;
	}
	else
	{
	var xMax = 1024, yMax=768;
	}
var xOffset = 0, yOffset = 0;
var w=window.open(URL,'windowleft',
'width='+x+',height='+y+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',Scrollbars=yes, resizable=yes'+menustring+'');
w.document.close;
w.blur();
}
/*function click() {
if (event.button==2) {
alert('S.I.TROIS FRONTIERES & HB - Tous droits réservés');
}
}
document.onmousedown=click*/

function gotoURL(link)
{
window.location = "gotoURL.php?page="+link;
}

function readlistitem()
{
var listitem = document.MyForm.SearchString[1].selectedIndex;
document.MyForm.list.value = listitem;
//document.MyForm.submit();
}
function readlistitem2()
{
var listitem = document.MyForm.album.selectedIndex;
//onchange=readlistitem2(window.event.srcElement)
//var listitem = myelement.selectedIndex;
document.MyForm.list.value = listitem;
}
function hideLoadingPage() {
    if (document.getElementById) 
	{
	  document.getElementById('hidepage').style.visibility = 'hidden';
    }
    else {
	  if (document.layers) {
	    document.hidepage.visibility = 'hidden';
	  }
	  else {
	    document.all.hidepage.style.visibility = 'hidden';
	  }
    }
  }
  function checksearch(l)
  {
  var msg = new Array();
		msg[0] = "Vous avez oublié d'introduire un mot de recherche";
		msg[1] = "U hebt vergeten een zoekwoord intevullen";
		msg[2] = "Sie haben vergessen eins Suchwort einzutragen";
if(document.FormSearch.search.value == "")
  {
       alert(msg[l]);
       return false;
  }
  }
function iFrameHeight()
{
var h = 0;
if(document.all) // Internet.Explorer - IFRAME hauteur dynamique suivant document
{
h = document.frames['myIframe'].document.body.scrollHeight;
document.all.myIframe.style.height = h+15;
}
else // fireox.0.9.2 + ; netscape.7.0 +
{
h = document.getElementById('myIframe').contentDocument.body.offsetHeight;
document.getElementById('myIframe').style.height = h+25;
}
}
