﻿
function disableKontrol() {
    try {
        var el = document.getElementById('ctl00_kullaniciGiris_imgButtonKullaniciGris');
        if (el != null)
            el.disabled = true;
    }
    catch (ebx) {

    }
  
}
function EnabledKontrol() {
    try {
        var el = document.getElementById('ctl00_kullaniciGiris_imgButtonKullaniciGris');
        if (el != null)
            el.disabled = false;
    }
    catch (exd) {

    }
   
}
var saniye=-1;
var yazi;
function say() {

    if (saniye > 0)
    {
        $("#sure").html(saniye + yazi);
        setTimeout("say()", 1000);
        saniye = saniye - 1;
    }
    else 
    {
        saniye = -1;
        $("#sure").html("");
        EnabledKontrol();
    } 
}

function onbtnKontrol(result) {
    saniye = result;
    yazi = " Saniye Bekleyiniz..."
    if (saniye > 0) {
        disableKontrol();
        say();
    }
    else 
    {
        EnabledKontrol();
        saniye = -1;
        yazi = "";
    }
}
function onFailed(error) {
    alert(error.get_message());
}
function ZamanKontrol() {
    PageMethods.btnKontrol("", onbtnKontrol, onFailed);
}

function GirisAyarla() {

    return true;
}



