function internetWindow() //İnternet Bankacılığı için gerekli pencereyi açar.
{
	var url="https://bireysel.hsbc.com.tr/TUR"
	var DWin = window.open(url,"HSBCNET","toolbar=0,top=0,left=0,width=798,height=555,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1"); 
}

function kurumsalInternetWindow_ex() //İnternet Bankacılığı için gerekli pencereyi açar.
{
	var url="https://kurumsal.hsbc.com.tr/"
	var DWin = window.open(url,"kurumsal","toolbar=0,top=0,left=0,width=780,height=600,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1"); 
}

function kurumsalInternetWindow() //Kurumsal İnternet Bankacılığı için gerekli pencereyi açar.
{
var scrwidth=(screen.width>1000 ? 785:790); var scrheight=(screen.height>800 ? 608:522); 
var CWin = window.open("https://kurumsal.hsbc.com.tr/TUR/","Kurumsal","toolbar=0,top=0,left=0,width="+scrwidth+",height="+scrheight+",location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1,dependent=0");
}

function msignWindow() //m-Sign için gerekli pencereyi açar.
{
var scrwidth=(screen.width>1000 ? 785:790); var scrheight=(screen.height>800 ? 608:522); 
var CWin = window.open("https://kurumsal.hsbc.com.tr/TUR/MSGNAP_01.asp","Msign","toolbar=0,top=0,left=0,width="+scrwidth+",height="+scrheight+",location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1,dependent=0");
}

function msignKWindow() //m-Sign için gerekli pencereyi açar.
{
var scrwidth=(screen.width>1000 ? 785:790); var scrheight=(screen.height>800 ? 608:522); 
var CWin = window.open("https://kurumsal.hsbc.com.tr/TUR/MSGNOR_01.asp","MsignB","toolbar=0,top=0,left=0,width="+scrwidth+",height="+scrheight+",location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=1,dependent=0");
}

function openExt(url,type)
{
	if (type==1)
		{
		newWindow("/includes/LeaveHSBC.asp?url="+url,520,280)
		}
	if (type==2)
		{
		//newWindow("/includes/LeaveExt.asp?url="+url,520,280)
		newWindow("/includes/LeaveExt.asp?url="+escape(url),520,280)//Adreste & varsa excape(url)kullanılıyor. THK bağış sayfası için 
		}
	}

function openExtEu(url,type)
{
	if (type==1)
		{
		newWindow("/includes/LeaveHSBC.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("/includes/LeaveExt_EU.asp?url="+url,520,280)
		}
	}

function openExt_p(url,type)
{
	if (type==1)
		{
		newWindow("/includes/LeaveToPremier.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("/includes/LeaveExt.asp?url="+url,520,280)
		}
	}

function openExte(url,type)
{
	if (type==1)
		{
		newWindow("/includes/LeaveHSBC_eng.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("/includes/LeaveExt_eng.asp?url="+url,520,280)
		}
	}

function newWindow(url,width,height) //Yeni pencere açar
{
	day = new Date();
	id = day.getTime();
	PageName="Page"+id
	PageName = window.open(url,id,"toolbar=0,top=0,left=0,width="+width+",height="+height+",location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0"); 
}	

function closeWindow() //Açılan free window'u kapatmak için kullanılır.
{
		window.opener.focus();
		window.close();
}

function newFreeWindow(url) 
{
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(url, '" + id + "');");
}


