/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  November 17th 2008 5:32:00 PM PST                            */
/*      Machine:  10.16.139.101                                                */
/*       Source:  Local Cache                                                  */
/*     Location:  rsrc:99gxg9xq:tr_TR:/html/js/d9muv2ifv88c4w48.pkg.js:141     */
/*       Locale:  tr_TR                                                        */
/*         Path:  js/d9muv2ifv88c4w48.pkg.js                                   */


function update_strength(input_field_id,output_display_id){var input_field=$(input_field_id);var output_display=$(output_display_id);var input_str=input_field.value;var input_length=input_str.length;var strength=0;number_re=new RegExp("[0-9]");if(number_re.test(input_str)){strength++;}
non_alpha_re=new RegExp("[^A-Za-z0-9]");if(non_alpha_re.test(input_str)){strength++;}
upper_alpha_re=new RegExp("[A-Z]");if(upper_alpha_re.test(input_str)){strength++;}
if(input_length>=8){strength++;}
var strength_str=_tx("\u015eifre g\u00fcvenilirli\u011fi")+': ';if(strength<=1){strength_str=strength_str+'<strong style="color:grey">'+_tx("Zay\u0131f")+'</strong>';}else if(strength<=2){strength_str=strength_str+'<strong style="color:blue">'+_tx("Orta Derece")+'</strong>';}else{strength_str=strength_str+'<strong style="color:green">'+_tx("G\u00fc\u00e7l\u00fc")+'</strong>';}
if(input_str.length<6){strength_str='<strong style="color:orange">'+_tx("\u00c7ok k\u0131sa")+'</strong>';}
output_display.innerHTML=strength_str;}
function show_pwd_help(){var message=_tx("Parola olu\u015ftururken, unutmay\u0131n:")+'<ul><li>'+_tx("\u0130smini <strong>kullanmamal\u0131s\u0131n<\/strong>.")+'</li>'+'<li>'+_tx("S\u00f6zl\u00fckte bulunan yayg\u0131n bir kelime <strong>i\u00e7ermemelidir<\/strong>.")+'</li>'+'<li>'+_tx("\u015eifre <strong> bir veya daha fazla rakam<\/strong> i\u00e7ermelidir.")+'</li>'+'<li>'+_tx("Hem b\u00fcy\u00fck, hem k\u00fc\u00e7\u00fck harfler <strong>i\u00e7ermelidir<\/strong>.")+'</li>'+'<li>'+_tx("En az 8 karakter uzunlu\u011funda <strong>olmal\u0131d\u0131r<\/strong>.")+'</li></ul>';new Dialog().setTitle(_tx("G\u00fc\u00e7l\u00fc bir \u015eifre Olu\u015ftur")).setBody(message).setButtons([Dialog.OK]).show();return false;}

var reg_checkers=new Array();var reg_checker_enabled=false;var hs_fields,college_fields;function reg_checker(field_obj,error_obj){if(!field_obj||!error_obj){return false;}
this.f=field_obj;this.f.checker=this;this.e_obj=error_obj;this.failed=0;this.e_obj.innerHTML='';}
reg_checker.prototype.can_show_error=true;reg_checker.prototype.failed=false;reg_checker.prototype._validate=function(){return true;}
reg_checker.prototype.validate=function(){this._validate();if((this.e_obj.innerHTML!='')&&this.can_show_error){show(this.e_obj);}else{hide(this.e_obj);}
return this.failed;}
function hide_kimsin_errors(){if(reg_checker_enabled){var ls_fields=hs_fields.concat(college_fields);for(var i=0,il=ls_fields.length;i<il;i++){var obj=ge(ls_fields[i]);if(obj&&obj.checker){hide(obj.checker.e_obj);}}}}
function _reg_submit_check(){var failures=new Array();for(var i=0,il=reg_checkers.length;i<il;i++){var c_obj=reg_checkers[i];c_obj.can_show_error=true;c_obj.validate();if(c_obj.failed){failures.push(c_obj.field);}}
return failures;}
function reg_submit_check(){var failures=_reg_submit_check();return!failures.length;}

