//  Popup script for Images
function PopupImage(img) {
	titre="&copy;  OSIRISNET.NET";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes');	
	w.document.writeln("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
      w.document.writeln('<script language="JavaScript">');
      w.document.writeln('<!--');
      w.document.writeln('function SymError()');
      w.document.writeln('{ return true; }');
      w.document.writeln('window.onerror = SymError;');
      w.document.writeln('//-->');
      w.document.writeln('</script>');
      w.document.writeln('<script language="JavaScript">');
      w.document.writeln('// no right click script');
      w.document.writeln('var message="";');
      w.document.writeln('function clickIE() {if (document.all) {(message);return false;}}');
      w.document.writeln('function clickNS(e) {if');
      w.document.writeln('(document.layers||(document.getElementById&&!document.all))');
      w.document.writeln('{');
      w.document.writeln('if (e.which==2||e.which==3) {(message);return false;}}}');
      w.document.writeln('if (document.layers)');
      w.document.writeln('{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}');
      w.document.writeln('else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}');
      w.document.writeln('document.oncontextmenu=new Function("return false")');
      w.document.writeln('</script>');
	w.document.writeln("<SCRIPT language=javascript>function checksize() { if (document.images[0].width+50 > screen.width-10) {sw=screen.width-10} else {sw=document.images[0].width+50}; if (document.images[0].height+50 > screen.height-50) {sh=screen.height-50} else {sh=document.images[0].height+50}; if (document.images[0].complete) { window.resizeTo(sw,sh); window.focus();} else { setTimeout('check()',250) } }");
      w.document.writeln("</SCRIPT>");
      w.document.writeln("</HEAD>");
	w.document.writeln("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
      w.document.writeln("<TABLE width=100% height=100% border=0><tr><td align=center valign=center>");
if (img=='/courriel.gif'||img=='/e_courriel.gif'||img=='/s_courriel.gif') { 
      w.document.writeln("<IMG src='"+img+"' border=0>") }
else {w.document.writeln("<IMG src='photo/"+img+"' border=0>") };
      w.document.writeln("</TD></TR></TABLE>");
	w.document.writeln("</BODY></HTML>");
	w.document.close();
}

// no right click script
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

