﻿



var checked = false;


jQuery.fn.delay = function(time, func) {
    return this.each(function() {
        setTimeout(func, time);
    });
};

(function(jQuery) {

    // We override the animation for all of these color styles
    jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i, attr) {
        jQuery.fx.step[attr] = function(fx) {
            if (fx.state == 0) {
                fx.start = getColor(fx.elem, attr);
                fx.end = getRGB(fx.end);
            }

            fx.elem.style[attr] = "rgb(" + [
				Math.max(Math.min(parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
				Math.max(Math.min(parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
				Math.max(Math.min(parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
			].join(",") + ")";
        }
    });

    // Color Conversion functions from highlightFade
    // By Blair Mitchelmore
    // http://jquery.offput.ca/highlightFade/

    // Parse strings looking for color tuples [255,255,255]
    function getRGB(color) {
        var result;

        // Check if we're already dealing with an array of colors
        if (color && color.constructor == Array && color.length == 3)
            return color;

        // Look for rgb(num,num,num)
        if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
            return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];

        // Look for rgb(num%,num%,num%)
        if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
            return [parseFloat(result[1]) * 2.55, parseFloat(result[2]) * 2.55, parseFloat(result[3]) * 2.55];

        // Look for #a0b1c2
        if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
            return [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)];

        // Look for #fff
        if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
            return [parseInt(result[1] + result[1], 16), parseInt(result[2] + result[2], 16), parseInt(result[3] + result[3], 16)];

        // Otherwise, we're most likely dealing with a named color
        return colors[jQuery.trim(color).toLowerCase()];
    }

    function getColor(elem, attr) {
        var color;

        do {
            color = jQuery.curCSS(elem, attr);

            // Keep going until we find an element that has color, or we hit the body
            if (color != '' && color != 'transparent' || jQuery.nodeName(elem, "body"))
                break;

            attr = "backgroundColor";
        } while (elem = elem.parentNode);

        return getRGB(color);
    };

    // Some named colors to work with
    // From Interface by Stefan Petre
    // http://interface.eyecon.ro/

    var colors = {
        aqua: [0, 255, 255],
        azure: [240, 255, 255],
        beige: [245, 245, 220],
        black: [0, 0, 0],
        blue: [0, 0, 255],
        brown: [165, 42, 42],
        cyan: [0, 255, 255],
        darkblue: [0, 0, 139],
        darkcyan: [0, 139, 139],
        darkgrey: [169, 169, 169],
        darkgreen: [0, 100, 0],
        darkkhaki: [189, 183, 107],
        darkmagenta: [139, 0, 139],
        darkolivegreen: [85, 107, 47],
        darkorange: [255, 140, 0],
        darkorchid: [153, 50, 204],
        darkred: [139, 0, 0],
        darksalmon: [233, 150, 122],
        darkviolet: [148, 0, 211],
        fuchsia: [255, 0, 255],
        gold: [255, 215, 0],
        green: [0, 128, 0],
        indigo: [75, 0, 130],
        khaki: [240, 230, 140],
        lightblue: [173, 216, 230],
        lightcyan: [224, 255, 255],
        lightgreen: [144, 238, 144],
        lightgrey: [211, 211, 211],
        lightpink: [255, 182, 193],
        lightyellow: [255, 255, 224],
        lime: [0, 255, 0],
        magenta: [255, 0, 255],
        maroon: [128, 0, 0],
        navy: [0, 0, 128],
        olive: [128, 128, 0],
        orange: [255, 165, 0],
        pink: [255, 192, 203],
        purple: [128, 0, 128],
        violet: [128, 0, 128],
        red: [255, 0, 0],
        silver: [192, 192, 192],
        white: [255, 255, 255],
        yellow: [255, 255, 0]
    };

})(jQuery);



function postUrl(url, params)
{
    $.post(url, params,
        function(data){
            
    });
}

function renderReplace(url, params, id)
{
    $.post(url, params,
        function(data){
            $("#"+id).html(data);
    });
}


function refreshHavaDurumu(cityName) {
    renderReplace("HavaDurumu_AjaxProxy.aspx", { city: cityName }, "hava_durumu_container");
}

function postComment(articleId, body)
{
    renderReplace("Content_AjaxProxy.aspx", {method: "postComment", body: body, id: articleId}, "comment_form_div");
}

function postMessage(advertId, messageBody)
{
    renderReplace("Advert_AjaxProxy.aspx", {method: "postMessage", body: messageBody, id: advertId}, "advert_message_"+advertId);
}


function sendReply(messageId, messageBody) {
    renderReplace("Advert_AjaxProxy.aspx", { method: "sendReply", body: messageBody, id: messageId }, "advert_message_" + messageId);
}

function getCategoryList(parentId)
{
    renderReplace("Article_AjaxProxy.aspx", {method: "getCategories", id: parentId}, "search_category_list");
}

function searchAdverts()
{                                           
    url = "AdvertList.aspx?categoryId="+$('#ctl00_ContentPlaceHolder1_advertSearchForm_searchCategoryId').val()+'&cityId='+$('#ctl00_ContentPlaceHolder1_advertSearchForm_searchCityId').val()+'&keywords='+$('#ctl00_ContentPlaceHolder1_advertSearchForm_searchKeywords').val();
    window.location = url;
}

function searchFormSubmit(keyword, rootId, categoryId, topic)
{
    window.document.location = '/tr/Search.aspx?keyword='+keyword+'&root_category_id='+rootId+'&category_id='+categoryId+'&topic='+topic;
}

function votePoll(pid, aid)
{
    $.post("Poll_AjaxProxy.aspx", { method: "votePoll", pollId: pid, answerId: aid},
        function(data){
            window.document.location = "Anket.aspx?id=" + pid;    
        });
    
}

function addToArchive(aid)
{
    renderReplace("Article_AjaxProxy.aspx", {method: "addToArchive", articleId: aid}, "archive_span");
}

function getBranchList(cityId) {
    renderReplace("City_AjaxProxy.aspx", { method: "ListBranches", id: cityId }, "branch_list");
    //$(".warnText").show();
}

function getBranchListNew(cityId) {
    $.post("City_AjaxProxy.aspx", { method: "ListBranches", id: cityId },
    function(data) {
        if (data == 0) {
            //$("#cityArea").html("<div style='padding:10px;'>İlinizde Finansbank şubesi bulunmadığından kredi başvurunuz işleme alınamamaktadır. İlginize teşekkür ederiz.</div>");
            $("#err_message_js").show();
            $(".crArea").hide();
        }
        else {
            $("#" + "branch_list").html(data);
        }
    });
}

function kosgebGetBranchListNew(cityId) {
    $.post("KosgebCity_AjaxProxy.aspx", { method: "ListBranches", id: cityId },
    function(data) {
        if (data == 0) {
            //$("#cityArea").html("<div style='padding:10px;'>İlinizde Finansbank şubesi bulunmadığından kredi başvurunuz işleme alınamamaktadır. İlginize teşekkür ederiz.</div>");
            $("#err_message_js").show();
            $(".crArea").hide();
        }
        else {
            $("#" + "branch_list").html(data);
        }
    });
}

function sendAdvertMessage(id, messageBody)
{
    renderReplace("Advert_AjaxProxy.aspx", {method: "sendReply", messageId: id, body: messageBody}, "message_form_" + id);
}

function checkAll(val) {
    var list = $('input[@type=\'checkbox\']');
    for (i = 0; i < list.length; i++) {
        list[i].checked = val;
    }
}

function addbookmark(url, desc) {

    try 
    {
      var nonie = 'Üzgünüz, sadece Internet Explorer bu yöntemle sitemizi sık kullanılanlara eklemenize izin verir.\n Ancak ana sayfamızı ziyaret ederek kendiniz sitemizi sık kullanılanlara ekleyebilirsiniz.';

      if (!url && !desc) {
          var bookmarkurl = "http://www.kobifinans.com.tr";
          var bookmarktitle = "KobiFinans | KOBİ\'lerin Bilgi ve Danışmanlık Merkezi";
      } else {
          var bookmarkurl = url;
          var bookmarktitle = desc;
      }


      if (window.sidebar) { // Mozilla Firefox Bookmark
          alert('Firefox tarayıcınızın güvenlık kısıtlamaları nedeniyle sitemizi otomatik olarak sık kullanılanlara ekleyemiyorsunuz.\nAncak ana sayfamızda CTRL+D kısayonu ile sitemizi sık kullanılanlara ekleyebilirsiniz.');
      } else if (document.all) { // IE Favourites
          window.external.AddFavorite(bookmarkurl, bookmarktitle);
      } else {
          alert(nonie);
      }
    } catch(ex) {
    }
}


function setHome() {
    try
    {
      if (document.all) {
          document.body.style.behavior = 'url(#default#homepage)';
          document.body.setHomePage('http://www.kobifinans.com.tr/tr/');

      }
      else if (window.sidebar) {
          if (window.netscape) {
              try {
                  netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
              }
              catch (e) {
                  alert("Firefox tarayıcınız bu yöntemi desteklemiyor. Tarayıcınızın bu özelliğini etkinleştirmek için adres satırına about:config in yazarak signed.applets.codebase_principal_support seçeneğine karşılık gelen değeri true yapmalısınız.");
              }
          }
          var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
          prefs.setCharPref('browser.startup.homepage', 'http://www.kobifinans.com.tr/tr/');
      }
    } catch(ex) {
    }
}

function CheckAll() {
    for (var i = 0; i < document.forms[0].elements.length; i++) {
        var e = document.forms[0].elements[i];
        chk = checked ? false : true;
        if (e.name != 'Do') {
            e.checked = chk;
        }
    }
    checked = chk;

}


var fontIndex = 1;

function FontBuilder(location) {
    if (location == "up") {
        if (fontIndex < 5) {
            ++fontIndex;
        }
    }
    else{
        if (fontIndex > 1) {
            --fontIndex;
        }
    }
    switch (fontIndex) {
        case 1:
            document.getElementById('objectContent').style.fontSize = '11px'; document.getElementById('objectContent').style.lineHeight = '14px';
            break;
        case 2:
            document.getElementById('objectContent').style.fontSize = '12px'; document.getElementById('objectContent').style.lineHeight = '14px';
            break;
        case 3:
            document.getElementById('objectContent').style.fontSize = '14px'; document.getElementById('objectContent').style.lineHeight = '16px';
            break;
        case 4:
            document.getElementById('objectContent').style.fontSize = '16px'; document.getElementById('objectContent').style.lineHeight = '18px';
            break;
        case 5:
            document.getElementById('objectContent').style.fontSize = '18px'; document.getElementById('objectContent').style.lineHeight = '22px';
            break;
        default:
            break;
    }
}

function RegFontBuilder(location) {
    if (location == "up") {
        if (fontIndex < 5) {
            ++fontIndex;
        }
    }
    else {
        if (fontIndex > 1) {
            --fontIndex;
        }
    }
    switch (fontIndex) {
        case 1:
            $('.maintext').css('font-size', '11px').css('line-height', '14px');
            $('.loginbox3').css('font-size', '11px').css('height', '12pt');
            $('.loginbox_free').css('font-size', '11px').css('height', '12pt');
            $('.label-span').css('font-size', '9px');
            $('.radioButton label').css('font-size', '11px');
            break;
        case 2:
            $('.maintext').css('font-size', '12px').css('line-height', '14px');
            $('.loginbox3').css('font-size', '12px').css('height', '20px');
            $('.loginbox_free').css('font-size', '12px').css('height', '20px');
            $('.label-span').css('font-size', '11px');
            $('.radioButton label').css('font-size', '12px');
            break;
        case 3:
            $('.maintext').css('font-size', '14px').css('line-height', '16px');
            $('.loginbox3').css('font-size', '14px').css('height', '22px');
            $('.loginbox_free').css('font-size', '14px').css('height', '22px');
            $('.label-span').css('font-size', '13px');
            $('.radioButton label').css('font-size', '14px');
            break;
        case 4:
            $('.maintext').css('font-size', '16px').css('line-height', '18px');
            $('.loginbox3').css('font-size', '16px').css('height', '24px');
            $('.loginbox_free').css('font-size', '16px').css('height', '24px');
            $('.label-span').css('font-size', '15px');
            $('.radioButton label').css('font-size', '16px');
            break;
        case 5:
            $('.maintext').css('font-size', '18px').css('line-height', '20px');
            $('.loginbox3').css('font-size', '18px').css('height', '26px');
            $('.loginbox_free').css('font-size', '18px').css('height', '26px');
            $('.label-span').css('font-size', '17px');
            $('.radioButton label').css('font-size', '18px');
            break;
        default:
            break;
    }
}


$(document).ready(function() {
    try {
        $(".fixedY").height($("#breadcrumb").height());
        
        
        $("#nUserMenu li").mouseover(function(){
            if(!$(this).hasClass("firmTabStepNone"))
            {
                if(!$(this).hasClass("def"))
                {
                    $(this).addClass("active");
                }   
            }
        }).mouseout(function(){
            if(!$(this).hasClass("firmTabStepNone"))
            {
                if(!$(this).hasClass("def"))
                {
                    $(this).removeClass("active");
                }
            }
        });
        
    }
    catch (err) { }
});


//area1
$(document).ready(function(){
    $("#area1Active").click(function(){
        ShowArea("1");
    });
    $("#area2Active").click(function(){
        ShowArea("2");
        $("#area2 .c1").html("Mevcut E-posta");
        $("#area2 .ehidden").show();
    });
    $("#area3Active").click(function(){
        ShowArea("3");
        $("#area3 .c2").html("Eski Şifre");
        $("#area3 .ehidden").show();
    });
    $("#area4Active").click(function(){
        ShowArea("4");
    });
    $("#area1Passive").click(function(){
        HideArea("1");
    });
    $("#area2Passive").click(function(){
        HideArea("2");
        $("#area2 .c1").html("E-posta");
        $("#area2 .ehidden").hide();
        $(".valueEposta").val("");
        $(".valueNEposta").val("");
        $(".valueNNEposta").val("");
    });
    $("#area3Passive").click(function(){
        HideArea("3");
        $("#area3 .c2").html("Şifre");
        $("#area3 .ehidden").hide();
        $(".valsifre").val("");
        $(".valyenisifre").val("");
        $(".valyenisifretekrar").val("");
    });
    $("#area4Passive").click(function(){
        HideArea("4");
    });
});

function ShowArea(number){
    $("#area" + number + " .value").hide();
    $("#area" + number + " .inp").show();
    $("#areaControl" + number).addClass("open");
    $("#area" + number + "Active").hide(); 
}

function HideArea(number){
    $("#area" + number + " .value").show();
    $("#area" + number + " .inp").hide();
    $("#areaControl" + number).removeClass("open");
    $("#area" + number + "Active").show();
}


$(document).ready(function(){
    $(".nRow #area1 .lnk").click(function(){ ShowDetail("1"); });
    $(".nRow #area1 .clnk").click(function(){ HideDetail("1"); });
    $(".nRow #area2 .lnk").click(function(){ ShowDetail("2"); });
    $(".nRow #area2 .clnk").click(function(){ HideDetail("2"); });
    $(".nRow #area3 .lnk").click(function(){ ShowDetail("3"); });
    $(".nRow #area3 .clnk").click(function(){ HideDetail("3"); }); 
});

function ShowDetail(number){
    $(".nRow #area" + number + " .detail").show();
    $(".nRow #area" + number + " .cdiv").show();
    $(".nRow #area" + number + " .lnk").hide();
}

function HideDetail(number){
    $(".nRow #area" + number + " .detail").hide();
    $(".nRow #area" + number + " .cdiv").hide();
    $(".nRow #area" + number + " .lnk").show();
}


function changeStatusStep(strVal){
    if (strVal == 5) {
        $("#firmTabStep").addClass("firmTabStepNone");
        $("#firmTabStep").html("<span>Firma Bilgilerim</span>");
    }
    else if(strVal == 3 || strVal == 4){
        $("#firmTabStep").addClass("firmTabStepNone");
        $("#firmTabStep").html("<span>Firma Bilgilerim</span>");
    }
    else {
        $("#firmTabStep").removeClass("firmTabStepNone");
        $("#firmTabStep").html("<a href='userfirmmenu.aspx'>Firma Bilgilerim</a>");
    }
}

function UserDataProc(){
    $(".nMessage").html("Lütfen bekleyiniz."); 
    $(".nMessage").fadeIn("slow");
    
    $("#area1 .err").removeClass("err");
    $.post("UserMenuProc.aspx", { islem: "userdata", firstName: $(".valName").val(), lastName : $(".valLastName").val(), jobState:$(".valJobState").val(), mobileTel:$(".valMobileTel1").val() + "-" + $(".valMobileTel2").val() + "-" + $(".valMobileTel3").val(),
     workTel:$(".valWorkTel1").val() + "-" + $(".valWorkTel2").val() + "-" + $(".valWorkTel3").val(), otrStr:$(".valOtrStr").val() },
      function(data){
        if(data.Redirect){
             window.location.href="login.aspx?referer=usermenu.aspx";
        }
        if(data.IsError){
            setTimeout(function(){ $(".nMessage").html("Lütfen işaretli alanları kontrol ederek tekrar doldurunuz."); }, 1000);
            jQuery.each(data.ErrorList, function() {
                $("." + this).addClass("err");
            });
        }
        else{
            if(data.JobNo == 2){
                $(".tJob").addClass("tJobOtr");
            }
            else{
                $(".tJob").removeClass("tJobOtr");
            }
            $(".tFirstName").html(data.FirstName);
            $(".tLastName").html(data.LastName);
            $(".tJob").html(data.Job);
            $(".tMob").html(data.Mob);
            $(".tMob1").html(data.Mob1);
            $(".tOtrStr").html(data.OtrStr);
            $("#area1Passive").click();
            
            setTimeout(function(){ $(".nMessage").html("Bilgileriniz Kaydedildi."); }, 1000);
        }
    }, "json");
    
    setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 2000);
}

function UserDataEmailProc(){
    $(".nMessage").html("Lütfen bekleyiniz.").fadeIn("slow"); 
    $(".mailErrP").hide();
     
    $("#area2 .err").removeClass("err");
    $.post("UserMenuProc.aspx", { islem: "useremaildata", email:$(".valueEposta").val(), nemail: $(".valueNEposta").val(), nnemail: $(".valueNNEposta").val()},
      function(data){
        if(data.Redirect){
             window.location.href="login.aspx?referer=usermenu.aspx";
        }
        if(data.IsError){
            $("#area2 .inp").addClass("err");
            if(data.ErrorList != null){
                var str = data.ErrorList;
//                $(".mailErrP").html(str[0]);
//                $(".mailErrP").show();
                    setTimeout(function(){ $(".nMessage").html(str[0]); }, 500);
            }
            else{
                setTimeout(function(){ $(".nMessage").html("Lütfen işaretli alanları kontrol ederek tekrar doldurunuz."); }, 1000);
            }
        }
        else{
              $(".tEmail").html(data.Email);            
              $("#area2Passive").click();
              $(".mailErrP").hide();
              setTimeout(function(){ $(".nMessage").html("Bilgileriniz Kaydedildi.").fadeIn("slow"); }, 1000);
              setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 2000);
        }
    }, "json");
    
    setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 3000);
}

