if(navigator.appName == "Microsoft Internet Explorer") { 
     http = new ActiveXObject("Microsoft.XMLHTTP"); }  
else { 
     http = new XMLHttpRequest(); } 
 
function SehirSec() { 
     var kategori = document.getElementById('Ulke').value; 
     if(kategori!=0) { 
          http.open('get', 'http://www.haber1903.com/Request-' + kategori); 
          http.onreadystatechange = function() { 
               document.getElementById('Sehir').innerHTML = "yükleniyor..."; 
               if (http.readyState == 4) { 
                    document.getElementById('Sehir').innerHTML = http.responseText; } 
          }; 
          http.send(null); 
     }; 
} 

function LostPWS(frm,frmName){

if (!emailCheck(frm.FrmMAIL.value)) {alert("Lütfen geçerli bir e-mail adresi giriniz!"); return false}

    return true;
}


function DZUSERV(){
	
	var Adrex = "ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVYZWXabcçdefgğhiıjklmnöopqrsştuüvyzxw .:0123456789()/";
	var Mait = "ABCDEFGHIJKLMNOPQRSTUVYZWXabcdefghijklmnopqrstuvyzxw0123456789-_@.";
	var tel = "0123456789";
	var tela = "+0123456789";
	var Ald = "ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVYZWXabcçdefgğhiıjklmnöopqrsştuüvyzxw ";
	var Caca = "ABCDEF1234567890";

	if (document.UKayit.Telno.value == "" || document.UKayit.Telno.value.length<6 || document.UKayit.Telno.value.length>25){
		alert ("Lütfen Telefon Numaranızı Giriniz ! ! !\n\n    örn : +90532XXXXXXX ");
		document.UKayit.Telno.focus();
		return false;  
	}
	var kod = document.UKayit.Telno.value;
		for (var i=0;i<kod.length;i++){
		if (tela.indexOf (kod.substr(i,1),0) == -1){
		    alert ("Telefon Numaranızda Özel Karakterler Kullanamazsınız ! ! !\n\n    örn : +90532XXXXXXX ");
			document.UKayit.Telno.value = '';
			document.UKayit.Telno.focus();
	        return false;
		}
	}
	if (document.UKayit.AdSoyad.value == "" || document.UKayit.AdSoyad.value.length<5 || document.UKayit.AdSoyad.value.length>50){
		alert ("Lütfen Adınızı Doğru Girdiğinizden Emin olun ! ! ! [ 5 - 50 Karakter Arası]");
		document.UKayit.AdSoyad.focus();
		return false;  
	}	
	var kod = document.UKayit.AdSoyad.value;
		for (var i=0;i<kod.length;i++){
		if (Ald.indexOf (kod.substr(i,1),0) == -1){
		    alert ("Adınızda Özel Karakterler Kullanamazsınız ! ! !");
			document.UKayit.AdSoyad.value = '';
	        document.UKayit.AdSoyad.focus();
	        return false;
		}
	}	
	if (document.UKayit.Eposta.value == "" || document.UKayit.Eposta.value == "adiniz@adresiniz"){
		alert ("Lütfen Geçerli Mail Adresi Belirtiniz ! ! !\n\n    Örn : isminiz@domain.com");
		document.UKayit.Eposta.value = '';
		document.UKayit.Eposta.focus();
		return false;  
	}
	if (!emailCheck(document.UKayit.Eposta.value)) {alert ("Lütfen Geçerli Mail Adresi Belirtiniz ! ! !\n\n    Örn : isminiz@domain.com"); document.UKayit.Eposta.value = '';
		document.UKayit.Eposta.focus(); 
		return false;
	}
	var kod = document.UKayit.Eposta.value;
		for (var i=0;i<kod.length;i++){
		if (Mait.indexOf (kod.substr(i,1),0) == -1){
		    alert ("Lütfen Geçerli Mail Adresi Belirtiniz ! ! !\n\n    Örn : isminiz@domain.com");
			document.UKayit.Eposta.value = '';
	        document.UKayit.Eposta.focus();
	        return false;
		}
	}	
	if (!document.UKayit.Cins[0].checked && !document.UKayit.Cins[1].checked ){
		alert ("Lütfen Cinsiyetinizi Belirtiniz ! ! !");
		return false;  
	}	
	if (document.UKayit.DGun.value == "0" || document.UKayit.DAy.value == "0" || document.UKayit.DYil.value == "0"){	
		alert("Doğum Tarihiniz Geçersiz Lütfen Geçerli Bir tarih Giriniz ! ! !");
		document.UKayit.DGun.focus();
		return false;
	}	
	if (document.UKayit.Ulke.value == "" || document.UKayit.Ulke.value == "0"){	
		alert("Lütfen Yaşadığınız Ülkeyi Seçiniz ! ! !");
		document.UKayit.Ulke.focus();
		return false;
	}
	if (document.UKayit.Sehir.value == "" || document.UKayit.Sehir.value == "0"){	
		alert("Lütfen Yaşadığınız Şehri Seçiniz ! ! !");
		return false;
	}
	if (document.UKayit.Adress.value == "" || document.UKayit.Adress.value.length<6 || document.UKayit.Adress.value.length>200 ){
		alert ("Lütfen Adresinizi Düzgün Giriniz ! ! ! [ 6 - 200 Karakter Arası]");
		document.UKayit.Adress.focus();
		return false;
	}	
	if (document.UKayit.Caca.value == "" ){
		alert ("Güvenlik Kodunu Eksik Girdiniz ! ! !");
		document.UKayit.Caca.focus();
		return false;
	}
	if (!document.UKayit.Soz.checked ){
		alert ("Üyelik Şartları ve Kullanım Koşullarını Kabul Ediniz !!!");
		return false;  
	}
}


