function getPassword() {
	var input = $('email').value.strip();
	Element.hide('msg');
	if (input != '') {
		new Ajax.Request('/signin/password/do.html?email=' + input, {method: 'get', onComplete: getPasswordFinish});
	}
}

function getPasswordFinish(r) {
var json = ajaxError(r);
    if (json != '') {
		if (json.passwordresult == 'Y') {
			Element.hide('fperrors');
			Element.hide('fpform');
			Element.show('msg');
			new Effect.Highlight('msg', {restorecolor: '#ffff99'});
		}
		else {
			Element.show('fperrors');
		}
	}
}
