function wg_rnd() { 

 var most = new Date();

 var x = Math.floor(Math.random()*100000*10000 + (most.getTime()%(1e5))/10);
 return x;
}

function wg_ujablak(url,szelesseg,magassag) {
   window.open(url,'ujablak'+wg_rnd(), 'toolbar=no,location=0,resizable=1,status=0,scrollbars=auto,menubar=no,width='+szelesseg+',height='+magassag+',left=' + ((screen.width-szelesseg)*0.5) + ',top=' + ((screen.height-magassag)*0.5)); 
}

function wg_ujablak_scroll(url,szelesseg,magassag) {
   window.open(url,'ujablak'+wg_rnd(), 'toolbar=no,location=0,resizable=1,status=0,scrollbars=yes,menubar=no,width='+szelesseg+',height='+magassag+',left=' + ((screen.width-szelesseg)*0.5) + ',top=' + ((screen.height-magassag)*0.5)); 
}
