16 lines
714 B
JavaScript
16 lines
714 B
JavaScript
function launchWin(page,name,height,width,trim,resize,scroll) {
|
|
var leftvalue = ((375) - (width / 2));
|
|
var topvalue = ((screen.availHeight / 2) - (height / 2));
|
|
if (trim) {
|
|
OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",toolbar=yes,menubar=yes,location=yes,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);
|
|
} else {
|
|
OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",toolbar=no,menubar=no,location=no,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);
|
|
}
|
|
OpenWin.focus();
|
|
}
|
|
|
|
// suppress any js errors
|
|
function stoperror(){
|
|
return true
|
|
}
|
|
window.onerror=stoperror |