// JavaScript Document
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}



function dodajDoUlubionych() 
{
	title = "Paulmann";
	url = "http://www.paulmann.pl";
	
	if (window.sidebar)
		window.sidebar.addPanel(title, url,"");// Mozilla Firefox Bookmark
	else if( window.external )
		window.external.AddFavorite( url, title); // IE Favorite
	else if(window.opera && window.print)
		return true; // Opera Hotlist

	return;
}

NS4 = (document.layers) ? true : false;


function checkEnter(event)
{     
	var code = 0;
	
	if (NS4)
		code = event.which;
	else
		code = event.keyCode;
	if (code==13)
		document.formSzukaj.submit();
}
