function externalLinks() { 
	if (!document.getElementsByTagName) return; 
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; 
	} 
}
window.onload = externalLinks;



function popup(page) {
	window.open(page, "NEWUNSIZEABLE", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=450");
	return false;
}

function direct() {  
	//var now = new Date();
	//var windowhref = "http://czechrepublic.online.citibank.cz/HomeBankingSec/StartSession.asp?LANGNAME=English_(Czech)&LANG=1&DEVICEMODE=HTMLGPH&SRCT=10&BUSCODE=cz&SERVICECODE=SIGNON&MODE=2";
	//mainwin=window.open(windowhref,"citidirect","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes, resizable=yes, history=no, width=780,height=570");
	
  parent.document.location.href = "https://production.citibank.cz/CZGCB/JPS/portal/LocaleSwitch.do?locale=en_CZ";
	
	return false;
}

function showStep(id) {
	var contentbox = document.getElementById('content');
	var divs = contentbox.getElementsByTagName('div');
	for(var i=0; i<divs.length; i++) {
		if(divs[i].className == 'step') divs[i].style.display = 'none';
	}
	var current = document.getElementById('step' + id);
	current.style.display = 'block';
}
