function markButton(sdr, dest_name) {
  if (sdr != null) {
    sdr.src = dest_name;
    return true;
  }
  return false;
}

function showPaint(link){
    w = screen.availWidth;
    h = screen.availHeight;
 
    okno = window.open("","oknoz","fullscreen=no, scrollbars=yes, left=0, top=0"); 
//    okno = window.open("","oknoz","fullscreen=yes, scrollbars=yes");
    okno.resizeTo(w,h);
    okno.document.write("<HEAD>");
    okno.document.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
    okno.document.write("<TITLE>Wczytuję obraz...</TITLE></HEAD>");
    okno.document.write("<body bgcolor=#FFFFFF>");
    okno.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję obraz. Proszę czekać...</B></BIG></CENTER></font></body>');
    okno.focus();
    okno.location.href='' + link;
}; 

function showGallery(link){
    w = screen.availWidth;
    h = screen.availHeight;
//    okno = window.open("","oknoz","fullscreen=yes, scrollbars=yes");
    okno = window.open("","","fullscreen=no, scrollbars=yes");

 //   okno = window.open("","");
    okno.moveTo(0,0);
    okno.resizeTo(w,h);

    okno.document.write("<HEAD>");
    okno.document.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
    okno.document.write("<TITLE>Wczytuję obraz...</TITLE></HEAD>");
    okno.document.write("<body bgcolor=#FFFFFF>");
    okno.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję obraz. Proszę czekać...</B></BIG></CENTER></font></body>');
    okno.focus();
    okno.location.href='' + link;
}; 


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;
  }
 }
}

function disableRightClick() {
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

  if (document.layers) 
  {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

  document.oncontextmenu=new Function("return false")
}


disableRightClick();

