function resetpasword(uid){
	var success = 0;
	if(uid!="")
		jQuery.facebox({ajax:SITEROOT + '/ajax/resetpassword/success/' + success});
	else
		window.location.href = SITEROOT + '/signin/user';
}

function sendresetlink(){
	$.post(SITEROOT + '/ajax/resetpasswordsendemail/',{},function(data){
		if(data.success == 1){
			jQuery.facebox({ajax:SITEROOT + '/ajax/resetpassword/success' + '/1'});
		}else{
			jQuery.facebox({ajax:SITEROOT + '/ajax/resetpassword/success' + '/2'});
		}
	},'json');
}

