function openWin(sURI, sWN, wT, lt, ht) {
var winLeft = (screen.availWidth - lt) / 2;
var winTop = (screen.availHeight - ht) / 2;
switch (wT) {
case 1:
{
window.open(sURI, sWN, "toolbar=0, menubar=0, location=0, status=0, width=" + lt + ", height=" + ht + ", scrollbars=0, resizable=no, left=" + winLeft + ", top=" + winTop);
break;
}
case 2:
{
window.open(sURI, sWN, "resizable=no,scrollbars=yes, menubar=0, location=0, status=0, width=" + lt + ", height=" + ht + ", left=" + winLeft + ", top=" + winTop);
break;
}
case 3:
{
if (arguments.length > 4)
return window.open(sURI, sWN, "toolbar=0, menubar=0, location=0, status=0, width=" + lt + ", height=" + ht + ", scrollbars=0, resizable=no, left=" + arguments[5] + ", top=" + arguments[6], "true");
else
return window.open(sURI, sWN, "toolbar=0, menubar=0, location=0, status=0, width=" + lt + ", height=" + ht + ", scrollbars=0, resizable=no", "true");
break;
}
case 4:
{
return window.open(sURI, sWN, "toolbar=1, menubar=1, location=0, status=1, width=" + lt + ", height=" + ht + ", scrollbars=yes, resizable=no, left=0, top=0");
break;
}
}
return true;
}
Hiç yorum yok:
Yorum Gönder