function _loadimg(link)
{
  window.open("view.php?file="+link,"Powiększenie","left=0,top=0,width=200,height=100,toolbars=no");
}

function login(theForm)
{

  if (theForm.login_username.value == "")
  {
    alert("Podaj użytkownika (adres e-mail)");
    theForm.login_username.focus();
    return (false);
  }

  if (theForm.secretkey.value == "")
  {
    alert("Podaj hasło do konta e-mail");
    theForm.secretkey.focus();
    return (false);
  }
  return (true);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function flash(filename,w,h,kolor) { 

		var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '" id="intro_blue" align="middle" bgcolor="' + kolor + '">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="' + filename + '" /><PARAM NAME=wmode VALUE=transparent><param name="quality" wmode="transparent" value="high" /><param name="scale" value="noscale" /><embed src="' + filename + '" quality="high" wmode="transparent" scale="noscale" width="' + w + '" height="' + h + '" name="xxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" bgcolor="' + kolor + '" /><param name=bgcolor value="' + kolor + '" />'
		+ '</object>';

		majorVersion=8;
		minorVersion=8;
//		installinfo='<div style="margin-top: 170px; text-align: center;"><style>body { background: #ffffff; }</style><a href="https://www.macromedia.com/go/getflashplayer" target="_blank" style="font-family: Tahoma; color: #000000; text-decoration: none; font-size: 11px;">Strona wymaga zainstalowanego pluginu<br /><b>Flash Player</b> w wersji 8 lub wyższej.<br/><br/><img src="images/get_flash.jpg" alt="pobierz Flash Playera" border="0" /><br/><br/>Pobierz wtyczkę <strong>Flash Player</strong></a><br /><br /><br />'; 
		installinfo='<embed src="' + filename + '" quality="high" wmode="transparent" scale="noscale" width="' + w + '" height="' + h + '" name="xxx" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="' + kolor + '" /><param name=bgcolor value="' + kolor + '" />'; 
		if(navigator.product=='Gecko' || navigator.userAgent.indexOf('Opera')!=-1) {
		 if(plugin=navigator.plugins["Shockwave Flash"]) {
		  if(majorVersion > parseInt(plugin.description.substr(plugin.description.indexOf(".")-1, 1))
		  || minorVersion > parseInt(plugin.description.substr(plugin.description.length-2)) )
			document.write(installinfo);
		  else document.write(oeTags);
		 } else {
			document.write(installinfo); 
		 }
		}
		else document.write(oeTags);
		//-->
}


function produkty(targ,selObj,restore){ //v3.0
  eval(targ+".location='index.php?symbol=szukaj&id="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}