function przepisz(ch){  // przepisuje dane teleadresowe w formularzu zamówienia
  var pierwszy=new Array();  var drugi=new Array();
  pierwszy[0]=document.getElementById('imie');		drugi[0]=document.getElementById('imie2');
  pierwszy[1]=document.getElementById('nazwisko');	drugi[1]=document.getElementById('nazwisko2');

  pierwszy[2]=document.getElementById('ulica');		drugi[2]=document.getElementById('ulica2');
  pierwszy[3]=document.getElementById('nr');			drugi[3]=document.getElementById('nr2');
  pierwszy[4]=document.getElementById('kod');		drugi[4]=document.getElementById('kod2');
  pierwszy[5]=document.getElementById('miasto');	drugi[5]=document.getElementById('miasto2');
	
  if (ch.checked) for (i=0; i<drugi.length; i++)  drugi[i].value=pierwszy[i].value;
  else for (i=0; i<drugi.length; i++)  drugi[i].value='';
}

function show(path,w,h,styl){
//  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" height="'+h+'" width="'+w+'">');
//  document.write('<param name="allowScriptAccess" value="sameDomain" />');
//  document.write('<param name="movie" value="'+path+'">');
//  document.write('<param name="quality" value="high">');
//  document.write('<param name="wmode" value="transparent">');
  document.write('<embed style="'+styl+'" src="'+path+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="'+h+'" width="'+w+'"></embed>');
//  document.write('</object>');
}

    
function isDemoOk(){
   IsOk=true;
   bver=Math.round(parseFloat(navigator.appVersion) * 1000);
   if (navigator.appName.substring(0,8) == "Netscape"){
       if ((bver<5000) && (navigator.appVersion.indexOf("Mac")> 0)) IsOk=false;
       else if (bver<4060) IsOk=false;
     }
   if (navigator.appName.substring(0,9) == "Microsoft"){
      if(bver<4000) IsOk=false;
   }
   plugins=navigator.plugins;
   if (plugins!=null && IsOk==false){
     for(i=0;i!=plugins.length;i++)
       if((plugins[i].name.indexOf("1.0")<0) && (plugins[i].name.indexOf("Java Plug-in")>=0))
          IsOk=true;
   }
   return IsOk;
}
function openDemo(htmlFile,htmlWidth,htmlHeight){
var bua = navigator.userAgent;
     s = 'resizable=0,toolbar=0,menubar=0,scrollbars=0,status=0,location=0,directory=0,width=350,height=200';
     if(!isDemoOk()) open("http://www.turbodemo.com/error.html",'',s);
     else{
       if (bua.indexOf("Opera")!= -1) 
            window.open(htmlFile+".htm",'','width='+htmlWidth+',height='+htmlHeight+',top=10,left=10');
       else window.open(htmlFile+".htm",'','width='+htmlWidth+',height='+htmlHeight+',top=10,left=10');
     }
}

