//This function allows windows to be opened in a to a size defined within the arguments of the script.
function openWindow(strUrl, intWidth, intHeight) { 
    // strUrl is the name of the URL to open.
    // intWidth is the width of the window to open
    // intHeight is the heigth of the window to open
    if (intWidth == '') {
        intWidth = 580; // Set a default width if none spacified
    }
    if (intHeight == '') {
        intHeight = 400; // Set a default Height if none spacified
    }
    var newWin = window.open(strUrl, 'PopUpWindow', 'width=' + intWidth + ',height=' + intHeight + ',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    newWin.focus(); // Makes the new window the topmost window if it is already open.
}



