1 |
function popup() { |
function popup(link) { |
2 |
//alert("open "+this.href+" in "+this.target); |
var target = 'popup'; |
3 |
window.open(this.href,this.target,'width=600,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); |
if (! link) link = this; |
4 |
|
if (link.target) target = link.target; |
5 |
|
//alert("open "+link.href+" in "+target); |
6 |
|
var popup_win = window.open(link.href,target,'width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); |
7 |
|
if (popup_win) { |
8 |
|
popup_win.moveTo((screen.width/2),(screen.height/2)-200); |
9 |
|
popup_win.focus(); |
10 |
|
} |
11 |
return false; |
return false; |
12 |
} |
} |