function rakamyaz(inpObj) {
   		var temp="";
   		
   		for(var i=0;i<inpObj.value.length;i++){
   		  if(inpObj.value.charAt(i)<"0" || inpObj.value.charAt(i)>"9") break;
   		  temp=temp+inpObj.value.charAt(i);
   		}
	   inpObj.value=temp;
   }   
 
function indexSubmit()
	{
			document.forms['uyeler'].action = "index.php";
			document.forms['uyeler'].submit();
	}

function indexClick()
{
		indexSubmit()
}

function indexAraClick()
{
	if (document.forms.arama.ara.value !== "")
		location = "index.php?key=ara&ara=" + document.forms.arama.ara.value
}
function yorum_goster(sol,yukari,kitapid)
{
	x = document.getElementById("yorum1");
	x.style.display = "";
	x.style.marginLeft = sol;
	x.style.marginTop = yukari;
	document.forms.yorum_frm.kitap_id.value = kitapid;
}

function yorumSubmit()
	{
			document.forms['yorum_frm'].action = "index.php";
			document.forms['yorum_frm'].submit();
	}

function yorumClick()
{
	yorum = document.forms.yorum_frm.yorum.value;
	baslik = document.forms.yorum_frm.baslik.value;
	
	if (yorum == "" || baslik == "")
	{
		alert ("Yorum formunu doldurmadınız ...!");	
	}
	else
	{
		x = document.getElementById("yorum1");
		x.style.display = "none";
		x.style.marginLeft = 100;
		x.style.marginTop = 100;
		yorumSubmit();
	}
}
function yorumKapat()
{
	x = document.getElementById("yorum1");
	x.style.display = "none";
	x.style.marginLeft = 100;
	x.style.marginTop = 100;
}
