<!--Copyright

var message="Function disabled.\nThe page is copyrighted\n© Haïm Melca - 2011 "; 

function click(e) 
{
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> 


/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}

<!-- Highlight NEW content.html

function checknew(date) {
  var newimg = "../tools/nouveau.jpg border=0 align=absmiddle";
  var expdate = new Date(date);
  var curdate = new Date();
  if (expdate.getTime() > curdate.getTime())
  {
    document.write('<img src=' + newimg + '>' + " " +'<div class="headline-new">');
  }
  else
  {
    document.write('<div class="headline">');
  }
}


<!-- Highlight UPDATED content.html

function checkupdated(date) {
  var newimg = "../tools/updated.gif border=0";
  var expdate = new Date(date);
  var curdate = new Date();
  if (expdate.getTime() > curdate.getTime())
  {
    document.write('<img src=' + newimg + '>' + " " +'<div class="headline-new">');
  }
  else
  {
    document.write('<div class="headline">');
  }
}

<!-- POPUP IMAGE 

function PopupTribunal(img) {
	titre="Tribunal Rabbinique Mogador";
	w=open("",'image','width=950,height=660, scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='tribunal.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 >");
	w.document.write("<div align='left'><i><font size=-2>(Archives du Tribunal Rabbinique de Mogador)</font></i></div><div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'><br><br></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


// CLOSE WITH IMAGE -----------------------------------------------------------------------------

//     w.document.write("<center><a href='javascript:self.close();'><IMG SRC='tools/next.jpg' BORDER=0 ></a></center>");


<!-- STATUS BAR-->

 window.defaultStatus='Copyright © Haïm Melca - 2011';

//   -----------------------------------------------------------------------------

// Retour en haut de pages par un double clic

function dblclick() {
window.scrollTo(0,0)
}
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;

// -------------------------------------------------
// Generate Unique parameter to be appended to the URL
// This will allow us to realod the HTML from the server

function genUniqueParam(parameter)
{
   return parameter+'unique_id='+genUniqueId();
}

//
// Display the target image for this thumbnail
//
function displayThumb(src, width, height, title)
{
   var winWidth = 1024;
   var winHeight = 768;

   eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');");

   // clear the content of the document
   win.document.open();

   win.document.writeln('<html>');

   if(null != title && title != "")
   {
win.document.writeln('<head><title>' + title + '</title><META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head>');
   }
   else
   {
win.document.writeln('<head><title>Thumbnail Image</title><META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head>');
   }
   win.document.writeln('<body BGCOLOR="#4D4D4D" TEXT="#EEE9D6">');

   win.document.writeln('<center><table border="0">');
   if (width == 0)
   {
      win.document.writeln('<tr><td align="center"><img src="'+src+'"></td></tr>');
   }
   else if (height == 0)
   {
      win.document.writeln('<tr><td align="center"><img width="'+width+'" src="'+src+'"></td></tr>');   
   } 
   else
   {
      win.document.writeln('<tr><td align="center"><img width="'+width+'" height="'+height+'" src="'+src+'"></td></tr>');   
   } 

   if(null != title && title != "")
   {
       win.document.writeln('<tr><td ><font size="1" color="#EEE9D6" face="verdana">'+title+'</font></td></tr>');
   }
   win.document.writeln('</table></center><br>');

	win.document.writeln("<h6><div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div></h6>");

   win.document.writeln('</body></html>');
   win.document.close();
}

//   -----------------------------------------------------------------------------


