//yeni pencere açma fonksiyonu(kenar mesafeli)
function ypm(url,ad,gf,yf)
{	
	var win=null;
	settings='width='+(screen.width-gf)+',height='+(screen.height-yf)+',top='+(yf/3)+',left='+(gf/2)+',scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no';
	win=window.open(url,ad,settings);
	win.focus();
}

//resim büyütme ve küçülme fonksiyonları
var pm=0;
function calistirzoom(dislem)
{
	pm=dislem;
	boyutlandir();
	if(dislem!=0)
	bi=setInterval( "boyutlandir()",300);
}

function boyutlandir()
{
	if(typeof(iframe.document.res1)=='undefined')
	return;

	if(typeof(iframe.document.res1.og)=='undefined')
	{
		if(iframe.document.res1.width>30)
		iframe.document.res1.og=iframe.document.res1.width;
		else
		return;
	}

	var deger=75;
	if(pm==1)
	{
		if(iframe.document.res1.width<120)
		return;
		iframe.document.res1.width=iframe.document.res1.width-deger;
	}
	else if(pm==2)
	{
		if(iframe.document.res1.width>5000)
		return;
		iframe.document.res1.width=iframe.document.res1.width+deger;
	}
	else
	iframe.document.res1.width=iframe.document.res1.og;
}