// JavaScript Document

function PencereAc(sayfa,left,top,width,height,menubar,statusbar,scrol)
{
	
	window.open(sayfa,"","left="+left+",top="+top+",width="+width+",height="+height+",menubar="+menubar+",status="+statusbar+",scrollbars="+scrol+",dependent");
	
}
function Duzenle()
{
var leftm=(screen.width-document.body.offsetWidth)/2;
var topm=(screen.height-document.body.offsetHeight)/2;

window.moveTo(leftm,topm);
}


function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function Reklam(){
	/*PencereAc("reklam1.html",1,1,1015,600,0,0,1);*/
	PencereAc("reklam2.html",20,20,1000,600,0,0,1);
	PencereAc("reklam3.html",40,40,710,550,0,0,0);
	
	}

function GosterGizle(id,gorunum)
	{
	document.getElementById(id).style.visibility=gorunum
	}
	
function YeniDivPencerem(sayfa,pencereismi,w,h)
{
 var ekstradegerler="width="+w+"px,height="+h+"px,resize=1,scrolling=1,center=1";
  var  yenipencerecik=dhtmlwindow.open(pencereismi, "iframe", sayfa, pencereismi, ekstradegerler, "recal");
  yenipencerecik.show();  
}