function UserDataPassProc(){
    $(".nMessage").html("Lütfen bekleyiniz."); 
    $(".nMessage").fadeIn("slow");
    
    $("#area3 .err").removeClass("err");
    $.post("UserMenuProc.aspx", { islem: "userpassdata", sifre:$(".valsifre").val(), yenisifre: $(".valyenisifre").val(), yenisifretekrar: $(".valyenisifretekrar").val()},
      function(data){
        if(data.Redirect){
             window.location.href="login.aspx?referer=usermenu.aspx";
        }
        if(data.IsError){
            $("#area3 .inp").addClass("err");
            setTimeout(function(){ $(".nMessage").css("height", "auto").html("Lütfen işaretli alanları kontrol ederek tekrar doldurunuz. Şifreniz en az 1 rakam ve 1 içermelidir; en az 8, en çok 12 karakterden oluşmalıdır. Şifrenizi belirlerken lütfen Türkçe karakter kullanmayınız."); }, 1000);
        }
        else{
              $(".tSifre").html(data.Tmps);
              $(".valsifre").val("");
              $(".valyenisifre").val("");
              $(".valyenisifretekrar").val("");
              $("#area3Passive").click();
              
              setTimeout(function(){ $(".nMessage").html("Bilgileriniz Kaydedildi."); }, 1000);
        }
    }, "json");
    
    setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 5000);
}

