function openPopUp(href, target, width, height)
{
	window.open(href, target, 'width=' + width + ', height=' + height + ', top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function openPopUp_520x390(href, target)
{
	return openPopUp(href, target, "520", "390");
}
function openPopUp_600x450(href, target)
{
	return openPopUp(href, target, "600", "450");
}
function openPopUp_800x600(href, target)
{
	return openPopUp(href, target, "800", "600");
}
function getSWF(swWidth, swHeight, swFile, swWmode)
{
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+swWidth+'  height='+swHeight+'>';
	str += ' <param name="movie" value="'+swFile+'" /> ';
	str += ' <param name="quality" value="high" /> ';
	str += ' <param name="wmode" value="'+swWmode+'" /> ';
	str += ' <embed src='+swFile+' width='+swWidth+' height='+swHeight+' quality="high" pluginspage="http://www .macromedia.com/go/getflashplayer" type="application/x-shoc kwave-flash" wmode="transparent"></embed> ';
	str += ' </object> ';
	document.write(str);
}
function cNews(_id, _title, _image, _short_content, _date, lang)
{
	document.getElementById("headline_title").innerHTML = _title;
	document.getElementById("headline_image").src = "images/news/" + _image + ".jpg";
	document.getElementById("headline_image").alt = _title;
	document.getElementById("headline_link").href = "news_detail.php?id=" + _id + "&lang=" + lang;
	document.getElementById("headline_short_content").innerHTML = _short_content;
	document.getElementById("headline_date").innerHTML = _date;
	
	return false;
}

function blinkIt()
{
	if(!document.all)
		return;
	else
	{
		for(i=0; i<document.all.tags('blink').length; i++)
		{
			s=document.all.tags('blink')[i];
			s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
		}
	}
}
function SymError()
{
	return true;
}
function deleteConfirm()
{
	var restart = confirm("Bu Kayıtı Silmek İstediğinizden Emin misiniz?");
	if(restart)
		return true;
	else
		return false;
}
function onlyNumber()
{
	if (event.keyCode < 48 || event.keyCode> 57) event.returnValue = false;
}