function bringEmail(myHeight, myWidth, myURL) 
{
//  this code written by David Hartzell, copyright (c) 2003
//  This routine will open a window centered in the screen, with
//  scrollbars if the screen is not big enough.
//  parameters: myHeight, height in pixels of the new window
//              myWidth, width in pixels of the new window
//              myRUL, the web page to open
//              return value, none (yet)
	var myTop;
	var myLeft;
	var theWindowParams;
	
	theWindowParams = 'dependent,resizable,scrollbars,';
	if (screen.availHeight - 10 < myHeight || screen.availWidth - 30 < myWidth)
	{	
		 if (screen.availHeight - 30 < myHeight) 
		 	{myHeight = screen.availHeight - 30};
 		 if (screen.availWidth - 10 < myWidth) 
		 	{myWidth = screen.availWidth - 10};
	};	
	myTop = (screen.availHeight - 15 - myHeight) / 2;
	myLeft = (screen.availWidth - 5 - myWidth) / 2;
	if (myTop < 1) {myTop = 1};
	if (myLeft < 1) {myLeft = 1};
	theWindowParams = theWindowParams +  
                      'height=' +  myHeight +
	                  ',innerHeight=' + myHeight + 
	                  ',width=' + myWidth +
					  ',innerWidth=' + myWidth + 
					  ',left=' + myLeft +
					  ',screenX=' + myLeft +
					  ',top=' + myTop +
					  ',screenY=' + myTop;
	theNewWindow = window.open(myURL, 'emailwin', theWindowParams);
};

function OpenJabberWindow() 
{
	var myHeight = 412;
	var myWidth = 620;
	var myTop;
	var myLeft;
	var jabber_url = "http://www.hud-1.net/chat/login.html";
	var theWindowParams = "status=no,toolbar=no,location=no," +
	"menu=no,resizable=no";
	if (screen.availHeight - 10 < myHeight || screen.availWidth - 30 < myWidth)
	{	
		 if (screen.availHeight - 30 < myHeight) 
		 	{myHeight = screen.availHeight - 30};
 		 if (screen.availWidth - 10 < myWidth) 
		 	{myWidth = screen.availWidth - 10};
	};	
	myTop = (screen.availHeight - 15 - myHeight) / 2;
	myLeft = (screen.availWidth - 5 - myWidth) / 2;
	theWindowParams = theWindowParams +
                      ',height=' +  myHeight +
	                  ',innerHeight=' + myHeight + 
	                  ',width=' + myWidth +
					  ',innerWidth=' + myWidth + 
					  ',left=' + myLeft +
					  ',screenX=' + myLeft +
					  ',top=' + myTop +
					  ',screenY=' + myTop;

	if (!document.images) 
	{
		msg = "Your browser is not capable of logging in to Jabber Chat. ";
        msg = msg + "You should use Netscape or Internet Explorer, version ";
        msg = msg + "4.0 or newer. (Available at www.browsers.com).";
        window.alert(msg); 
		return;
     }
     lchatwin=window.open(jabber_url,"LCHATWINDOW", theWindowParams);
};

