function CheckAll(a){for(i=0;i<a.length;i++)a[i].checked=!0}function UnCheckAll(a){for(i=0;i<a.length;i++)a[i].checked=!1}function openPopUp(a,e,c,d){var b=(window.screen.width-e)/2,f=(window.screen.height-c)/2;d||(d="genel");a=window.open(a,d,"toolbar=no, resizable=yes, width="+e+", height="+c+",left="+b+",top="+f+",location=no, directories=no, scrollbars=1, menubar=0, copyhistory=0, modal=yes");a.focus();return a}
function yazarEkle(a,e,c){a=window.opener.jQuery(a);jQuery(a).append(window.opener.jQuery("<option></option>").attr("value",e).text(c))}function emegiGecenEkle(a,e,c,d){var a=window.opener.jQuery(a),b;switch(c){case 1:b="\u00c7eviren";break;case 2:b="Haz\u0131rlayan";break;case 3:b="D\u00fczenleyen";break;default:b=""}jQuery(a).append(window.opener.jQuery("<option></option>").attr("value",e+","+c).text(d+" ("+b+")"))}
function danismanEkle(a,e,c,d){var a=window.opener.jQuery(a),b;switch(c){case "1":b="Prof. Dr.";break;case "2":b="Do\u00e7. Dr.";break;case "3":b="Yrd. Do\u00e7. Dr.";break;case "4":b="Dr.";break;case "5":b="Ara\u015f. G\u00f6r.";break;default:b=""}jQuery(a).append(window.opener.jQuery("<option></option>").attr("value",e+","+c).text(d+" ("+b+")"))}
(function(a){a.fn.TextAreaExpander=function(e,c){function d(a){var a=a.target||a,c=a.value.length,d=a.offsetWidth;if(c!=a.valLength||d!=a.boxWidth){if(b&&(c<a.valLength||d!=a.boxWidth))a.style.height="0px";var e=Math.max(a.expandMin,Math.min(a.scrollHeight,a.expandMax));a.style.overflow=a.scrollHeight>e?"auto":"hidden";a.style.height=e+"px";a.valLength=c;a.boxWidth=d}return!0}var b=!(a.browser.msie||a.browser.opera);this.each(function(){if(this.nodeName.toLowerCase()=="textarea"){var b=this.className.match(/expand(\d+)\-*(\d+)*/i);
this.expandMin=e||(b?parseInt("0"+b[1],10):0);this.expandMax=c||(b?parseInt("0"+b[2],10):99999);d(this);if(!this.Initialized)this.Initialized=!0,a(this).css("padding-top",0).css("padding-bottom",0),a(this).bind("keyup",d).bind("focus",d)}});return this}})(jQuery);

