blok pravehotlacitka mysi na generovanem okne?

Mam vyvorene stanecky kde se pres java scrupt generuje nove okno s urcitou promenou vsechno je v pohode jen potrebuju do zdrojaku pridat kod pro zablokovani praveho tlacitka mysi :) vim ze ted mnozi svas reknou proc to je zbytecne stejne je to na nic ale ja to tam skratka chci :) tady je zdroj tak pokud bude nekdo tak hodnej a poradi jak to do toho skloubit budu moc rad :)

<script language="JavaScript">
function modalWindow(file ,title,w ,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
_w = w+0;
if (_w < 20) _w = 2;
_h = h+70;
if (_h < 1) _h = 2;
myWin=open("","PictureWindow","width="+_w+",height="+_h+",status=no,toolbar=no,top="+TopPosition+",left="+LeftPosition+",menubar=0,menubar=no,scrollbars=no");
myWin.document.open();
myWin.document.write("<head><title>"+title+"</title></HEAD>");
myWin.document.write("<body bgcolor=\"#718ECA\" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>");
myWin.document.write("<center><embed src=" +file+ " border=0 width=" +w+ " height=" +h+ " </center>");
myWin.document.write("<p align=\"center\">");
myWin.document.write("<a href=\"javascript: window.close();\" onmouseover=\"document['fpAnimswapImgFP5'].imgRolln=document['fpAnimswapImgFP5'].src;document['fpAnimswapImgFP5'].src=document['fpAnimswapImgFP5'].lowsrc;\" onmouseout=\"document['fpAnimswapImgFP5'].src=document['fpAnimswapImgFP5'].imgRolln\"> ");
myWin.document.write("<img border=0 src=\"../image/nazpet1.gif\" id=fpAnimswapImgFP5 name=fpAnimswapImgFP5 dynamicanimation=fpAnimswapImgFP5 lowsrc=\"../image/nazpet2.gif\" width=70 height=39></a></p>");
myWin.document.write("</body>");
myWin.document.close();
}
</script>
"....ale ja to tam skratka chci :) ....."

:-)))))) , a ja ti to nereknu. Je to osklive a basta. ;-)
To mi je jasne :))) nemuzes mi prece ric co sam nevis ze ano :)))
spravne ;-)

(btw, zkus ten kod, kterej ma to menu 'zakazat' (haha) dat do fce onload() toho novyho vokna - jestli to nezvladnes, tak mas proste smulu ;-))

<script>
function pravyklik() {
if (event.button==2) {
alert("Nestlacaj prave tlacitko!")
}
}
document.onmousedown=pravyklik
</script>
...jestli by to nechtelo si koupit nejakou ucebnici javascriptu nebo si neco o nem najit na webu a stahnout.

prave tlacitko mysi muzes samozrejme "zakazat" v javascriptu, ale ten se da zase zakazat/obejit na strane klienta, takze...
diky vsem uy jsem to vyresil :))


<script language="JavaScript">
function modalWindow(file ,title,w ,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
_w = w+0;
if (_w < 20) _w = 2;
_h = h+70;
if (_h < 1) _h = 2;
myWin=open("","PictureWindow","width="+_w+",height="+_h+",status=no,toolbar=no,top="+TopPosition+",left="+LeftPosition+",menubar=0,menubar=no,scrollbars=no");
myWin.document.open();
myWin.document.write("<head><title>"+title+"</title></HEAD>");
myWin.document.write("<body onmousedown=\"if(event.button == 2) alert('<? echo"Počet akčních her: $celkem"; ?>')\" bgcolor=\"#718ECA\" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>"); // tohle je ono tak mi to staci funguje to podobne jak jsem chtel :o)
myWin.document.write("<center><embed src=" +file+ " border=0 width=" +w+ " height=" +h+ " </center>");
myWin.document.write("</body>");
myWin.document.close();
}
</script>