function ChkUserGold(){
	
	var pasta = "ABCDEFGHIJKLMNOPQRSTUVYZWXabcdefghijklmnopqrstuvyzxw0123456789";
	var Adrex = "ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVYZWXabcçdefgğhiıjklmnöopqrsştuüvyzxw .:0123456789()/";
	var Caca = "ABCDEF1234567890";	
	
	if (document.UGuncel.Sifre.value == "" || document.UGuncel.Sifre.value.length<6 || document.UGuncel.Sifre.value.length>12){
		alert ("Lütfen Şifrenizi Giriniz ! ! ! [ 6 - 12 Karakter Arası ]");
		document.UGuncel.Sifre.focus();
		return false;  
	}
	var kod = document.UGuncel.Sifre.value;
		for (var i=0;i<kod.length;i++){
		if (pasta.indexOf (kod.substr(i,1),0) == -1){
		    alert ("Şifrenizde Özel Karakterler ve Boşluk Kullanamazsınız ! ! ! [ 6 - 12 Karakter Arası ]");
			document.UGuncel.Sifre.value = '';
			document.UGuncel.Sifre.focus();
	        return false;
		}
	}
	
	if (document.UGuncel.DGun.value == "0" || document.UGuncel.DAy.value == "0" || document.UGuncel.DYil.value == "0"){	
		alert("Doğum Tarihiniz Geçersiz Lütfen Geçerli Bir tarih Giriniz ! ! !");
		document.UGuncel.DGun.focus();
		return false;
	}	
	if (document.UGuncel.Ulke.value == "" || document.UGuncel.Ulke.value == "0"){	
		alert("Lütfen Yaşadığınız Ülkeyi Seçiniz ! ! !");
		document.UGuncel.Ulke.focus();
		return false;
	}
	if (document.UGuncel.Sehir.value == "" || document.UGuncel.Sehir.value == "0"){	
		alert("Lütfen Yaşadığınız Şehri Seçiniz ! ! !");
		return false;
	}
	if (document.UGuncel.Adress.value == "" || document.UGuncel.Adress.value.length<6 || document.UGuncel.Adress.value.length>200 ){
		alert ("Lütfen Adresinizi Düzgün Giriniz ! ! ! [ 6 - 200 Karakter Arası]");
		document.UGuncel.Adress.focus();
		return false;
	}	
	if (document.UGuncel.Secret.value == "" || document.UGuncel.Secret.value == "0"){	
		alert("Lütfen Gizlilik Seviyesini Seçiniz ! ! !");
		document.UGuncel.Secret.focus();
		return false;
	}	
	if (document.UGuncel.Caca.value == "" ){
		alert ("Güvenlik Kodunu Eksik Girdiniz ! ! !");
		document.UGuncel.Caca.focus();
		return false;
	}
}