// JavaScript Document

// Get screen resolution and set new size for use in opening a new window with JavaScript
var SmallScrW = 600;
var SmallScrH = 480;
//document.write(" Small Width: " + SmallScrW);
//document.write(" Small Height: " + SmallScrH);

//NOTE: Set screen width to screen height (better for PDF viewing)
var ThisScrW = screen.height;
var ThisScrH = screen.height;
//document.write(" This Width: " + ThisScrW);
//document.write(" This Height: " + ThisScrH);

var ScrW = parseInt(((ThisScrW-SmallScrW)/ThisScrW/2+SmallScrW/ThisScrW)*ThisScrW);
var ScrH = parseInt(((ThisScrH-SmallScrH)/ThisScrH/2+SmallScrH/ThisScrH)*ThisScrH);
//document.write("New Width: " + ScrW);
//document.write("New Height: " + ScrH);

var ScrWsm = parseInt((((ThisScrW-SmallScrW)/ThisScrW/2+SmallScrW/ThisScrW)*ThisScrW)/2);
var ScrHsm = parseInt((((ThisScrH-SmallScrH)/ThisScrH/2+SmallScrH/ThisScrH)*ThisScrH)/2);
//document.write("New Width: " + ScrWsm);
//document.write("New Height: " + ScrHsm);

//not functioning properly; sizes not read: width=ScrW,height=ScrH
function newWindowLoc(){
window.open(urlFile, winName, 'location=no,status=no,scrollbars=yes,resizable=yes,width=ScrW,height=ScrH');
//window.open(test.htm, windowname, 'width=400,height=200,scrollbars=yes');
}

//not functioning properly; sizes not read: width=ScrWsm,height=ScrHsm
function newWindowNews(){
window.open(urlFile, winName, 'location=no,status=no,scrollbars=yes,resizable=yes,width=400,height=400');
}

