﻿function acKapa(obj) {
    var temp = $get(obj);
    if (temp.style.display == 'block')
        temp.style.display = 'none';
    else
        temp.style.display = 'block';
}

function acKapaBool(Contains, ContainsObj,  obj) {

    var temp = $get(obj);
    var tempContains = $get(ContainsObj);
    if (tempContains.text.indexof(Contains) - 1) {
        if (temp.style.display == 'block')
            temp.style.display = 'none';
        else
            temp.style.display = 'block';
    }
}

function acKapaRadio(Contains, contDurum, ekstra, durum) {

    var temp = Contains.split(';');
    var i;
    for (i = 0; i < temp.length; i++) {
        var etiket = $get(temp[i]);
        if (etiket != null) {
            etiket.style.display == contDurum;
        }
    }
    var temp2 = ekstra.split(';');
    var ii;
    for (ii = 0; ii < temp2.length; ii++) {
        var etiket2 = $get(temp2[i]);
        if (etiket2 != null) {
            etiket2.style.display == durum
        }
    }
}
function TextBoxTemizle(textboxs, controlShow, controlHide ) {

    alert($get(textboxs));
    
    this.tabs = textboxs.split(';');
    for (var i = 0; i < this.tabs.length; i++) {
        alert($get(this.tabs[i]).value);
        $get(this.tabs[i]).value = "" ;
    }
    $get(controlShow).style.display = 'block';
    $get(controlHide).style.display = 'none';
}




