$("#keyword").autocomplete("index.php?url=hm.emptypopupsearchkeyword", { width: $("#keyword").width()+50, selectFirst: false, matchCase: true, matchSubset: false, scrollHeight: 400 });
$("#keyword").result(function(event, data, formatted)
{
document.searchform.keyword.value = data[1];
document.searchform.talkid.value = data[2];
document.searchform.submit();
});
function Sont_DetiadSEcrh_Opt()
{
if(document.getElementById("detailedsearchframe").style.display=="none")
{
document.searchform.detailedsearch.value=1;
document.getElementById("detailedsearchframe").style.display="";
}
else
{
document.searchform.detailedsearch.value=0;
document.getElementById("detailedsearchframe").style.display="none";
}
return false;
}
function sendPasswRD_Frm_conTrol()
{
errorHtml='';
if(document.sendRegistr_Frm.Pemail.value=="")
errorHtml+='- Lütfen email giriniz.
';
else
{
if((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.sendRegistr_Frm.Pemail.value))==false)
errorHtml=errorHtml+'- Lütfen çeçerli bir email giriniz.
';
}
if(errorHtml!="")
return sHow_eRpoPup(errorHtml,"Bilgi",0,110);
else
{
$('#sendbutton').hide();
$('#loading').show();
$.post("index.php?url=hm.emptypopupshowuserprofile", {'Pemail':$('#Pemail').val()},
function(data)
{
if(data==0)
{
$('#sendbutton').show();
$('#loading').hide();
return sHow_eRpoPup("- Girdiğiniz email sistemimizde kayıtlı değil.","Kullanıcı Hesabınız Bulunamadı",0,110);
}
else
{
$('#loading').hide();
$('#profileframe').html(data);
$('#userprofile').show();
}
},"html"
);
return false;
}
}
function Show_SND_PasSFunc()
{
$('#sendbutton').show();
$('#loading').hide();
$('#profileframe').html();
$('#userprofile').hide();
document.sendRegistr_Frm.Pemail.value="";
}
function ShowPegFrm(data)
{
mailvalue = ""+$('#Pemail').val()+"";
$('#Pmailinner').html(mailvalue);
$('#Pemail').hide();
$('#psd1').hide();
$('#psd2').hide();
$('#psd3').show();
$('#wmR_MSGH').hide();
$.post("index.php?url=hm.emptypopupsendactivationcode", {'Pemail':$('#Pemail').val()},
function(data)
{
if(data.trim()!="")
{
$('#sendbutton').show();
$('#loading').hide();
$('#profileframe').html();
$('#userprofile').hide();
$('#wmR_MSGH').show();
return sHow_eRpoPup(data,"Hata",0,110);
}
else
{
$('#loading').hide();
$('#sendbutton').hide();
$('#activationcode').show();
$('#onepassword').show();
$('#twopassword').show();
$('#activationtext').show();
$('#processsubmit').show();
$('#psd3').hide();
$('#wmR_MSGH').hide();
}
},"html"
);
}
function sendPasswRD_Frm_conTrol_PrcS()
{
errorHtml='';
if(document.sendPsw_Frm.ActivationCode.value=="" || document.sendPsw_Frm.NewPassword.value=="" || document.sendPsw_Frm.NewPasswordAgain.value=="")
errorHtml+='- You must fill in all of the fields.
';
else
{
if(document.sendPsw_Frm.NewPassword.value.length< 6)
errorHtml=errorHtml+'- Şifreniz en az 6 haneli olmalıdır.
';
else
{
if(document.sendPsw_Frm.NewPassword.value!=document.sendPsw_Frm.NewPasswordAgain.value)
errorHtml=errorHtml+'- Şifre ve şifre (tekrar) alanları aynı olmalıdır.
';
}
}
if(errorHtml!="")
return sHow_eRpoPup(errorHtml,"Bilgi",0,200);
else
{
$('#processbutton').hide();
$('#processloading').show();
$.post("index.php?url=hm.emptypopupchangepassword", {'ActivationCode':$('#ActivationCode').val(),'NewPassword':$('#NewPassword').val(),'Pemail':$('#Pemail').val()},
function(data)
{
if(data==1)
{
$('#processloading').hide();
$('#ltbutton').show();
return sHow_eRpoPup("Şifreniz başarı ile güncellendi.","Info",0,110);
}
else
{
$('#processbutton').show();
$('#processloading').hide();
return sHow_eRpoPup("Şifreniz güncellenirken hata oluştu. Lütfen aktivasyon kodunu doğru girdiğinizden emin olunuz.","Info",0,110);
}
},"html"
);
return false;
}
}