// JavaScript Document

function showYorumTab()
{
	
	
	var obj = document.getElementById("yorumtab").style;
	var objy = document.getElementById("yorumlnk").style;
	
	objy.visibility='hidden';
	objy.display='none';
	
	if (obj.visibility=='visible') 
	{
		obj.visibility='hidden';
		obj.display='none';
	} 
	else
	{		
		obj.visibility='visible';
		obj.display='block';
	}
	
}

function chkForm()
{
	if(document.yorum.kadi.value == "")
	{
		document.getElementById('eposta').style.backgroundColor = '#FF0000';
		document.getElementById('eposta').style.color = '#FFFFFF';
		err = true;				
	}
	
	if(document.yorum.sifre.value == "")
	{
		document.getElementById('sifremess').style.backgroundColor = '#FF0000';
		document.getElementById('sifremess').style.color = '#FFFFFF';
		err = true;				
	}
	
	if(document.yorum.yorum.value == "")
	{
		document.getElementById('mesaj').style.backgroundColor = '#FF0000';
		document.getElementById('mesaj').style.color = '#FFFFFF';
		err = true;				
	}
	
	if(err == true)
		return false;
	else
		return true;
}

function openUye()
{
	leftVal = (screen.width - 400) / 2;
	topVal = (screen.height - 400) / 2;

	window.open("./uyelik.php",'mywin','left='+leftVal+',top='+topVal+',width=400,height=400,toolbar=0,resizable=0');
}

function yazarMesaj(yID)
{
	leftVal = (screen.width - 400) / 2;
	topVal = (screen.height - 400) / 2;
	u = "mesaj.php?id="+yID;
	window.open(u,'mywin','left='+leftVal+',top='+topVal+',width=400,height=400,toolbar=0,resizable=0');
}