// JavaScript Document
var ajax = new sack();
function validate_login()
{
	var form = document.getElementById("frm_login");
	if(GenValidation(form.txt_email,'username.','','')==0)
		return false;
	if(EmailValidation(form.txt_email)==0)
		return false;
	if(GenValidation(form.txt_passwd,'password.','','')==0)
		return false;
}
function forgotPassword_div()
{
	if(document.getElementById('txt_forgotEmail'))
	{
		document.getElementById('txt_forgotEmail').value = "";
		document.getElementById('row_display').innerHTML = "";
		Slide('tbl_forgotPass').up();
	}
}
function validation_forgotEmail()
{
	if(document.getElementById('txt_forgotEmail'))
	{
		if(GenValidation(document.getElementById('txt_forgotEmail'),'email.','','')==0)
			return false;
		if(EmailValidation(document.getElementById('txt_forgotEmail'))==0)
			return false;
	var email = document.getElementById('txt_forgotEmail').value;
	ajax.requestFile = "front/models/ajax/login.php?act=fgt365&email="+email;
	ajax.onCompletion = disp_response;
	ajax.runAJAX();
	}
}
function disp_response()
{
	//alert(ajax.response);
	eval(ajax.response);
}
function clear_message_forgotPass()
{
	document.getElementById('row_display').innerHTML='';
}