//birinci secenek "Ben" menüsü
function kimsin_chosen(selector){selector=ge(selector);hideHighSchoolOnly();hideCollegeOnly();hideEmailTips();switch(selector.value){case'1':showTableRow('ilkogretim_status_row');showTableRow("kisiselBilgiler");showTableRow("okulAdi");showTableRow("okulAdiUyari");showTableRow("adresBilgileri");break;case'2':showTableRow('ogretmenBilgileri');showTableRow('okulAdi');showTableRow("okulAdiUyari");showTableRow("kisiselBilgiler");break;case'3':showTableRow("okulBilgileri");showTableRow("adresBilgileri");showTableRow("iletisimBilgileri");break;case'4':showTableRow("okulBilgileri");showTableRow("iletisimBilgileri");showTableRow("adresBilgileri");break;case'5':showTableRow("rumuz");break;}
hide_kimsin_errors();}

//Okul Durumu menüsü (ilköğretim lise)
function okulSec_chosen(selector){selector=ge(selector);hideHighSchoolOnly();hideCollegeOnly();hideEmailTips();switch(selector.value){case'1':showTableRow('ilkogretim_status_row');showTableRow("kisiselBilgiler");showTableRow("okulAdi");showTableRow("okulAdiUyari");showTableRow("adresBilgileri");break;case'2':showTableRow('lise_status_row');showTableRow("kisiselBilgiler");showTableRow("okulAdi");showTableRow("okulAdiUyari");showTableRow("adresBilgileri");break;case'3':showTableRow('universite_status_row');showTableRow("kisiselBilgiler");showTableRow("okulAdi");showTableRow("okulAdiUyari");showTableRow("adresBilgileri");break;}
hide_kimsin_errors();}

function hideHighSchoolOnly(){hide('high_school_network_row');hide('high_school_year_row');hide('hs_email_tips');}
function hideCollegeOnly(){hide('ilkogretim_status_row');hide('lise_status_row');hide('universite_status_row');hide('okulDurumu');hide('kisiselBilgiler');hide('okulAdiUyari');hide("okulAdi");hide("ogretmenBilgileri");hide(adresBilgileri);hide("iletisimBilgileri");hide("okulBilgileri");}
function hideEmailTips(){hide('college_email_tips');hide('work_email_tips');hide('rumuz');}

function collegeStatusChanged(selected){s=ge('status');y=ge('college_year');var date=new Date();var cur_year=date.getFullYear();var start_year=2008;switch(s.value){case'1':make_year_select_options(y,start_year,start_year+6,selected);$('college_year').disabled=false;break;case'2':make_year_select_options(y,cur_year,1925,selected);$('college_year').disabled=false;break;case'3':case'4':abbreviate_options(y);$('college_year').disabled=true;break;case'5':make_year_select_options(y,start_year,start_year+6,selected);$('college_year').disabled=false;break;}

if(reg_checker_enabled){hide(y.checker.e_obj);}}
function abbreviate_options(s){s.options.length=1;}
function make_year_select_options(s,y1,y2,selected){var i;var j=1;s.options.length=1;if(y1<y2){for(i=y1;i<=y2;i++){s.options[j]=new Option(i,i,0,(selected==i?true:false));j++;}}else{for(i=y1;i>=y2;i--){s.options[j]=new Option(i,i,0,(selected==i?true:false));j++;}}}
function network_success(){if(reg_checker_enabled){hide(ge('okulAdiUyari'));}}
function register_link_button_popup(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"');");}
function network_set_college(result){var network_key=result.i;if(network_key){$('n_college').value=network_key;}}
function network_set_hs(result){var network_key=result.i;if(network_key){$('n').value=network_key;}}

if (window.Bootloader) { Bootloader.done(["js\/d9muv2ifv88c4w48.pkg.js"]); }