function Browser() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser./nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is = new Browser();

function bisube(){location.href="https://internetsube.akbank.com.tr/";}
function kusube(){var kuWin = window.open("https://ticinternetsube.akbank.com.tr/","kuWin","height=550,width=720,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");}


function arkadas(fl){
	var isb=window.open('/t/arkadasima_gonder/form.asp?file='+fl,'arkadasima_gonder','toolbar=0,width=400,height=400,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=0,copyhistory=1')
}


function alternate(html_ie,html_ns4,html_ns6) {
	if (is.ie) {
		document.write(html_ie);
	} else if (is.ns4) {
		document.write(html_ns4);
	} else {
		document.write(html_ns6);
	}
}

function getinnerURL(url) {
	
	if (is.ns4) {
		document.lyr.src=url;	
	} else {
		location.href=url
	}
	
}

function drawH(l) {
	if (!l) {
		l='100%';
	}
	document.write('<table cellpadding="0" cellspacing="0" border="0" width="'+l+'"><tr><td background="/i/hDotted.gif"><img src="/i/s.gif" height="1" width="1"></td></tr></table>')
	
}

function writeP(t,p,l,cl) {
	
	if (!p) {
		p=3;
	}
	
	if (!l) {
		l='100%';
	}
	
	if (!cl) {
		cl='s10';
	}
	document.write('<table cellpadding="'+p+'" cellspacing="0" border="0" width="'+l+'"><tr><td class="'+cl+'">'+t+'</td></tr></table>'); 
}

function loadPage(m) {
	if(m && is.ns4) {
		//document.lyr.src="imkb100.asp";
	}
}

if (is.ie || is.ns6) {
	
	document.write('<link href="/t/c/main.css" rel="StyleSheet" type="text/css">');
} else {
	document.write('<link href="/t/c/main_ns4.css" rel="StyleSheet" type="text/css">');
}


function formWin(patika){
	
	if (is.ie || is.ns6) {	
		var fw=window.open(patika,'yeni','toolbar=1,width=684,height=580,location=0,directories=0,status=1,scrollbars=1,menubar=0,resizable=1,copyhistory=1');
	} else {
		var fw=window.open(patika,'yeni','toolbar=1,width=780,height=580,location=0,directories=0,status=1,scrollbars=1,menubar=0,resizable=1,copyhistory=1');
	}
}

function popItUp(src,w,h,scrollbars,sta,lng) {
	if (!scrollbars) {scrollbars=1;};
	if (!sta) {sta=0;};
	if (!w) {w=400;};
	if (!h) {h=270;};
	if (!src) {return false;};
	if (!lng) {lng="t";};
	KopWin = window.open(src,"ben","toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=" + sta + ",scrollbars="+scrollbars+",menubar=0,resizable=1,copyhistory=1");
	
	KopWin.focus();
}


function coloredList2(renkler,basliklar) {

		if (renkler.length!=basliklar.length || renkler.length==0) {
			return false;
		}
		
		temp='<table cellpadding="2" cellspacing="0" border="0">';
		for (i=0;i<=renkler.length-1;i++) {
			temp+='<tr><td valign="center"><table cellpadding="0" cellspacing="0" border="0" width="9"><tr><td width="9" bgcolor="'+renkler[i]+'"><img src="/i/s.gif" height="8" width="1"></td></tr></table></td><td class="sb10">'+basliklar[i]+'</td></tr>';
		}
		temp+='</table>';
		return temp;
	
}

