var srch=0;

function sd()
{
srch=1;
}

function ugpdemo()
{window.open('http://demo.garanti.com.tr/ugp/demo_visa.html','ugp_demo','status=yes,scrollbars=no,width=500,height=500');}

function isube()
{window.open("https://sube.garanti.com.tr/isube/login","xsube","top=0,left=0,width=790,height=543,status,resize='no'");}

function search2()
{
    if(srch==1)
    {
    var ss = document.getElementById('ctl00$searchBox').value;
    var badChar = " /\\+()*&^%$#?<>=!~`[]|:;,'\"";
    var doc =ss;
    for (j=0;j<ss.length;j++){
    var illChar = ss.charAt(j);
    if (badChar.indexOf(illChar,0) !=-1){
    doc=doc.replace(illChar," ")
    }
    }
    var s=doc;
    document.getElementById('ctl00$searchBox').value=s;
    var er="";
    if(s=='Bulunacak kelimeler')
    {
        er="1";
    }
    
    if(s.length < 3){er="1"}

    if(er=="")
    {
        
        window.location='/search.aspx?key=' + s;
    }
    else
    {
    
    document.getElementById('ctl00$searchBox').style.backgroundColor="#D7D7D7";
    setTimeout("co()",20);
    return false;
    }
   
    }
}

function co()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#ffffff";
setTimeout("co2()",20);
}
function co2()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#D7D7D7";
setTimeout("co3()",20);
}
function co3()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#ffffff";
setTimeout("co4()",20);
}
function co4()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#D7D7D7";
setTimeout("co5()",20);
}
function co5()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#ffffff";
setTimeout("co6()",20);
}
function co6()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#D7D7D7";
setTimeout("co7()",20);
}
function co7()
{
document.getElementById('ctl00$searchBox').style.backgroundColor="#ffffff";
}

function mmUp(obj)
{
//document.getElementById('mmr').className='collapsibleClosed';

divs = document.getElementsByTagName("div");

    for (x=0; x<divs.length; x++) {
        if (divs[x].className=="collapsibleOpen") {
        divs[x].className='collapsibleClosed';
        }
    }


if(obj.className=='collapsibleOpen'){obj.className='collapsibleClosed';}
else{obj.className='collapsibleOpen';}


}

function tsend(obj)
{
    var cr=obj.value.length;
    if(cr==3)
    {
    document.getElementById('ctl00_ContentPlaceHolder1_bilgitalep1_TextBox3').focus();
    }
}
function csend(obj)
{
    var cr=obj.value.length;
    if(cr==3)
    {
    document.getElementById('ctl00_ContentPlaceHolder1_bilgitalep1_TextBox5').focus();
    }
}
