/*****************************************************************************************************/
/*                                                                                                   */
/*                                 'RECOVER PASSWORD' CONTROL PANEL                                  */          
/*                                                                                                   */
/*****************************************************************************************************/

var RecoverPasswordObject = new Object();


function initRecoverPasswordPanel(){
	if (document.forms['recover_password_form'] == null){
		return;	
	}
	
	RecoverPasswordObject.info = new RECOVER_PASSWORD_GINFO(this);
	RecoverPasswordObject.info.init();
	RecoverPasswordObject.info.initCreate();
}




/*****************************************************************************************************/
/*                                                                                                   */
/*                                         FUNCTION VALIDATION                                       */          
/*                                                                                                   */
/*****************************************************************************************************/
function validateRecoverPassword(){
	if (RecoverPasswordObject != null){
		RecoverPasswordObject.info.initServerValidate();
	}
}


var sec;
function redirectRecoverPassword(){
	if (sec == 0){
		document.location.href = "index.php";
	}
	document.getElementById("seconds").innerHTML = sec;
	if (sec > 0){
		sec--;
	}
	setTimeout(redirectRecoverPassword,1000);
}