<!--

// Skrypt pochodzi z witryny www.techagra.com
// autor: Pawel Owczarek
// Wszelkie prawa zastrzezone

var nn = (navigator.appName.toLowerCase() == "netscape") ? true : false;
var ie = (navigator.appName.toLowerCase() == "microsoft internet explorer") ? true : false;
var op = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
if (op) ie=false;
var p1 = ie ? "document.all['" : "document.getElementById('";
var p2 = ie ? "']." : "').";


function preload(name,pic) 
  {
  eval(name+" = new Image()");
  eval(name+".src = '"+pic+"'");
  }


function rollover(name,pic)
  {
  var zmienna;
  if (ie) document.all[name].src = pic;
  if (nn || op) document[name].src = pic;
  }


function pic(nazwa_okna,gdzie,xres,yres)
  {
  nowe = window.open("","Display", "toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars=0, resizable=0, copyhistory=0, width="+xres+",height="+yres);
  nowe.document.write("<HTML><HEAD><TITLE>"+nazwa_okna);
  nowe.document.write("</TITLE></HEAD><BODY BGCOLOR=000000  leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
  nowe.document.write("<img src="+gdzie+"></BODY></HTML>");
  nowe.document.close;
  }


function htm(nazwa,adres,xres,yres,scroll)
  {
  window.open(adres,nazwa, "toolbar=0, location=0, directories=0, status=0,menubar=0, scrollbars="+scroll+", resizable=0, copyhistory=0, width="+xres+",height="+yres);
  }

function replaceAll (str,from,to ) 
  {
  var idx = str.indexOf( from );
  while ( idx > -1 ) 
    {
    str = str.replace( from, to ); 
    idx = str.indexOf( from );
    }
  return str;
  }

function send_mail(to,subj,body)
  {
  body = replaceAll(body,"|","%0A");
  text = "mailto:" + to + "?subject=" + subj + "&amp;body=" + body;
  text = replaceAll(text,'±','¹');
  text = replaceAll(text,'¡','¥');
  text = replaceAll(text,'¶',unescape('%9C'));	
  text = replaceAll(text,'¦',unescape('%8C'));	
  text = replaceAll(text,'¼',unescape('%9F'));	
  text = replaceAll(text,'¬',unescape('%8F'));

  location.href=text;
  }

function back(adres)
  {
  opener.location=adres;
  self.blur();
  }


//-->

