function jemail(user, domain, suffix){ document.write('' + user + '@' + domain + '.' + suffix + ''); } function getContent(page) { $.get("getcontent.php", { page: page}, function(data){ $(".newscontent").html(data); } ); } function getEventGuestField(count) { var content = ''; if(count==0) { content = ''; } else { //alert(document.getElementById()) for(i=0;i
"; } // for } // if $("div#guests").html(content); } // function function getRegisterGuestField(count) { var content = ''; if(count==0) { content = ''; } else { //alert(document.getElementById()) for(i=0;i Soyad: Email:
"; } // for } // if $("div#guests").html(content); } // function function checkPass(f) { var f; if(f.pass.value != f.passverification.value) { alert("Şifre ve şifre tekrarınız uyuşmuyor"); return false; } } // checkPass $(document).ready(function(){ var chk,f; $("#companyname").autocomplete("jquery_companyname.php"); $("#companyname").keyup(function(){ if(!$(this).val()) { f=document.forms[0]; len = f.elements.length; var i=0; for( i=0 ; i" + $(email).val() + " adresi için ödeme yapılmış görünmektedir."); $(surname).val(''); } else if(chk == 2) { color ='orange'; $(email).css("background",color); $("div#" + $(email).attr("id") + "info").html('Kullanıcı sistemimize kayıtlıdır. Yeni bir kullanıcı oluşturulmayacaktır. Ödemesi tarafınızdan alınacaktır.'); } else { color = 'green'; $(email).css("background",color); $("div#" + $(email).attr("id") + "info").html(''); } // else $("div#" + $(email).attr("id") + "info").css('color',color); }); // jquery }} function checkEventEmail(email) { var chk,email,color; if(isEmail(email.value)) { $.get("checkemail.php",{email: email.value}, function(data) { chk = eval(data); if(chk == "1") { color = 'green'; $(email).css("background",color); $("div#" + $(email).attr("id") + "info").html("(" + $(email).val() + ") Kullanıcı sistemimizde mevcut ve kayıt ücreti tarafımızca onaylanmıştır."); } else if(chk == 2) { color ='orange'; $(email).css("background",color); $("div#" + $(email).attr("id") + "info").html("(" + $(email).val() + ") Kullanıcı sistemimizde mevcut fakat kayıt ücreti tarafımızda onaylanmamıştır veya ödeme yapması gerekmektedir."); email.value = ''; } else { color = 'red'; $(email).css("background",color); $("div#" + $(email).attr("id") + "info").html("(" + $(email).val() + ") Kullanıcının sistemimizde herhangi bir kaydı bulunmamaktadır."); $(email).val(''); } // else $("div#" + $(email).attr("id") + "info").css('color',color); }); // jquery }} // document.ready function getPrice(pCount,price,EUROtoTL,eid) { var total, priceTL; pCount++; if(eid>0) price = price * pCount; else price = (pCount<3) ? price * pCount : (price * pCount)*0.8; $("span#pCount").html(pCount); $("span#price").html(price); priceTL = (price*EUROtoTL); priceTL = priceTL.toFixed(2); $("span#priceTL").html(priceTL); totalTL = priceTL*1.18; totalTL = totalTL.toFixed(2); $("span#totalTL").html(totalTL); return true; } function isCreditCard( CC ) { if (CC.length > 19) return (false); sum = 0; mul = 1; l = CC.length; for (i = 0; i < l; i++) { digit = CC.substring(l-i-1,l-i); tproduct = parseInt(digit ,10)*mul; if (tproduct >= 10) sum += (tproduct % 10) + 1; else sum += tproduct; if (mul == 1) mul++; else mul--; } if ((sum % 10) == 0) return (true); else return (false); } function SetChecked(form,val,chkName) { dml=document.forms[form]; len = dml.elements.length; var i=0; for( i=0 ; i