function GetQues()
{
document.write("");document.write("");document.write("");document.write("");document.write("");document.write("");document.write("");
}
function ShowError(Inp)
{
SendLoading(false)
Obj=document.getElementById("PhpAlert");
Obj.innerHTML=" "+Inp;
Obj.style.color="990000";
return false;
}
function SendLoading(Mode)
{
Obj=document.getElementById("PhpAlert");
if (!Mode)
{
Obj.innerHTML="";
return 0;
}
else
{
ImgCode=" در حال بررسي اطلاعات ...";
Obj.innerHTML=ImgCode;
Obj.style.color="#485697";
}
}
function GetOK()
{
document.location="MemForgetOK.php"
}
function CheckData()
{
User=document.getElementById("Username").value;
Email=document.getElementById("Email").value;
Qs=document.getElementById("SecurityQs").value;
Ans=document.getElementById("SecurityAns").value;
Sec=document.getElementById("PostImgPass").value;
if(User.length<1) return ShowError("لطفا نام كاربري را وارد نمائيد ...");
if(Email.length<1) return ShowError("لطفا آدرس ايميل خود را وارد نمائيد ...");
if(!ValidEmail(Email)) return ShowError("لطفا آدرس ايميل خود با دقت وارد نمائيد ...");
if(Qs.length<1) return ShowError("لطفا سوال امنيتي را انتخاب نمائيد ...");
if(Ans.length<1) return ShowError("لطفا جواب امنيتي را وارد نمائيد ...");
if(Sec.length<1) return ShowError("لطفا كد امنيتي را وارد نمائيد ...");
return true;
}
function ValidEmail(Inp)
{
if(Inp.indexOf("@")<2 || Inp.indexOf(".")<1 || Inp.length-Inp.indexOf(".")<3) return false;
return true;
}
function GetPass()
{
SendLoading(true);
if (!CheckData()) return false;
}