function JSF__UserLogin() 
    {
    user_name=document.getElementById('giriseposta').value;
    password=document.getElementById('girissifre').value;

    if ((user_name=="") || (password==""))
        {
        alert("Eposta ve/veya Parolanızı girin!");
        }
        else
        {
        var xmlHttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP6.0");
        var URL = "uye_giris.php?user_name_=" + user_name +"&password_="+password+"&nocache=" + Date();
        try {
            xmlHttp.open("POST", URL, true);
            xmlHttp.onreadystatechange = function() {

            if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
                {
                var response = xmlHttp.responseText;
                document.getElementById('user_status').innerHTML=response;
                }
            }
            xmlHttp.send(null);
            }
            catch (e) {
            }
        }
    }
	
function SifreDegistirKontrol()	
    {
    var sifre1=document.getElementById('sifred1').value;
    var sifre2=document.getElementById('sifred2').value;

    if ((sifre1!=sifre2) || (sifre1==""))
        {
        alert("Şifreniz hatalı kontrol ederek tekrar deneyin");
        return false;
        }
        else
        {
        if (sifre1.length<4) {alert("Şifreniz En Az 4 Karekterden oluşmalı");return false;} 													else {return true;}
        }
    }
	
function paylas(url)
    {
    width=600;
    height=600;
    window.open(url,'paylas','location=no,toolbar=no,width='+width+',height='+height+',directories=no,status=no,scrollbars=yes,resize=yes,menubar=no,left=300,top=10')
    }
	
function etkinlikleri_getir(ay,yil)
    {
    var xmlHttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP6.0");
    var URL = "etkinlik.php?ay=" + ay +"&yil="+yil+"&nocache=" + Date();

    try {
        xmlHttp.open("POST", URL, true);
        xmlHttp.onreadystatechange = function() {

        if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
            {
            var response = xmlHttp.responseText;
            document.getElementById('calender_container').innerHTML=response;
            }
        }
        xmlHttp.send(null);
        }
        catch (e) {
        }
    }
