$("#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 sendLgnck_Frm_conTrol()
{
errorHtml='';
if(document.sendLgnck_Frm.Lusername.value=="" || document.sendLgnck_Frm.LPassword.value=="") errorHtml=errorHtml+'- Lütfen kullanıcı adı ve şifre giriniz.
';
if(errorHtml!="")
return sHow_eRpoPup(errorHtml,"Kullanıcı adı ve/veya şifre",0,150);
else
return true;
}
function sendRegster_Frm_conTrol()
{
errorHtml='';
if(document.sendRegistr_Frm.Rusername.value=="" || document.sendRegistr_Frm.Rfirstname.value=="" || document.sendRegistr_Frm.Rlastname.value=="" || document.sendRegistr_Frm.Remail.value=="" || document.sendRegistr_Frm.Rpassword.value=="" || document.sendRegistr_Frm.Rbirthday.value =="" || document.sendRegistr_Frm.Rbirthmonth.value =="" || document.sendRegistr_Frm.Rbirthyear.value =="" || document.sendRegistr_Frm.Rlocation.value =="")
{
errorHtml+='- Kullanıcı adı, e-posta, isim ve soyisim, şifre, konum ve doğum tarihi alanları dolu olmalıdır.
';
}
else
{
if((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.sendRegistr_Frm.Remail.value))==false)
errorHtml=errorHtml+'- Lütfen çeçerli bir email giriniz.
';
if(document.sendRegistr_Frm.Rpassword.value.length < 6)
errorHtml=errorHtml+'- Lütfen şifrenizi en az 6 karakter giriniz.
';
}
if(document.sendRegistr_Frm.Rusername.value!="")
{
if(document.sendRegistr_Frm.Rusername.value.length<6)
{
errorHtml+="- Kullanıcı Adı 6 Karakterden Küçük Olamaz.
";
}
else if(document.sendRegistr_Frm.Rusername.value.length>30)
{
errorHtml+="- Kullanıcı Adı 30 Karakterden Büyük Olamaz.
";
}
else if((/^[a-z0-9/.]{6,30}$/.test(document.sendRegistr_Frm.Rusername.value))==false)
{
errorHtml+="- Kullanıcı adı için lütfen yalnızca harfleri (a-z), rakamları ve nokta işaretini kullanın.
";
}
}
if(document.sendRegistr_Frm.Rpassword.value!=document.sendRegistr_Frm.RpasswordAgain.value)
{
errorHtml+="- Şifre alanları eşleşmiyor. Lütfen tekrar yazınız.
";
}
if(document.sendRegistr_Frm.is_accept.checked==false)
{
errorHtml+="- Hizmetlerimizi kullanabilmek için Amilgam'in Hizmet Şartları'ını kabul etmelisiniz.
";
}
if(errorHtml!="")
{
return sHow_eRpoPup(errorHtml,"Info",0,150);
}
else
{
$('#loginbutton').hide();
$('#loading').show();
$.post("index.php?url=hm.emptypopupregister", {'Rusername':$('#Rusername').val(),'Rfirstname':$('#Rfirstname').val(),'Rlastname':$('#Rlastname').val(),'Remail':$('#Remail').val(),'Rpassword':$('#Rpassword').val(),'Rlocation':$('#Rlocation').val(),'Rbirthyear':$('#Rbirthyear').val(),'Rbirthmonth':$('#Rbirthmonth').val(),'Rbirthday':$('#Rbirthday').val(),'Rcellphone':$('#Rcellphone').val(),'Rgender':$('#Rgender').val()},
function(data)
{
ShowRegMessage(data);
},"html"
);
return false;
}
}
function ShowRegMessage(data)
{
if(data.trim()!="")
{
$('#loading').hide();
$('#loginbutton').show();
return sHow_eRpoPup(data,"Hata",0,200);
}
else
document.sendRegistr_Frm.submit();
}
function cHKtrmsa_chKed_onKyBlur()
{
if(document.sendRegistr_Frm.Rusername.value=="" || document.sendRegistr_Frm.Rusername.value.trim()=="")
{
document.getElementById("signupmessage").style.textAlign='left';
document.getElementById("signupmessage").style.display='';
document.getElementById("oalertwindow1").innerHTML = '';
}
else
{
$.post("index.php?url=hm.emptypopupcheckusername", {'Rusername':$('#Rusername').val()},
function(data){
document.getElementById("signupmessage").innerHTML = '';
document.getElementById("oalertwindow1").style.display='none';
document.getElementById("oalertwindow1").style.width='';
document.getElementById("oalertwindow1").innerHTML = '';
document.getElementById('oalertwindow1').innerHTML = data;
document.getElementById("oalertwindow1").style.height='30px';
document.getElementById("oalertwindow1").style.left = findPosX(document.getElementById("Remail"))+'px';
document.getElementById("oalertwindow1").style.top = findPosY(document.getElementById("Remail"))+50+'px';
document.getElementById("oalertwindow1").style.position ='absolute';
document.getElementById("oalertwindow1").style.display='';
},"html"
);
}
}