function Gkodjs(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}
function fkontrol()
{
	if(document.yrmyaz.yad.value==''){alert("Adını yazmayı unuttun.");
	document.yrmyaz.yad.focus(); return false;}
	if((document.yrmyaz.yposta.value.indexOf("@"))<1){alert("E-Mail adresi hatalı.");
	document.yrmyaz.yposta.focus();return false;}
	if((document.yrmyaz.yposta.value.lastIndexOf("."))-(document.yrmyaz.yposta.value.indexOf("@"))<2){alert("E-Mail adresi hatalı.");
	document.yrmyaz.yposta.focus();return false;}
	if((document.yrmyaz.yweb.value.indexOf("."))<1){alert("Web site adresinde hata var.");
	document.yrmyaz.yposta.focus();return false;}
	if((document.yrmyaz.yweb.value.lastIndexOf("."))-(document.yrmyaz.yweb.value.indexOf("."))<2){alert("Web site adresinde hata var.");
	document.yrmyaz.yweb.focus();return false;}
	//if(document.yform.yweb.value==''){alert("Web siteni yazmayı unuttun.");
	//document.yform.yweb.focus(); return false;}
	if(document.yrmyaz.yyorum.value==''){alert("Yorum yazmayacaksan ne diye tıklıyorsun?");
	document.yrmyaz.yyorum.focus(); return false;}
}
function Temajs(tema,menu)
{
	document.getElementById("tema").href = tema;
}
function ggizle(tabloid)
{
	var tablo = document.getElementById(tabloid);
	if (tablo.style.display == "block")
	tablo.style.display = "none";
	else
	tablo.style.display = "block";
}
function formreset(formad)
{
	document.getElementById(formad).reset();
}
function Ajaxla(gelen,giden,sayfa){
    $('#'+giden).ajaxStart(
    function(){$(this).html('<img src="Grafikler/yukleniyor.gif" alt="Yükleniyor...">');
    })
    $.ajax({
    type:'POST',
    url:sayfa,
    data:$('form#'+gelen).serialize(),
    success:function(ajaxCevap){
            $('#'+giden).html(ajaxCevap);
			document.getElementById(gelen).reset();
    }
    })
}
