﻿function OpenPopup(URL, name) {
var width = 800; // set the width of the window here
var height = 600; // set the height of the window here
var centerWindow = true; //center new window on screen - true of false
// here are the settings for the position of the window, if centerWindow is set to false
var posX = 0; // pixels from left if not centered
var posY = 0; // pixels from right if not centered
// more options for the window...
var windowOptions = "";
windowOptions += "width="+width;
windowOptions += ",height="+height;
windowOptions += ",resizable=no"; // yes or no
windowOptions += ",scrollbars=no"; // yes or no
windowOptions += ",menubar=no"; // yes or no
windowOptions += ",toolbar=no"; // yes or no
windowOptions += ",directories=no"; // yes or no
windowOptions += ",location=no"; // yes or no
windowOptions += ",status=no"; // yes or no
windowOptions += ",left=no"; // yes or no
windowOptions += ",top=no"; // yes or no
// shouldn't have to edit the rest of this...
if (centerWindow == true) {
posX = ((screen.availWidth/2)-(width/2));
posY = ((screen.availHeight/2)-(height/2));
}
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(URL, name, windowOptions);
}

function OpenPopup2(URL, name) {
var width = 600; // set the width of the window here
var height = 800; // set the height of the window here
var centerWindow = true; //center new window on screen - true of false
// here are the settings for the position of the window, if centerWindow is set to false
var posX = 0; // pixels from left if not centered
var posY = 0; // pixels from right if not centered
// more options for the window...
var windowOptions = "";
windowOptions += "width="+width;
windowOptions += ",height="+height;
windowOptions += ",resizable=no"; // yes or no
windowOptions += ",scrollbars=no"; // yes or no
windowOptions += ",menubar=no"; // yes or no
windowOptions += ",toolbar=no"; // yes or no
windowOptions += ",directories=no"; // yes or no
windowOptions += ",location=no"; // yes or no
windowOptions += ",status=no"; // yes or no
windowOptions += ",left=no"; // yes or no
windowOptions += ",top=no"; // yes or no
// shouldn't have to edit the rest of this...
if (centerWindow == true) {
posX = ((screen.availWidth/2)-(width/2));
posY = ((screen.availHeight/2)-(height/2));
}
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(URL, name, windowOptions);
}
