﻿//****************************************************************************************************************
//PENCERELERI SAYFANIN TAM ORTASINDA AÇTIRIR. BUYUKLUKLER STANDARTIZE EDILIYOR
//****************************************************************************************************************
function windowopen(theURL,winSize) {
  if (winSize == "minimal") 	{ myWidth=600 ; myHeight=400 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "maximum") 	{ myWidth=900 ; myHeight=500 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "normal") 	    { myWidth=400 ; myHeight=300 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "liststyle") 	{ myWidth=600 ; myHeight=400 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "datestyle") 	{ myWidth=600 ; myHeight=500 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "pagestyle") 	{ myWidth=700 ; myHeight=500 ; features = "scrollbars=1, resizable=1" ; }
  if (winSize == "irsaliye") 	{ myWidth=1000 ; myHeight=650 ; features = "scrollbars=1, resizable=1"; }
  if(window.screen)
  {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
  features+=(features!='')?',':''; 
  features+=',left='+myLeft+',top='+myTop; 
  }
  window.open(theURL,'',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;}
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);}
//****************************************************************************************************************
//PENCERELERI FRAME SEKLINDE ACAR.
//****************************************************************************************************************
function useframewindow(windowwidth,windowheight,windowurl,frametype){
	document.getElementById("showwindowobject1").style.width = windowwidth+'px';
	document.getElementById("showwindowobject1").style.height = windowheight+'px';
	document.getElementById("showwindowobject1").style.left=(document.body.clientWidth-windowwidth)/2+'px';
	document.getElementById("showwindowobject1").style.top=document.documentElement.scrollTop+(document.documentElement.clientHeight-windowheight)/2 + 'px';
	document.getElementById("showwindowobject1").style.display='';
	document.getElementById("showwindowobject1").innerHTML = '<iframe id="showframeobject" style="background-color: transparent;" ALLOWTRANSPARENCY="true" scrolling="no" width="100%" height="100%" frameborder="0" src=""></iframe>'
	if(frametype==0)
	{
		document.getElementById("showframeobject").src= windowurl + "?randomtimetp=" + (new Date()).getTime() + "&srclst=1";
	}
	else
	{
		document.getElementById("showframeobject").src= windowurl + "&randomtimetp=" + (new Date()).getTime() + "&srclst=1";
	}
}
function closeframewindow()
{
	document.getElementById("showwindowobject1").style.display = 'none';
	document.getElementById("showshadowobject1").style.display = 'none';
	document.getElementById("showwindowobject1").innerHTML='';
}
