// windows.js - v0.2 - 29 July 2002 - MP
// JavaScript functions for window operations. window.open('/external.asp?' + url, 'osi_external', strFeatures);


function openExternal(url) {
	// Opens a new URL in a frameset with OSI branding.
	var strFeatures = "directories=no,height=600,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,width=800,scrollbars=yes";
	window.open(url, 'osi_external', strFeatures);
}

function openInternal(url) {
	// Opens a new page in a new window.
	var strFeatures = "directories=no,height=450,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes,width=540";
	window.open(url, 'osi_internal', strFeatures);	
}

function openPics(url) {
	// Opens a new page in a full sized window.
	var strFeatures = "directories=no,location=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes,toolbar=yes";
	window.open(url, 'osi_pics', strFeatures);
}

function closeIt() {
	// Closes the current window and raises the previous window.
	// Code to reload the OSI homepage in the previous window:
	// window.parent.opener.location = "/index.asp";
	window.parent.close();
	window.parent.opener.focus();
}
