// JavaScript Document
var nw='';
function wyslij(name){
	document.getElementById('order').value=name;
	document.getElementById('formik').submit();
}

function re(number){
	
	document.getElementById('str').value=number;
	document.getElementById('formik').submit();
}



function popUp(url,windowName,windowTitle,closeOnClick,width,height,t){
  	if(!window.opera&&nw)
		nw.close();
  	if(!url)
		return
    function readSize(){
		if(t.complete){
			showPopup(t.width,t.height);
		}
		else setTimeout(readSize,1e2)
	}
    function showPopup(w,h){
		nw=window.open('',windowName||'','width='+(width||w)+',height='+(height||h));
		with(	window.open('',windowName||'','width='+(width||w)+',height='+(height||h)).document  ){
			
			open();
			write('<html><head><title>'+(windowTitle||'')+
			'</title></head><body style="margin:0;padding:0"><img src="'+url+
			'" style="display:block'+(closeOnClick?';cursor: pointer" onclick="self.close()" title="Zamknij okno"':'"')+
			'></body></html>');
			
			close();
		}
	}
	
    if(!width||!height)
		t=new Image(),t.src=url,readSize()
    else
		showPopup(width,height)
		
	
	//last=windowName;
}

window.onload = function () {
	document.getElementById('szukaj').focus();
	if(typeof(bShowPopup) != "undefined" && bShowPopup == true) {
		var oPopUp = window.open('szczeniaki.htm', 'Szczeniaki', 'width=400,height=600,left=100,top=60,scrollbars=no');
		oPopUp.focus();
	}
}