function openWindow( url, winName, iWidth, iHeight ) {
		
	this.name = "MAINPAGE";
	popup = window.open( url, winName, "status=no,width=" + iWidth + ",height=" + iHeight + ",resizable=yes,toolbar=no,scrollbars=yes" );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}
// this function doesn't allow the chat window to be resizable
//chat window cannot be resizable because reloading of the applet will
//kick the user out of the chat session
function openChatWindow( url, winName, iWidth, iHeight ) {
		
	this.name = "MAIN_PAGE";
	popup = window.open( url, winName, "status=no,width=" + iWidth + ",height=" + iHeight + ",resizable=no,toolbar=no,scrollbars=yes" );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}
// this function acts in the same manner as the above, except that it inserts the toolbar to allow printing
function openPrintWindow( url, winName, iWidth, iHeight ) {
		
	this.name = "MAIN_PAGE";
	popup = window.open( url, winName, "status=no,width=" + iWidth + ",height=" + iHeight + ",resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes" );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}
// this function acts in the same manner as the above, except specific to in
function openIndexWindow( url ) {
		
	this.name = "MAIN_PAGE";
	if (url == 1) {
		url = "http://www.advisorsadvantagetrust.com/Content/indexlinkedgicrateretrieval/ILGICSingleSearchForm_Fre.asp"
	} else {
		url = "http://www.advisorsadvantagetrust.com/Content/indexlinkedgicrateretrieval/ILGICSingleSearchForm_Eng.asp"
	}
	popup = window.open( url, "winName", "status=no,width=650,height=350,resizable=yes,toolbar=yes,scrollbars=yes" );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}
