function urlwindow(url,w,h){
window.open(url,'JavaScript','toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=yes,directories=no,status=no,resizable=no,top=0,width='+w+',height='+h+'');
}

function selecturl(s){
var gourl = s.options[s.selectedIndex].value;
window.top.location.href = gourl;
}




function popup(pic,title,pos){ 
img = window.open('',title,pos); 
img.document.open();
img.document.write("<head><title>"+title+"</title></head><body leftmargin=0 topmargin=0><IMG src="+pic+"></body>");
img.document.close(); 
img.focus(); 
}



function setCheckboxes(the_form, the_checkboxes, do_check){
var elts = document.forms[the_form].elements[the_checkboxes + '[]'];
var elts_cnt = (typeof(elts.length) != 'undefined')
? elts.length
: 0;

if(elts_cnt){  for(var i = 0; i < elts_cnt; i++){ elts[i].checked = do_check; }  }
else{ elts.checked = do_check; }
return true;
}


function flash(filename,w,h,color) { 
var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + w + '" height="' + h + '" align="middle" bgcolor="' + color + '">'
+ '<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 + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="' + color + '" /><param name=bgcolor value="' + color + '" />'
+ '</object>';

majorVersion=8;
minorVersion=8;
installinfo='<a href="https://www.macromedia.com/go/getflashplayer" target="blank">Strona wymaga zainstalowanego pluginu <b>Flash Player</b> w wersji 8 lub wy¿szej.'; 
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);
//-->
}

