// WindowDisplay.js -- Javascript functions to display document in pop-up window 

function windowpopup (DocumentURL) {
	window.open(DocumentURL,"Document","width=800,height=" + Math.max(screen.availHeight-150,500).toString() +  ",directories=no,location=no,menubar=yes,toolbar=no,resizable=yes,status=yes,scrollbars=yes");
}

//function windowpopupfull (DocumentURL) {
//	window.open(DocumentURL,"WebSite","width=800,height=" + Math.max(screen.availHeight-150,500).toString() +  ",directories=no,location=yes,menubar=yes,toolbar=yes,resizable=yes,status=yes,scrollbars=yes");
//}
function windowpopupfull (DocumentURL) {
	window.open(DocumentURL,"WebSite","width=" + Math.max(screen.availWidth-200,800).toString() +  ",height=" + Math.max(screen.availHeight-150,500).toString() +  ",directories=no,location=yes,menubar=yes,toolbar=yes,resizable=yes,status=yes,scrollbars=yes");
}