$(function(){$('.error').hide();$(".gonderbutton_y").click(function(){$('.error').hide();var b=urlencode($("input#ad").val());if(b==""){$("label#ad_error").show();$("input#ad").focus();return false}var c=urlencode($("input#baslik").val());if(c==""){$("label#baslik_error").show();$("input#baslik").focus();return false}var d=urlencode($("textarea#mesaj").val());if(d==""){$("label#mesaj_error").show();$("textarea#mesaj").focus();return false}var e=urlencode($("input#ino").val());var m=urlencode($("input#kat").val());var f='ino='+e+'&kat='+m+'&ad='+b+'&baslik='+c+'&mesaj='+d;$.ajax({type:"POST",url:"yorum_gonder.asp",data:f,error:function(){alert('Yorumunuz gönderilirken bir hata oluştu. Lütfen tekrar deneyiniz.');return false},success:function(a){$('#yorumgonderform').html(a)}});return false})});function urlencode(a){a=escape(a);a=a.replace(new RegExp('\\+','g'),'%2B');return a.replace(new RegExp('%20','g'),'+')}jQuery(document).ready(close);function tabslide(a,b){if(b=="1"){jQuery(".tab").slideUp("slow");jQuery("#"+a).slideDown("slow");jQuery('.cstabs li a').attr("id","");jQuery('.cstabs .'+a).attr("id","secbaslik")}if(b=="2"){jQuery(".tab").hide("slow");jQuery("#"+a).show("slow");jQuery('.cstabs li a').attr("id","");jQuery('.cstabs .'+a).attr("id","secbaslik")}if(b=="3"){jQuery(".tab").hide();jQuery("#"+a).show();jQuery('.cstabs li a').attr("id","");jQuery('.cstabs .'+a).attr("id","secbaslik")}}function close(){jQuery(".tab").hide();jQuery("#1").show();jQuery('.cstabs .1').attr("id","secbaslik")}$(function(){$(".ebultenbutton").click(function(){var b=urlencode($("input#txtmail").val());if(b==""||!isValidEmail($("input#txtmail").val())){alert("Lütfen geçerli bir e-posta adresi giriniz!");$("input#txtmail").focus();return false}var c='email='+b;$.ajax({type:"POST",url:"ebulten_gonder.asp",data:c,error:function(){alert('E-posta adresiniz gönderilirken bir hata oluştu. Lütfen tekrar deneyiniz.');return false},success:function(a){$('#ebulten').html(a)}});return false})});function urlencode(a){return encodeURIComponent(a)}function isValidEmail(a){var b=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return b.test(a)}var win=null;function NewWindow(a,b,w,h,c){var d=(screen.width-w)/2;var e=(screen.height-h)/2;var f='height='+h+',';f+='width='+w+',';f+='top='+e+',';f+='left='+d+',';f+='scrollbars='+c+',';f+='resizable=yes';win=window.open(a,b,f);if(parseInt(navigator.appVersion)>=8){win.window.focus()}}
