/*
  (c) Marek Malendowski 2009 
  www.cena-wody.pl www.zimz.pl
*/

/*	var szer = screen.width;
	var wyso = screen.height;
	window.onload = function() {
	document.getElementById("sz").value = szer;
	document.getElementById("wy").value = wyso;  */

function stop() {
  /* hiden kod - niestety ten kod jest tylko dla mnie */
}

function start() {
    /* hiden kod - niestety ten kod jest tylko dla mnie */
}

function ukryj() {
    /* hiden kod - niestety ten kod jest tylko dla mnie */
}

function analiza(G_INCOMPAT) {
    /* hiden kod - niestety ten kod jest tylko dla mnie */
}
function wejscie(pole) {
    sprawdz(pole);
    if( pole.value=='' || pole.value=='wpisz szukaną nazwę' ){
	pole.value='';
    }
    pole.style.color = "#0000FF";
    pole.style.backgroundColor = "#D4FFD4";
    pole.style.fontSize = "11pt";
    // pole.style.fontWeight = "bold"; 
    
}	
function wyjscie(pole) {
	if(pole.value=='' || pole.value=='wpisz szukaną nazwę'){
	   pole.value='wpisz szukaną nazwę';
	   pole.style.backgroundColor = "#EDEDED";
 	   pole.style.color = "#969696";  
 	   pole.style.fontSize = "10pt";
 	   // pole.style.fontWeigh = "bold";    
 	   // pole.value='';
	} 	
}
function sprawdz(pole) {

  if (navigator.appName=="Microsoft Internet Explorer"
      && navigator.userAgent.indexOf("Opera")==-1) {
    typ = "block";
  } else {
    typ = "table-row";
  }
  var przycisk = document.getElementById("prsz");
  if(pole.value=='' || pole.value=='wpisz szukaną nazwę' || pole.value.length < 3 ){
     przycisk.value = "szukaj";       
     przycisk.style.backgroundColor = "#EDEDED";   
     przycisk.style.display = "none";
  }  else {
     przycisk.value = "Szukaj";      
     przycisk.style.backgroundColor = "#99CCFF";      
     przycisk.style.display = typ;
  }

}  

/* koniec skryptu */

