function external_link(u)
{
	if ( u.match(/^(.+)\.$/) )
	{
		window.open(RegExp.$1, "_new");
	}
	else
	{
		window.open(u, "_new");
	}
	return ( false );
	
}

function _getXmlHttpRequestObject() 
{
	if (window.XMLHttpRequest) 
	{
		return ( new XMLHttpRequest() );
	} 
	else if (window.ActiveXObject) 
	{
		return ( new ActiveXObject("Microsoft.XMLHTTP") );
	} 
	else 
	{
		return ( null );
	}
}			

function ifla_wr_pwd_lookup(s)
{
	
	if ( s == 1 )
	{
		var msg = "Please enter your email address into the field below in order to retrieve your password.<br /><br />";

		msg += '<table border="0" align="center">';
		msg += '	<tr>';
		msg += '		<td valign="middel">';
		msg += "			<input type='text' class='input' id='lookup_fld' style='width: 120px; ' />";
		msg += '		</td>';
		msg += '		<td valign="top">';
		msg += '			<a href="#" onclick="ifla_wr_pwd_lookup(2);" class="link">';
		msg += '				Continue';
		msg += '			</a>										';
		msg += '		</td>';
		msg += '	</tr>';
		
		msg += '</table>	';

		popup(msg, false, true);
	}
	else if ( s == 2 )
	{
		hide_something("popup");
		
		var uname = document.getElementById("lookup_fld").value;
		
		window.open("/cgi-bin/scripts/ifla_wr/pwd_lookup.cgi?uid=" +uname+ "&login_type=" +login_type, "_postman");
				
	}
}

