// if( location == this.location ){top.location="http://www.metalor-watch.com/";}

function CheckForm () {

	//Check for a word to search
	returnVal = true;
	if (document.SiteSearch.query.value==""){
		returnVal = false;
		alert("Pour effectuer votre recherche, prière d'indiquer au minimum un mot-clé");
		document.SiteSearch.query.focus();
	}
	else {
		 document.SiteSearch.submit();
	}
}

function ImprimerPage( url )
{
  window.open( url, 'printwindow', 'width=740,height=500,toolbar=yes,resizable=true,menubar=yes,scrollbars=yes' );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function reDo() {
   NS4 = document.layers;
   if (NS4) {
 	  location.reload();
   }
}       
            
var ShowDelay = 500;
var CurrentMenuID = null;
var MenuTimeOut = null;
var MenuReady = false;

function MenuMouseOut()
{
 	MenuTimeOut = window.setTimeout( 'HideMenu()', ShowDelay );
// 	ImageTimeOut = window.setTimeout( 'MM_swapImgRestore()', ShowDelay );
	 window.status = '';
}

function MenuMouseOver()
{
  clearTimeout( MenuTimeOut );
 // clearTimeout( ImageTimeOut );
}

function HideMenu()
{
	if( CurrentMenuID != null )
	{
  MM_showHideLayers( CurrentMenuID, '', 'hide');
  CurrentMenuID = null;
		MM_swapImgRestore();
	}
}

function ShowMenu( menuID )
{
 	if(MenuTimeOut != null) clearTimeout( MenuTimeOut );
// 	if(ImageTimeOut != null) clearTimeout( ImageTimeOut );
  if( CurrentMenuID != null )
  {
    MM_showHideLayers( CurrentMenuID, '', 'hide');
  		MM_swapImgRestore();
  }
  CurrentMenuID = menuID;
  MM_showHideLayers( CurrentMenuID, '', 'show');
}
