//configure interval btw flash (1000=1 second)
var speed=300
function flashit(){
var crosstable=document.getElementById? document.getElementById("myex1") : document.all? document.all.myex1 : ""
 if (crosstable){
  if (crosstable.style.borderColor.indexOf("silver")!=-1)
  crosstable.style.borderColor="red"
  else
  crosstable.style.borderColor="silver"
 }
}
setInterval("flashit()", speed)


// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}


status_text();function status_text()
{window.status="PEC Sp. z o.o. Biała Podlaska, tel.083 342-55-98";setTimeout("status_text()",1);}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function okno(p,s,w) {
    ww=open('','','width='+s+',height='+w+',left=0,top=0');
    with(ww.document) {
      write('<html><head><title>PEC - zdjęcie:</title><META http-equiv="imagetoolbar" content="no"></head><body bgcolor=navy topmargin=0 leftmargin=0>');
      write('<img src="'+p+'" width='+s+' height='+w);
      write(' onMousedown="self.close()"> </body></html>');
      close();
    }
}

function img_okno(p,s,w)  {
    LeftPosition = (screen.width) ? (screen.width-s)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-w)/2 : 0;
    iw=open('','','width='+s+',height='+w+',left='+LeftPosition+',top='+TopPosition);
    with(iw.document) {
      writeln('<html><head><title>Foto</title>');
      writeln('<body bgcolor=navy topmargin=0 leftmargin=0 style="background: url(trwa_3.gif) center no-repeat fixed;">');
      writeln('<img src="'+p+'" width='+s+' height='+w);
      writeln(' onMousedown="self.close()"><br></body></html>');
      close();
    }
}

function Chmurka(T,t){
  T.title='';
  T.parentNode.lastChild.style.display=t?'block':'none';
}