function UserDataPrefProc(){
    //$.blockUI(); 
    $(".nMessage").html("Lütfen bekleyiniz."); 
    $(".nMessage").fadeIn("slow");
    
    $("#area4 .err").removeClass("err");

    $.post("UserMenuProc.aspx", { islem: "userprefdata", customer:$(".valCustomer input:checked").val() == "is_customer_1", 
    branch:$(".valBranch").val(), country:$(".valCountry").val(), city:$(".valCity").val(), ilce:$(".valIlce").val(),
    gender:$(".valGender input:checked").val() == "bayan",
    bdGun:$(".valBd1").val(), bdAy:$(".valBd2").val(), bdYil:$(".valBd3").val(), nick:$(".valNick").val()},
      function(data){
        if(data.Redirect){
             window.location.href="login.aspx?referer=usermenu.aspx";
        }
        if(data.IsError){
            jQuery.each(data.ErrorList, function() {
                $("." + this).addClass("err");
                setTimeout(function(){ $(".nMessage").html("Lütfen işaretli alanları kontrol ederek tekrar doldurunuz."); }, 1000);
            });
        }
        else{
              $(".tCustomer").html(data.Customer);
              $(".tBranch").html(data.Branch);
              $(".tCountry").html(data.Country);
              $(".tCity").html(data.City);
              $(".tIlce").html(data.Ilce);
              $(".tGender").html(data.Gender);
              $(".tBd").html(data.Bd);
              $(".tNick").html(data.Nick);
              $("#area4Passive").click();
              
              //setTimeout(function(){ $(".blockUI h1").html("Bilgileriniz Kaydedildi."); }, 1000);
              setTimeout(function(){ $(".nMessage").html("Bilgileriniz Kaydedildi."); }, 1000);
        }
    }, "json");
    
    setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 2000);
}

