﻿// JScript File



var srch=0;


function ggc(e)
{
   if(window.event) // IE
    {
        keynum = e.keyCode
    }
    else if(e.which) // Netscape/Firefox/Opera
    {
        keynum = e.which
    }
   if(keynum==13)
    {
    srch=1;
    sd();
     }
     return false;
}

function sd()
{
    srch=1;
}


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=='Arama')
    {
        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.background="transparent";
}
function online()
{window.open("https://webapp.vdf.com.tr/vdfWeb/DebtInfo/UICustomerVerification.aspx","vdf","top=0,left=0,width=703,height=368,status=yes,scrollbars=yes,resizable=no");}

function survey()
{
document.getElementById('ctl00_ContentPlaceHolder1_Button1').style.display="none";
}
function resurvey()
{
document.getElementById('ctl00_ContentPlaceHolder1_Button1').style.display="block";
}