
﻿function intBank(ref){if(ref){PopItUp('../yonlendirme/internet-subesi.aspx'+ref+' ',1000,582)}
else{PopItUp('../yonlendirme/internet-subesi.aspx',1000,582)}}
function anindaSifre(ref){if(ref){PopItUp('../yonlendirme/aninda-sifre.aspx'+ref+' ',640,582)}
else{PopItUp('../yonlendirme/aninda-sifre.aspx',640,582)}}
$(document).ready(function(){$("#slideItem .slideContent").hide();$("#slideItem .slideTitle").click(function(){var slideTitle=$(this);if(slideTitle.hasClass("disabled")){return;}
slideTitle.next(".slideContent").slideToggle("fast").siblings(".slideContent:visible").slideUp("fast");slideTitle.toggleClass("active");slideTitle.siblings(".slideTitle").removeClass("active");});$().ready(function(){var anchor=location.hash;if(anchor!=null&&anchor.length>0){$('a[href='+anchor+']').click()}else{}})
function setFooterNew(){if($(window).height()>($("#wrapper").height()+$("#footer").height())){$("#footer").css("margin-top",$(window).height()-($("#wrapper").height()+$("#footer").height())+"px");}else{$("#footer").css("margin-top","0px");}}
$(window).bind("load resize",setFooterNew)});jQuery.fn.extend({scrollTo:function(speed,easing){return this.each(function(){var targetOffset=$(this).offset().top;$('html,body').animate({scrollTop:targetOffset},speed,easing);});}});function getCenter(pwidth,pheight){wwidth=screen.width;wheigth=screen.height;lpos=(wwidth-pwidth)/2;tpos=(wheigth-pheight)/2;return lpos,tpos;}
function PopItUp(src,w,h,s){if(s)w=w+17;getCenter(w,h);Popwin=window.open(src,"pop_up","toolbar=0,width="+w+", height="+h+", left="+lpos+", top="+tpos+"; location=0, directories=0, status=1, scrollbars="+s+", menubar=0, resizable=0, copyhistory=0");Popwin.focus();}
function menuBlank(src){window.open(src,"pop_up");}
function EvalString(o,len){if(o!=null&&typeof o=='string'){if(len!=null&&len>0&&o.length>len){return o.substring(0,len)+'...';}
else
return o;}else{return'-'}}
function blankpop(src,w,h,s){if(s)w=w+17;Popwin=window.open(src,"pop_up","toolbar=1,location=1, directories=1, status=1, left=2, top=10, scrollbars=1, menubar=0, resizable=0, copyhistory=0, width="+$(window).width()+", height="+$(window).height());return false;}
function EvalDate(o,format,nullString){var MinDate=Date.parse("01.01.0001 00:00:00");if(format==null)
format="dd.MM.yyyy HH:mm";if(typeof o=='string'){if(o.substring(o.length-1)=="Z")
o=o.substring(0,o.length-1);o=Date.parse(o);}
if(o==null)
return(nullString!=null?nullString:EvalString(null));if(o._orient!=null&&o._is!=null){if(MinDate.equals(o))return null;return o.toString(format);}else if(typeof o==='object'){return o.toString();}else{return(nullString!=null?nullString:EvalString(null));}}
function IsChecked(cb){var _cb=$(cb);return(_cb.attr("checked")=="checked"||_cb.attr("checked")==true)}
var validationOptions={errorPlacement:function(error,element){var elem=$(element);if((elem.hasClass('hasDatepicker')&&elem.next().hasClass('datepicker_trigger'))||(elem.attr('rel')==='richedit'&&elem.next().hasClass('mceEditor'))){elem.next().after(error);}else{elem.after(error);}},highlight:function(element,errorClass){var elem=$(element);if(elem.attr('rel')==='richedit'&&elem.next().hasClass('mceEditor')){elem.next().addClass(errorClass);}else{elem.addClass(errorClass);}},unhighlight:function(element,errorClass){var elem=$(element);if(elem.attr('rel')==='richedit'&&elem.next().hasClass('mceEditor')){elem.next().removeClass(errorClass);}else{elem.removeClass(errorClass);}}};function setLoading(strTarget){var targetObj=$(strTarget);if(targetObj.css("display")=="none")
return;if(targetObj.length<=0)
return;var strHtmlLoading=$("#ajaxLoader").html();var strLoaderID=targetObj[0].id+"_loader";var strLoaderPrgID=targetObj[0].id+"_loader_prg";var strContentID=targetObj[0].id+"_content";if($("#"+strLoaderID).length>0)
return;strHtmlLoading=strHtmlLoading.replace(/id_replacement/i,strLoaderID);strHtmlLoading=strHtmlLoading.replace(/id_replacement_prg/i,strLoaderPrgID);targetObj.before(strHtmlLoading);var objLoader=$("#"+strLoaderID);objLoader.width(targetObj.width());if(targetObj.height()>100){objLoader.height(targetObj.height());$("#"+strLoaderPrgID).css("margin-top",(targetObj.height()/2)-$("#"+strLoaderPrgID).height());}
objLoader.show();}
function resetLoading(strTarget){var targetObj=$(strTarget);if(targetObj.length<=0)
return;var objLoader=$("#"+targetObj[0].id+"_loader");if(objLoader.length<=0)
return;objLoader.remove();}
function onlyLetter(e){var InvalidChars="!#/*{[()]},;%^><\\?+:='`|";var keyCode=($.browser.mozilla)?e.which:event.keyCode;if(keyCode>47&&keyCode<58){return false;}
for(i=0;i<=InvalidChars.length-1;i++){if(keyCode==InvalidChars.charCodeAt(i)){return false;}}}
function onlyNumber(e){var keyCode=($.browser.mozilla)?e.which:event.keyCode;if((keyCode<48||keyCode>57)&&keyCode!=8&&keyCode!=0){return false;}}
function onlyEmail(e){var InvalidChars=" !#/*{[()]},;%^><\\?+:='`|şŞĞğÜüÇçİıÖö";kCode=InvalidChars.charAt(5);var keyCode=($.browser.mozilla)?e.which:event.keyCode;if(keyCode>127){return false;}
for(i=0;i<=InvalidChars.length-1;i++){if(keyCode==InvalidChars.charCodeAt(i)){return false;}}
return true;}
