bu kodu çekerken problem oluyormuş virüs uyarısı ;
function yashesapla()
{
var txtgun = document.getElementById('txtTarihGun').value;
var txtay = document.getElementById('txtTarihAy').value;
var txtyil = document.getElementById('txtTarihYil').value;
if(txtgun=='' || txtay=='' || txtyil=='' || txtgun>31 || txtay>12)
{
document.getElementById("sonuc").innerHTML = "Geçerli bir tarih giriniz.";
}
else
{
var txttip = document.getElementById('cmbTip').value;
var dogumtarihi = new Date(txtyil,txtay-1,txtgun-1);
var simdi = new Date();
var gun = dogumtarihi.getDate();
gun += 1;
var ay = dogumtarihi.getMonth();
var yil = dogumtarihi.getFullYear();
var resim = '';
if(txttip!=-1)
{
if(txttip==1)
{
yil += 16;
resim = 'A1.png';
}
else if(txttip==2)
{
yil += 18;
resim = 'A2.png';
}
else if(txttip==3)
{
yil += 20;
resim = 'A.png';
}
else if(txttip==4)
{
yil += 16;
resim = 'B1.png';
}
else if(txttip==5)
{
yil += 18;
resim = 'B.png';
}
else if(txttip==6)
{
yil += 18;
resim = 'BE.png';
}
else if(txttip==7)
{
yil += 18;
resim = 'C1.png';
}
else if(txttip==8)
{
yil += 18;
resim = 'C1E.png';
}
else if(txttip==9)
{
yil += 21;
resim = 'C.png';
}
else if(txttip==10)
{
yil += 21;
resim = 'CE.png';
}
else if(txttip==11)
{
yil += 21;
resim = 'D1.png';
}
else if(txttip==12)
{
yil += 21;
resim = 'D1E.png';
}
else if(txttip==13)
{
yil += 24;
resim = 'D.png';
}
else if(txttip==14)
{
yil += 24;
resim = 'DE.png';
}
else if(txttip==15)
{
yil += 18;
resim = 'F.png';
}
else if(txttip==16)
{
yil += 18;
resim = 'G.png';
}
else if(txttip==0)
{
yil += 16;
resim = 'M.png';
}
var ehliyetalmatarihi = new Date(yil,ay,gun);
if(ehliyetalmatarihi <= simdi)
{
document.getElementById("sonuc").innerHTML = "
Yaşınız ehliyet almaya yeterli. Hemen kursumuza gelerek işlemlerinizi başlatabilirsiniz.
Telefon Numaramız: 0535 642 51 52 - Siirt Lider Sürücü Kursu.";
/*
document.getElementById("sonuc").innerHTML = "Yaşınız ehliyet almaya yeterli. Hemen kursumuza gelerek işlemlerinizi başlatabilirsiniz. \n\nTelefon Numaramız: 0535 642 51 52 - Siirt Lider Sürücü Kursu.";
*/
}
else
{
document.getElementById("sonuc").innerHTML = "Şu Anda Ehliyet Alamazsınız. " + ehliyetalmatarihi.toLocaleString() + " tarihinden sonra ehliyet almak için kursumuza başvurabilirsiniz.";
/*
document.getElementById("sonuc").innerHTML = "Şu Anda Ehliyet Alamazsınız. " + ehliyetalmatarihi.toLocaleString() + " tarihinden sonra ehliyet almak için kursumuza başvurabilirsiniz.";
*/
}
}
else
{
document.getElementById("sonuc").innerHTML = "Almak istediğiniz ehliyet tipini seçiniz!";
}
}
}