/*
    File:			forgot_password.js
	
    Copyright:		© Copyright 2006-2009 Jonathan Hammer. All rights reserved.
	
    Disclaimer:		IMPORTANT:  This software is supplied to you by Jonathan Hammer
					("Developer") in consideration of your agreement to the following terms, and your
					use or installation of this software constitutes acceptance of these terms.  If you
					do not agree with these terms, please do not use or install this software.

					In consideration of your agreement to abide by the following terms, and subject
					to these terms, Developer grants you a personal, non-exclusive license, under Developer’s
					copyrights in this original software (the "Software"), to install and use the Software without
					modification and forbids you from modifying or redistributing the Software,
					either in part or in whole.  No other rights or licenses, express or implied,
					are granted by Developer herein.

					The Software is provided by Developer on an "AS IS" basis.  DEVELOPER MAKES NO
					WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
					WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
					PURPOSE, REGARDING THE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
					COMBINATION WITH YOUR PRODUCTS.
*/

function doForgotPassword()
{
	var username = document.forms["login"].username.value;
		
	if ( username.length == 0 )
		username = prompt( "Please enter your username so we can look up your password:" );
	
	if ( !username || !username.length ) {
		alert( "If you cannot remember your username, please contact SRI." );
		return;
	}
	
	document.location.href = "forgot_password.php?username=" + username;
}
