function ubkontrol(strURL,lyr) {
    var xmlHttpReq = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText,lyr);
        }
    }
    self.xmlHttpReq.send(sifreal());
}

function sifreal() {
    var form = document.forms['uyeform'];
    var isim = form.isim.value;
    var eposta = form.eposta.value;
    var ysifre1 = form.ysifre1.value;
    var ysifre2 = form.ysifre2.value;
    var duzenle = form.duzenle.value;
    qstr = "&ysifre1="+ysifre1 + "&ysifre2="+ysifre2 + "&isim="+isim + "&eposta="+eposta + "&duzenle="+duzenle;
    return qstr;
}

function updatepage(str,lyr){
    document.getElementById(lyr).innerHTML = str;
}

function capitalizeMe(obj) {
	val = obj.value;
	newVal = '';
	val = val.split(' ');
	for(var c=0; c < val.length; c++) {
	        newVal += val[c].substring(0,1).toUpperCase() + val[c].substring(1,val[c].length) + ' ';
	}
	obj.value = newVal;
}

function popText(id,content) {
    document.getElementById(id).value = document.getElementById(id).value + content;
}

function PopupPic(sPicURL) { 
	sPicURL = escape(sPicURL);
	window.open("http://www.netgaleri.com/popup.html?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
}