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 openExt(url,type)
{
	if (type==1)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveHSBC.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveExt.asp?url="+escape(url),520,280)
		}
	}

function openExtEu(url,type)
{
	if (type==1)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveHSBC.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveExt_EU.asp?url="+url,520,280)
		}
	}

function openExt_p(url,type)
{
	if (type==1)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveToPremier.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveExt.asp?url="+url,520,280)
		}
	}

function openExte(url,type)
{
	if (type==1)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveHSBC_eng.asp?url="+url,520,280)
		}
	if (type==2)
		{
		newWindow("http://www.hsbc.com.tr/includes/LeaveExt_eng.asp?url="+url,520,280)
		}
	}

function newWindow(url,width,height)
{
	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()
{
		window.opener.focus();
		window.close();
}

function newFreeWindow(url)
{
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(url, '" + id + "');");
}