function coloredList(renkler,basliklar) {
	document.write(coloredList2(renkler,basliklar));
}
akPieces = {

	acrobat	:	function (cap,lnk) {
		document.write('<img src="/i/acrobat.gif" width="16" height="16" border="0" alt="" align="absmiddle">&nbsp;<a href="' + lnk + '" class="si" target="_blank">' + cap + '</a>')
	},

	acrobatNote	:	function (lng) {
		lt=akPieces.dottedRule();
		if(lng=="e"){
			var popPath = "javascript:popItUp('/c/acrobat.asp?lng=e')"
			document.write(lt+'<table border="0" cellspacing="0" cellpadding="0"><tr height="24"><td><img src="/i/s.gif" width="50" height="1"></td><td><img src="/i/acrobat.gif" alt="" border="0" width="16" height="16" align="absmiddle"></td><td>&nbsp;&nbsp;</td><td>If you have got trouble with opening the PDF documents, please click <a href="' + popPath + '" class="si">here.</a></td></tr></table>'+lt)
		} else {
			var popPath = "javascript:popItUp('/c/acrobat.asp')"
			document.write(lt+'<table border="0" cellspacing="0" cellpadding="0"><tr height="24"><td><img src="/i/s.gif" width="50" height="1"></td><td><img src="/i/acrobat.gif" alt="" border="0" width="16" height="16" align="absmiddle"></td><td>&nbsp;&nbsp;</td><td>PDF dosyalarını açmakta sorun yaşıyorsanız lütfen <a href="' + popPath + '" class="si">tıklayınız.</a></td></tr></table>'+lt)
		}
	},
	
	simPop : function (src,w,h) {
		var simWin = window.open(src,"simWin","height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no");
	},
	
	dottedRule : function() {
		return('<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td background="/i/hDotted.gif"><img src="/i/s.gif"></td></tr></table>')
	}
}
var ifrIndex=0;
var ifrArray=new Array();
function ifr(isim,src,x,y,w,h) {
	
	
	if (is.ie || is.ns6) {
		var tag='<iframe scrolling="no" frameborder="0" id="'+isim+'" src="'+src+'" style="position:absolute; left:'+x+'px; top:'+y+'px; width:'+w+'px; height:'+h+'px; overflow:hidden; overflow-y:hidden;"></iframe>';
	} else if (is.ns4) {
		var tag='<layer name="'+isim+'" left="'+x+'" top="'+y+'" width="'+w+'" height="'+h+'"></layer>';
	}

	//ifrArray.push(isim+'|'+src+'|'+tag);
	ifrArray[ifrIndex]=isim+'|'+src+'|'+tag;
	ifrIndex++;
}

function initIframe() {
	
	for (i=0;i<=ifrArray.length-1;i++) {
		
		ar=ifrArray[i].split('|');
		document.write(ar[2]);
		
	}
}

var iGlobal=-1;
var notCompleted=false;
function loadIframe() {
	
	
	iGlobal++;
	
	if (iGlobal==ifrArray.length) {
		notCompleted=false;
		
	} else {
		notCompleted=true;
	}
	
	if ((is.ie || is.ns6)) {
		notCompleted=false;
	}
	
	if (notCompleted) {
		
		
		
		
		ar=ifrArray[iGlobal].split('|');
		fr=ar[0];
		src=ar[1];
		eval('document.layers.'+fr+'.src=src;');
		eval('document.layers.'+fr+'.document.captureEvents(Event.load);');
		eval('document.layers.'+fr+'.onload=loadIframe;');
	
		if (is.ns4) {
			//eval('document.layers.'+fr+'.document.domain=document.domain');
		}
	}
}


function queryString(frm) {
	var tmp=''
	for(i=0;i<=frm.elements.length-1;i++) {
		vr=frm.elements[i].name;
		if (frm.elements[i].selectedIndex) {
			vl=frm.elements[i].options[frm.elements[i].selectedIndex].value;
		} else {
			vl=frm.elements[i].value;
		}
		tmp=tmp+vr+'='+vl+'&';
	}
	return tmp;
}


function nsBuildQS(obj,qs) {
	var urlSTR=obj.src;
	var t=urlSTR.split('?');
	urlSTR=t[0]+'?'+qs;
	obj.onload=null;
	obj.src=urlSTR;
}
/*function tarihYaz(bg,ba,by,eg,ea,ey,tatiller) {
	var tmp='';
	var MINUTE = 60 * 1000;
	var HOUR = MINUTE * 60;
	var DAY = HOUR * 24;
	var WEEK = DAY * 7;
	var t=0;
	var m='';
	bDate=new Date(by,ba,bg);
	eDate=new Date(ey,ea,eg);
	
	tatil=tatiller.split('|');
	
	while((bDate<=eDate)) {
		if (bDate.getDay()!=6 && bDate.getDay()!=5) {
			m+='<option value="'+bDate.getDate()+'.'+bDate.getMonth()+'.'+bDate.getYear()+'">'+bDate.getDate()+'/'+bDate.getMonth()+'/'+bDate.getYear()+'</option>';
		}
		
		
		ms=bDate.valueOf()+DAY;
		bDate=new Date(ms);
	}
	document.write(m);
}*/

function tarihYaz(opts) {
	op=opts.split('|');
	
	for (i=0;i<=op.length-1;i++) {
		t1=opts[i].split('.');
		Opt=t1[0]+'/'+t1[1]+'/'+t1[2];
		document.write('<option value="'+opts[i]+'">'+Opt+'</option>');
	}
}
