function markButton(sdr, dest_name) {
  if (sdr != null) {
    sdr.src = 'image/'+dest_name;
    return true;
  }
  return false;
}

function RequestInfoFull(adr) {    
    okno2 = window.open("","okno2","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,fullscreen=1");
    okno2.document.write("<HEAD><TITLE>Wczytuję serwis...</TITLE></HEAD>");
    okno2.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję serwis. Proszę czekać...</B></BIG></CENTER></font>');
    okno2.focus();
    okno2.location.href=""+adr;
};

function RequestInfo(adr, w, h) {    
    if (w == 0) w = screen.availWidth * (2/3);
    if (h == 0) h = screen.availHeight * (1/3);
    okno = window.open("","okno","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,width="+w+",height="+h+",left="+(screen.availWidth - w) / 2+",top="+(screen.availHeight - h) / 2);
    okno.resizeTo(w, h + 30);
    okno.document.write("<HEAD><TITLE>Wczytuję serwis...</TITLE></HEAD>");
    okno.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję serwis. Proszę czekać...</B></BIG></CENTER></font>');
    okno.focus();
    okno.location.href=""+adr;
};

function RequestInfo1(adr, w, h) {    
    if (w == 0) w = screen.availWidth * (2/3);
    if (h == 0) h = screen.availHeight * (1/3);
    okno1 = window.open("","okno1","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,dependent=1,hotkeys=0,scrollbars=1,titlebar=0,z-lock=1,width="+w+",height="+h+",left="+(screen.availWidth - w) / 2+",top="+(screen.availHeight - h) / 2);
    okno1.resizeTo(w, h + 30);
    okno1.document.write("<HEAD><TITLE>Wczytuję serwis...</TITLE></HEAD>");
    okno1.document.write('<font size="2" face="Verdana"><CENTER><BIG><B>Wczytuję serwis. Proszę czekać...</B></BIG></CENTER></font>');
    okno1.focus();
    okno1.location.href=""+adr;
};

function test1(sdr1) {
  sdr1.style.backgroundColor = "#3E9AED"
  sdr1.style.cursor = 'hand'    
  
}
function test2(sdr1) {
  sdr1.style.backgroundColor = "" 
  sdr1.style.cursor = 'hand'  
}
function test3(src) {
	RequestInfo(src,620,460);
	//document.location.href=src;
}

function test4(src) {
//	RequestInfo(src,620,460);
	document.location.href=src;
}

function printit() {
window.print();
}

function wydrukOferta(src) {
  RequestInfo1('/search/print.php?d=v&nrof='+src, 630, 450);
}
