m2u-upass-admin / WebContent / js / popup.js @ 36:074db98310b9
History | View | Annotate | Download (907 Bytes)
1 |
// JavaScript Document
|
---|---|
2 |
function popUp(strURL,strType,strHeight,strWidth) { |
3 |
var strOptions=""; |
4 |
if (strType=="console") strOptions="status,scrollbars,resizable,height="+strHeight+",width="+strWidth; |
5 |
if (strType=="fixed") strOptions="status,scrollbars,height="+strHeight+",width="+strWidth; |
6 |
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth; |
7 |
window.open(strURL, 'newWin', strOptions);
|
8 |
} |
9 |
|
10 |
function demoPopUp(strURL,strType,strHeight,strWidth) { |
11 |
var strOptions=""; |
12 |
if (strType=="console") strOptions="status,scrollbars,resizable,height="+strHeight+",width="+strWidth; |
13 |
if (strType=="fixed") strOptions="status,scrollbars,height="+strHeight+",width="+strWidth; |
14 |
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth; |
15 |
window.open(strURL, 'demoPopUp', strOptions);
|
16 |
} |