
 var win_pix = null;
 var win_map = null;


 function map(URL,w,h) {
   if (win_map && win_map.open && !win_map.closed) { win_map.close(); }
   if( w=='' || w==0 ) { w = screen.width; }
   if( h=='' || h==0 ) { h = screen.height; }
   win_map = window.open(URL,"map","width="+w+",height="+h+",left="+(screen.width-w)/2+",top="+(screen.height-h)/2);
   win_map.focus();
 }

 function pix(URL,w,h) {
   if (win_pix && win_pix.open && !win_pix.closed) { win_pix.close(); }
   win_pix = window.open("","","width="+w+",height="+h+",left="+(screen.width-w)/2+",top="+(screen.height-h)/2);
   win_pix.document.writeln('<HTML><HEAD></HEAD>                                                          ');
   win_pix.document.writeln('<scr'+'ipt language="JavaScript">                                            ');
   win_pix.document.writeln('   var mess="All Right Reserved. 2006. LAZER-CENTRE.";                  ');
   win_pix.document.writeln('   function clickIE() { if (document.all) { return false; } }                ');
   win_pix.document.writeln('   function disableclick(e) {                                                ');
   win_pix.document.writeln('    if (document.all) {                                                      ');
   win_pix.document.writeln('     if (event.button==2||event.button==3) {                                 ');
   win_pix.document.writeln('      if (event.srcElement.tagName=="IMG") {                                 ');
   win_pix.document.writeln('       alert(mess);return false;                                             ');
   win_pix.document.writeln('      }                                                                      ');
   win_pix.document.writeln('     }                                                                       ');
   win_pix.document.writeln('    } else if (document.layers) {                                            ');
   win_pix.document.writeln('       if (e.which==3) { alert(mess); return false; }                        ');
   win_pix.document.writeln('    } else if (document.getElementById) {                                    ');
   win_pix.document.writeln('       if (e.which==3&&e.target.tagName=="IMG") { alert(mess);return false; }');
   win_pix.document.writeln('    }                                                                        ');
   win_pix.document.writeln('   }                                                                         ');
   win_pix.document.writeln('   function associateimages() {                                              ');
   win_pix.document.writeln('    for(i=0;i<document.images.length;i++) {                                  ');
   win_pix.document.writeln('     document.images[i].onmousedown=disableclick;                            ');
   win_pix.document.writeln('    }                                                                        ');
   win_pix.document.writeln('   }                                                                         ');
   win_pix.document.writeln('   if (document.all) {                                                       ');
   win_pix.document.writeln('    document.onmousedown=disableclick;                                       ');
   win_pix.document.writeln('   }                                                                         ');
   win_pix.document.writeln('   else if (document.getElementById) { document.onmouseup=disableclick; }    ');
   win_pix.document.writeln('   else if (document.layers) { associateimages(); }                          ');
   win_pix.document.writeln('   function disableselect(e) { return false; }                               ');
   win_pix.document.writeln('   function reEnable() { return true; }                                      ');
   win_pix.document.writeln('   document.onselectstart=new Function ("return false");                     ');
   win_pix.document.writeln('   if(window.sidebar) {                                                      ');
   win_pix.document.writeln('    document.onmousedown=disableselect;                                      ');
   win_pix.document.writeln('    document.onclick=reEnable;                                               ');
   win_pix.document.writeln('   }                                                                         ');
   win_pix.document.writeln('</scr'+'ipt>                                                                 ');
   win_pix.document.write('<BODY leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\
<TABLE cellpadding=0 cellspacing=0 border=0 width="100%" height="100%">\
<TR><TD width='+w+' height='+h+'><IMG SRC="'+URL+'" width='+w+' height='+h+' border=0></TD></TR>\
</TABLE></BODY></HTML>');
   win_pix.focus();
 }

