function HaberAc(HaberNo)
{
	window.open('haberdetay.aspx?haberNo=' + HaberNo,'','status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,width=650,height=500');
}

function sube()
{
    d=Math.round(Math.random()*10000)
    window.name = "AKBFNPORTALWN"+d;
    mbb1 = "Akbank" + "_" + window.name;
	mbb = "Akbank" ;

    if(document.getElementById('sube1').checked == true)
	{
        window.open("https://internetsube.akbank.com.tr/FN_main_yatirimciOTP.html", mbb1, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,dependent=no,resizable=no,top=0,left=0,width=790,height=545");
		//document.getElementById('musteriNo').value = "";
	}
    else if(document.getElementById('sube2').checked == true)
     {
	 window.open("https://internetsube.akbank.com.tr/FN_fromwwwakbankcom_first.html", mbb, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,dependent=no,resizable=no,top=0,left=0,width=790,height=545");    						//document.getElementById('musteriNo').value = "";
	 }
    else if(document.getElementById('sube3').checked == true)
     {   window.open("https://internetsube.akbank.com.tr/FN_main_HISOTP.html", mbb, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,dependent=no,resizable=no,top=0,left=0,width=790,height=545");
		//document.getElementById('musteriNo').value = "";
	 }
}

function bireyselsube(mbb, session)
{
    window.open("https://internetsube.akbank.com.tr/FN_fromwwwakbankcom_first.html", mbb, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,dependent=no,resizable=no,top=0,left=0,width=790,height=545");    
}

function hissesube(mbb, session)
{
    window.open("https://internetsube.akbank.com.tr/cgi-bin/direct_his_login.cgi?MBB=" + mbb + "&SS_ID=" + session + "&ISL=L", "hissesube", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,dependent=no,resizable=no,top=0,left=0,width=790,height=545");
}

function anlikborsa(mbb, session)
{
		window.open("http://webfx2.akbank.com.tr/webtop.jsp?foreks=" + mbb + "&sessionid="+ session + "&connectionType=TCP&layout=codebase:layout-yuzeysel.xml&language=tr&country=TR", "anlikborsa", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,dependent=no,resizable=no,top=0,left=0,width=555,height=100");
	

}

function teknikanaliz(mbb, session)
{
	
	//window.open("http://chartfx.akbank.com.tr/teknikanaliz/chart.jsp?foreks=" + mbb + "|" + session + "&connectionType=TCP&layout=codebase:layout-yuzeysel.xml&language=tr&country=TR", mbb, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,dependent=no,resizable=no,top=0,left=0,width=790,height=545");
	window.open("http://chartfx.akbank.com.tr/teknikanaliz/chart.jsp?foreks=" + mbb + "&sessionid="+ session , "teknikanaliz", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,dependent=no,resizable=no,top=0,left=0,width=850,height=600");
}

function disableEnterKey(e)
{
     var key;
	
     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox
     if(key == 13 && document.getElementById('musteriNo').value!="")
	 {
	sube();
	 }
     else
     return true;
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}