//funkcja pokazujaca twoj status gg
function statusgg() {
  obraz = new Image();
  data = new Date();
  m = data.getTime();
  obraz.src="http://status.gadu-gadu.pl/users/status.asp?id=6227213&"+m;
  document.getElementById('gg').src=obraz.src;
  setTimeout("statusgg()",5*1000);
}
function wyslij(t) {
  maska = /^[0-9a-z_.-]+@([0-9a-z-]+.)+[a-z]{2,4}$/i;
  if (maska.test(t.mail.value)==false) {
    alert("Wpisz poprawny adres e-mail!");
    t.mail.focus();
    return false;
  }
 
  t.target="odp";
  odp = window.open("","odp","width=300,height=300");
  odp.moveTo(50, 50)
  odp.focus();
  return true;
}
//funkcja odnajdujaca autora po pierwszych wpisanych literach
function szukaj(f) {
  var szukane = f.poleszukaj.value;
  var lista = f.autor.options;
  if (szukane=="") {
    lista[0].selected=true;
    return;
  }
 
  for (var i=0;i<lista.length;i++) {
    if ((new RegExp("^"+szukane,"i")).test(lista[i].label)) {
       lista[i].selected=true;
    }
  }
}

//okno wyszarzone na cala strone.
function rysuj() {
  var wysokosc = szerokosc = topx = topy = 0;
  // wspolrzedne lewego, gornego rogu
  if (window.pageXOffset != null) topx = window.pageXOffset;
  else if (document.body.scrollLeft != null) topx = document.body.scrollLeft
  if (window.pageYOffset != null) topy = window.pageYOffset;
  else if (document.body.scrollTop != null) topy = document.body.scrollTop;
  // wielkosc obszaru okna
  if (typeof(window.innerWidth)=='number') {
    szerokosc = window.innerWidth;
    wysokosc = window.innerHeight;
  } else if(document.documentElement && (document.documentElement.clientWidth
    || document.documentElement.clientHeight)) {
    szerokosc = document.documentElement.clientWidth;
    wysokosc = document.documentElement.clientHeight;
  } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
    szerokosc = document.body.clientWidth;
    wysokosc = document.body.clientHeight;
  }
 
  obj.style.top = topy + "px";
  obj.style.left = topx + "px";
  obj.style.width = szerokosc + "px";
  obj.style.height = wysokosc + "px";
  obj.style.visibility = "visible";
  obj2.style.width = szerokosc + "px";
  obj2.style.height = wysokosc + "px";
}
obj = document.getElementById("warstwa");
obj2 = document.getElementById("td");
 
function przeskaluj() {
  if (obj.style.visibility=="visible") rysuj();
}