function UserFirmProc(){
    $(".err").removeClass("err");
    $(".nMessage").html("Lütfen bekleyiniz."); 
    $(".nMessage").fadeIn("slow");
    
    $.post("UserMenuProc.aspx", { islem: "userfirmdata", firmName:$(".valFirmName").val(), sectorId:$(".valSectorid").val(), 
    mission:$(".valMission").val(), url:$(".valUrl").val(), definition:$(".valDef").val(), products:$(".valProd").val()},
      function(data){
        if(data.Redirect){
             window.location.href="login.aspx?referer=usermenu.aspx";
        }
        if(data.IsError){
            jQuery.each(data.ErrorList, function() {
                $("." + this).addClass("err");
                setTimeout(function(){ $(".nMessage").html("Lütfen işaretli alanları kontrol ederek tekrar doldurunuz."); }, 1000);
            });
        }
        else{
              $(".tFirmName").html(data.FirmName);
              $(".tSectorId").html(data.SectorId);
              $(".tMission").html(data.Mission);
              $(".tUrl").html(data.Url);
              $(".tDefinition").html(data.Definition);
              $(".tProducts").html(data.Products);
              $("#area1Passive").click();
              
              setTimeout(function(){ $(".nMessage").html("Bilgileriniz Kaydedildi."); }, 1000);
        }
    }, "json");
    
    setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 2000);
}

function UserAnalysisShow(id){
    $("#cvp_" + id).show();
    $("#cls_" + id).show();
    $("#opn_" + id).hide();
}

function UserAnalysisHide(id){
    $("#cvp_" + id).hide();
    $("#cls_" + id).hide();
    $("#opn_" + id).show();
}

$(document).ready(function(){ setTimeout(function(){ $(".nMessage").fadeOut("slow"); }, 2000); });