﻿  


function chkItem(chkB) {
    if (chkB.checked == true) {
        chkB.parentElement.parentElement.style.backgroundColor = '#f4efef';
    }
    else {
        chkB.parentElement.parentElement.style.backgroundColor = '#ffffff';


    }
}

function chkItem(chkB) {
    if (chkB.checked == true) {
        chkB.parentElement.parentElement.style.backgroundColor = '#f4efef';
    }
    else {
        chkB.parentElement.parentElement.style.backgroundColor = '#ffffff';


    }
}

function hepsiniSec() {
    var i = 0;
    for (i = 0; i <= 5; i++) {
        document.write("The number is " + i);
        document.write("<br />");
    }
}


function bagir(txt) {
    var mesaj = txt.value;
    if (mesaj.length < 3) {
        alert('Arama yapmak için en az 3 karakter giriniz!!!');
        return false;
    }
    else {
        return true;
    }
}

function txtTemizle(txt) {
    if (txt.value == 'arama') {
        txt.valueOf = "";
    }
}

function EmailKontrol(txt) {
    var txtMail = txt;
    if (txtMail.value.trim() == '') {
        alert('Lütfen mail adresinizi girin!!!');
        return false;

    }
    var gecerlimail = txtMail.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
    if (!gecerlimail) //var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
    {
        alert('Lütfen mail adresinizi doğru girdiğinizden emin olun!!!');
        return false;
    }
    
    
   
}

 function mypopup()
    {
        mywindow = window.open("satissozlesmesi.html", "satış sözleşmesi", "location=1,status=1,scrollbars=1,width=100,height=100"); 
        mywindow.moveTo(0,0);
    }
    
    function popupwin(url,w,h){
    
         mywindow = window.open(url, "aciklama", 'location=1,status=1,scrollbars=1,resize=1,width='+w+',height='+h+''); 
        //mywindow.moveTo(0,0);
        
    }

function tabdegis(tabsirasi)
{
    var i=1;
    for (i=1;i<=6;i++)
    {
        var div = document.getElementById('th'+i);
        div.className
        document.getElementById('th'+i).style.backgroundImage = "url(tabimages/tab_inaktif.jpg)";
        document.getElementById('th'+i).style.width='120px'
    }
    document.getElementById('th'+tabsirasi).style.backgroundImage = "url(tabimages/tab_aktif.jpg)";
    document.getElementById('th'+tabsirasi).style.width='134px';

}

function customerror()
{
    document.write('<div class="formframe" style="height: 250px; width: 600px; position: absolute; background-color:White;"></div>');
    
}
    
