/* *************************************************
*
*  © 2001 Etensity, Inc.
*	Popup Window code (in JavaScript)
*		basic open/close version
*
*	Updated:	May 7, 2001
*	By:		Creative Development (Vienna)
*
*************************************************** */

function popupFAQ(filename) {
	// Show FAQ popup window based on features provided
	
	faq_window = window.open( filename, "faq_window", "left=110,top=90,width=375,height=280,resizable=1,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");
	faq_window.focus();
}

function popupEXP(filename) {
	faq_window = window.open( filename, "faq_window", "left=110,top=90,width=450,height=300,resizable=1,scrollbars=1,toolbar=0,status=0,location=0,directories=0,menubar=0");
	faq_window.focus();
}

function popupNAV(filename) {
	faq_window = window.open( filename, "faq_window", "left=10,top=10,width=755,height=500,resizable=0,scrollbars=1,toolbar=1,status=0,location=0,directories=0,menubar=0");
	faq_window.focus();
}


function popupHelp(filename) {
// Show Help Web Site popup window based on features provided

	var browser = navigator.appName.substring(0,8);
	if (browser == "Netscape")
		help_window = window.open( filename, "help_window", "left=120,top=50,width=800,height=530,resizable=1,scrollbars=1,toolbar=1,status=1,location=1,directories=1,menubar=1");
	else 
		help_window = window.open( filename, "help_window", "left=120,top=50,width=800,height=675,resizable=1,scrollbars=1,toolbar=1,status=1,location=1,directories=1,menubar=1");
	
	help_window.focus();
}

function ClosePopup(filename) {
	// Close window from itself or opener

	if (!filename) {
		self.close();
	} else if (filename == "opener") {
		if (self.opener.open && !self.opener.closed) self.opener.close();
	} else {
		if (filename.lastIndexOf('_window') > 0) win = filename
			else win = getNameRoot(filename) + '_window';
		if (eval('window.' + win + ' && ' + win + '.open && !' + win + '.closed'))
			eval(win + '.close()');
	}
}

function NewPage(newURL) {
	// Changes main window to a new page and closes the popup
	self.opener.location.href = newURL;
	ClosePopup();
}