function B_UyeYeniKontrol()
{
var x       = 0
var newsletter_flg = '0'

hata_msj='';

if (document.bireysel.ad.value=='') { hata_msj=hata_msj+' - Name\n' }
if (document.bireysel.soyad.value=='') { hata_msj=hata_msj+' - Surname\n' }
if (document.bireysel.eposta1.value=='' || document.bireysel.eposta2.value=='') { hata_msj=hata_msj+' - E-mail Address\n' }

if (document.bireysel.guvenlik_soru.value=='') { hata_msj=hata_msj+' - Your Security Question selection\n' }
if (document.bireysel.guvenlik_cevap.value=='') { hata_msj=hata_msj+' - Your Security Question asnwer\n' }

if (document.bireysel.dogtar_gun.value=='' || document.bireysel.dogtar_ay.value=='' || document.bireysel.dogtar_yil.value=='' ) { hata_msj=hata_msj+' - Birthdate\n' }
if (document.bireysel.cinsiyet.value=='') { hata_msj=hata_msj+' - Sex\n' }
if (document.bireysel.medeni_durum.value=='') { hata_msj=hata_msj+' - Marital Status\n' }

if ( document.bireysel.hdnActionType.value != "1" ) 
{
	if (document.bireysel.ev_tel_kod.value != '' || 
	    document.bireysel.ev_tel_no.value != '') {
	    if (!isNumeric(document.bireysel.ev_tel_kod) || 
		    !isNumeric(document.bireysel.ev_tel_no)) {
	        hata_msj = hata_msj+'* Please enter a valid Home Phone!.\n';
	    }
	}
	
	if (document.bireysel.is_tel_kod.value != '' || 
	    document.bireysel.is_tel_no.value != '') {
	    if (!isNumeric(document.bireysel.is_tel_kod) || 
		    !isNumeric(document.bireysel.is_tel_no)) {
	        hata_msj = hata_msj+'* Please enter a valid Work Phone!.\n';
	    }
	}
	
	if (document.bireysel.cep_tel_kod.value != '' || 
	    document.bireysel.cep_tel_no.value != '') {
	    if (!isNumeric(document.bireysel.cep_tel_kod) || 
		    !isNumeric(document.bireysel.cep_tel_no)) {
	        hata_msj = hata_msj+'* Please enter a valid Mobile Phone!.\n';
	    }
	}

	if (document.bireysel.faks_kod.value != '' || 
	    document.bireysel.faks_no.value != '') {
	    if (!isNumeric(document.bireysel.faks_kod) || 
		    !isNumeric(document.bireysel.faks_no)) {
	        hata_msj = hata_msj+'* Please enter a valid Fax Number!.\n';
	    }
	}	
}
else
{
	if (document.bireysel.yeni_sifre1.value !='') { 
		if (document.bireysel.yeni_sifre1.value.length < 6) { 
			hata_msj=hata_msj+' - Your new password should be at least 6 characters..\n' 
		}
		else {
			if (document.bireysel.yeni_sifre1.value != document.bireysel.yeni_sifre2.value) { 
				hata_msj=hata_msj+' - The new passwords you entered are not the same..\n' 
			}
		}
	}
}

if (document.bireysel.ulke.value=='') { hata_msj=hata_msj+' - Your Resident Country selection\n' }
if (document.bireysel.ulke.value=='Turkey' && document.bireysel.il.value=='') { hata_msj=hata_msj+' - Your City selection\n' }
if ( !isCharSet( document.bireysel.semt ) ) { hata_msj=hata_msj+' - Please enter a valid Part\n' }
if (document.bireysel.egitim_durumu.value=='') { hata_msj=hata_msj+' - Your Education Level selection\n' }
if (document.bireysel.meslek_alani.value=='') { hata_msj=hata_msj+' - Your Occupation Area selection\n' }

for (i=0; i<=1; i++) { if (document.bireysel.yk_newsletter[i].checked) {newsletter_flg = '1'; break; } }
if (newsletter_flg == '0') { hata_msj=hata_msj+' - Do you want to be informed about the anouncements about Yurtiçi Kargo? \n' }

if (hata_msj) {hata_msj = '* Please fill in the compulsory fields.:\n'+hata_msj;}
/*
if (document.bireysel.yeni_sifre1.value !='') { 
	if (document.bireysel.yeni_sifre1.value.length < 6) { 
		hata_msj=hata_msj+' - Yeni şifre en az 6 karakter olmalı..\n' 
	}
	else {
		if (document.bireysel.yeni_sifre1.value != document.bireysel.yeni_sifre2.value) { 
			hata_msj=hata_msj+' - Girdiğiniz şifreler aynı değil\n' 
		}
	}
}
else {
	if (document.bireysel.yeni_sifre2.value !='') { 
		if (document.bireysel.yeni_sifre2.value.length < 6) { 
			hata_msj=hata_msj+' - Yeni şifre en az 6 karakter olmalı..\n' 
		}
		else {
			if (document.bireysel.yeni_sifre1.value != document.bireysel.yeni_sifre2.value) { 
				hata_msj=hata_msj+' - Girdiğiniz şifreler aynı değil\n' 
			}
		}
	}
}*/

/*
if (document.bireysel.is_tel_kod.value != '' || 
    document.bireysel.is_tel_no.value != '') {
    if (!isNumeric(document.bireysel.is_tel_kod) || 
	    !isNumeric(document.bireysel.is_tel_no)) {
        hata_msj = hata_msj+'* Lütfen iş telefon numaranızı doğru girdiğinizden emin olunuz!.\n';
    }
}

if (document.bireysel.cep_tel_kod.value != '' || 
    document.bireysel.cep_tel_no.value != '') {
    if (!isNumeric(document.bireysel.cep_tel_kod) || 
	    !isNumeric(document.bireysel.cep_tel_no)) {
        hata_msj = hata_msj+'* Lütfen cep telefon numaranızı doğru girdiğinizden emin olunuz!.\n';
    }
}
*/
if (document.bireysel.faks_kod.value != '' || 
    document.bireysel.faks_no.value != '') {
    if (!isNumeric(document.bireysel.faks_kod) || 
	    !isNumeric(document.bireysel.faks_no)) {
        hata_msj = hata_msj+'* Please be sure that you entered a valid Fax Number.\n';
    }
}

if (hata_msj) {alert(hata_msj);}

return (hata_msj == '');

}

function isNumeric(s)
{
	var charset = "1234567890"
    var i;
    for( i=0; i<s.value.length; i++ )
    {
        if( charset.indexOf(s.value.charAt(i))==-1 )
        {
            return false;
        }
    }
    return true;
}

function isCharSet(s)
{
	var charset =  " @abcçdefgğhıijklmnoöpqrsştuüvwxyzABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVWXYZ-_?=:/." 
    var i;
    for( i=0; i<s.value.length; i++ )
    {
        if( charset.indexOf(s.value.charAt(i))==-1 )
        {
            return false;
        }
    }
    return true;
}