// JavaScript Document //tarcza(); function geto(id){ return document.getElementById(id); } function add0(t){ ans=t; if(t<10) ans="0"+t; return ans; } function debug(txt){ debug_win.innerHTML=txt; } function telem(obj,top,left,text){ s=obj.style; s.position="absolute"; s.top=top; s.left=left; s.textAlign="center"; s.fontSize="12px"; obj.innerHTML=text; } function hlp_open(){ geto('help').style.display="inline"; } function hlp_close(){ } function gwiazdy(){ for(i=0;i<500;i++){ x=Math.random()*1300; y=Math.random()*700; if( y<150 && x >150 ) continue; g=document.createElement('DIV'); g.style.left=x; g.style.top=y; g.className="gwiazda"; if( Math.random()<0.1 ){ g.style.width="2px"; g.style.height="2px"; } if( Math.random()>0.95 ){ g.style.width="3px"; g.style.height="3px"; } document.getElementById('bdy').appendChild(g); } } gwiazdy(); /* pół ellipsa rysowana pionowymi divami, ystart - początek divów, h-wysokosc div'a, w-szerokosc */ //var c_ell_tab=new Array(); function CEllipseV(cont,ystart,w,h){ this.tab=new Array(); for(i=0;i0 to divy są rysowane po prawej i w lewo } function modify_b(b){ for(i=0;i