var timer=null; 
//deneme
function deneme()
{
alert('deneme');
}
//iframee src ata
function iframeSrc(srcUrl,frameAdi)
{    
    window.open(srcUrl,frameAdi);
}
//iframeyi gizle
function iframeGizle(frameAdi)
{
	objFrame = document.getElementById ? document.getElementById(frameAdi): document.all[frameAdi];
        if(objFrame)
        {
	    //objFrame.style.top=-10000 + 'px';
		if (timer != null)
		{
		  clearTimeout(timer);
		}

	  objFrame.style.visibility = "hidden";
	}              
}
//iframeyi gizleXY
function iframeGizleXY(frameAdi)
{
	objFrame = document.getElementById ? document.getElementById(frameAdi): document.all[frameAdi];
        if(objFrame)
        {
	        objFrame.style.top=-10000 + 'px';
		if (timer != null)
		{
		  clearTimeout(timer);
		}

	  objFrame.style.visibility = "hidden";
	}              
}
//iframeyi goster
function iframeGoster(frameAdi,stilim)
{
	objFrame = document.getElementById ? document.getElementById(frameAdi): document.all[frameAdi];
        if(objFrame)
        {    
	iframeOrtala(frameAdi,stilim);        	
	}              
}
//iframeyi goster X Y
function iframeGosterXY(frameAdi,X,Y)
{
	objFrame = document.getElementById ? document.getElementById(frameAdi): document.all[frameAdi];
        if(objFrame)
        {    
	objFrame.style.visibility = "visible";
	objFrame.style.left=X + 'px';       	
	objFrame.style.top=Y + 'px';       	
	}              
}
//iframeyi ortala
	 function iframeOrtala(frameAdi,stilim)
         {               
           objFrame = document.getElementById ? document.getElementById(frameAdi): document.all[frameAdi];                               
           if(objFrame)
            {
            objFrame.style.visibility = "visible";               
			 if (stilim == 'alignAll')
			 {				 

		objFrame.style.left = (document.body.scrollLeft + document.body.clientWidth / 2 - parseInt(objFrame.style.width) / 2) + 'px';
               	objFrame.style.top  = (document.body.scrollTop + document.body.clientHeight / 2 - parseInt(objFrame.style.height) / 2) + 'px';               
               	//objFrame.style.top  = (document.body.scrollTop + document.documentElement.clientHeight / 2 - parseInt(objFrame.style.height) / 2) + 'px';               
			 }
		   	 else if (stilim=='alignLeft') 
			 {
			   objFrame.style.left = (document.body.scrollLeft + document.body.clientWidth / 2 - parseInt(objFrame.style.width) / 2) + 'px';
			 }
		   	 else if (stilim=='alignTop') 
			 {
               objFrame.style.top  = (document.body.scrollTop + document.documentElement.clientHeight / 2 - parseInt(objFrame.style.height) / 2) + 'px';
			}
              }
	       timer=setTimeout("iframeOrtala('" + frameAdi + "','" + stilim + "')",1)
       }
