﻿// JScript File

function textBoxTemizle(strItem)
{
    var obj = document.getElementById(strItem);
    obj.value="";
   
}

function txtPasswordFocus(strItem)
{
    var obj = document.getElementById(strItem);
    obj.value="";
//    obj.type="password";

//    if(strItem!="input")
//    {
// 	    var oldObject = document.getElementById(strItem);
//        var newObject = document.createElement('input');
//        newObject.type = "password";
//        //newObject.class="login3";
//        if(oldObject.name) newObject.name = oldObject.name;
//        if(oldObject.id) newObject.id = oldObject.id;
//        oldObject.parentNode.replaceChild(newObject,oldObject);
//        return newObject;    
//        
//     }     
    
}
function Tarih()
{
        
        var rblHemen = document.getElementById('rblGonderimZamani_0');
        var rblTarih = document.getElementById('rblGonderimZamani_1');
        var divTarih = document.getElementById('divTarih');
        if(rblTarih.checked)
        {
            divTarih.style.display = 'inline';
        }
        else
        {
            divTarih.style.display = 'none'
        }
}

 
    function FaturaAc(strItem)
    {
        window.open ("fatura.aspx?lID=" + strItem,
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=670,height=650,toolbars=0");
           return false;

    }
    
    function havale()
    {
    window.open ("havale.html",
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=500,height=550,toolbars=0");
           return false;
    }
    
    function arkadaslistesi()
    {
        window.open ("arkadasliste.aspx",
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=500,height=550,toolbars=0");
           return false;
    }
    function OylamaAc(strItem)
    {
        window.open ("oylama.aspx?lID=" + strItem,
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=670,height=550,toolbars=0");
           return false;

    }
  
     function AdresAcBos()
    {
        window.open ("adres.aspx",
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=570,height=520,toolbars=0");
           return false;

       
    }
  function AdresGosterMenu(strItem)
    {
        window.open ("adresGoster.aspx?AID=" + strItem + "&g=0",
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=570,height=520,toolbars=0");
           return false;
           

    }
    
    function AdresGoster(strItem)
    {
        window.open ("adresGoster.aspx?AID=" + strItem + "&g=0",
           "mywindow", "menubar=0,resizable=0,scrollbars=1," + 
           "width=570,height=520,toolbars=0");
           return false;
           

    }
function Kapat()
{
    window.opener.document.forms(0).submit();    
}

function OpenWindow(strYol,strItem,strCompany)
    {
        window.open (strYol +  strItem + "&coID=" +strCompany,
           "mywindow", "menubar=0,resizable=0," + 
           "width=700,height=340,toolbars=0,addressbar=0");

   
    }
    
    function OpenWindowDeneme(strItem,strCompany)
    {
        if (strCompany == 3)
        {
        window.open ("secimAramaOzelOOP.aspx?IID=" + strItem + "&sgID=" +strCompany,
           "mywindow", "menubar=0,resizable=0," + 
           "width=715,height=450,toolbars=0,addressbar=0");
        }
        else
        {
         window.open ("secimArama.aspx?IID=" + strItem + "&sgID=" +strCompany,
           "mywindow", "menubar=0,resizable=0," + 
           "width=720,height=360,toolbars=0,addressbar=0");
        }
  
    }
 
    
function OpenWindowOzel(strYol,strItem,strCompany)
{
    window.open (strYol + strItem + "&coID=" +strCompany,
       "mywindow", "menubar=0,resizable=0," + 
       "width=700,height=360,toolbars=0,addressbar=0");

}
function OpenWindowHediye(strItem)
{
    window.open ("/images/hediye/buyuk/" + strItem + ".jpg",
       "mywindow", "menubar=0,resizable=0," + 
       "width=400,height=400,toolbars=0,addressbar=0");

}
function OpenWindow2(strItem,strCompany)
    {
        window.open ("secimArama.aspx?IID=" + strItem + "&coID=" +strCompany + "&spd=1",
           "mywindow", "menubar=0,resizable=1," + 
           "width=700,height=360,toolbars=0,addressbar=0");

    }
    
function OpenWindowOzel2(strItem,strCompany)
{
    window.open ("secimAramaOzelOOP.aspx?IID=" + strItem + "&coID=" +strCompany + "&spd=1",
       "mywindow", "menubar=0,resizable=1," + 
       "width=715,height=450,toolbars=0,addressbar=0");

}
function kutmalaMaili(strItem)
{
    window.open ("kutlamaMail.aspx?FID=" + strItem ,"mywindow", "menubar=0,resizable=1," + 
       "width=520,height=430,toolbars=0,addressbar=0");

}

function Sozlesme()
{
    window.open ("sozlesme.htm","mywindow", "menubar=1,resizable=1," + 
       "toolbars=1,addressbar=1,scrollbars=1");
}
function copyright()
{
    window.open ("copyright.htm","mywindow", "menubar=0,resizable=0," + 
       "toolbars=0,addressbar=0,scrollbars=0,width=710,height=150");
}
function copyright2()
{
    window.open ("../copyright.htm","mywindow", "menubar=0,resizable=0," + 
       "toolbars=0,addressbar=0,scrollbars=0,width=710,height=150");
}
function Sozlesme2()
{
    window.open ("../sozlesme.htm","mywindow", "menubar=1,resizable=1," + 
       "toolbars=1,addressbar=1,scrollbars=1");
}
function Yonlendir2(object)
{
    var spans = document.getElementById("Label2");
    window.location = spans.innerHTML;

}
function Yonlendir1()
{
    var spans = document.getElementById("Label1");
    window.location = spans.innerHTML;

}function Yonlendir3()
{
    var spans = document.getElementById("Label3");
    window.location = spans.innerHTML;

}


   
   
