var NS4 = (document.layers) ? 1 : 0;
var NS6 = (!document.all && document.getElementById) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var popup=0;

var fonds=800;
var kag=30;

var sh = screen.height;
var sw = screen.width;
var xpos = parseInt((sw - 760) / 2);
var ypos = parseInt((sh - 550) / 2);

var home_prot = window.location.protocol + "//";
var home_url = location.host;
if (home_url.indexOf("powerpool") > -1) top.location.replace("/powerpool/");


var url = "";

var fnw_url = new Array();
fnw_url['new'] = "/";
fnw_url['berater'] = "/";
fnw_url['beraterkunde'] = "/";
fnw_url['direkt'] = "/";
fnw_url['sitemap'] = "service/sitemap.html";
fnw_url['home'] = "index.html";
fnw_url['search'] = "service/suche.html";
fnw_url['contact'] = "fidelity/kontakt/";
var popup=0;
var prncount="0";
var MONTHS = new Array("Januar", "Februar", "M&auml;rz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");

StartUpCode();

function act(imgName) {
if (document.images)
		document[imgName].src = eval(imgName + "on.src");
}
function inact(imgName) {
	if (document.images)
      document[imgName].src = eval(imgName + "off.src");
}
function preload(imgObj, imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}
function changeImage(imgName,imgObj) {
	if (document.images) {
	document[imgName].src = eval(imgObj+".src")
	}
}

/*
isValid: checkt einen String gegen einen regulären Ausdruck
output:
'True' wenn String dem regulären Ausdruck genügt, sonst 'False'
*/
var RE_TELEFON = '^[0-9 /\\-\\(\\)+]*$';
var RE_EMAIL = '^[\\!\\%\\w\\.\\-+=/]+@[\\w\\.\\-]+$';
var RE_PLZ = '^[0-9]{5}$';


function isValid(sValue, sRE) {
	var re = new RegExp(sRE);

	return re.test(sValue);
}


/*
##############################################
goOpener: oeffnet URL im Opener des aktuellen Windows
input: url - zu oeffnende URL
*/

function goOpener(url) {
	document.location.href = url;
}


/*
writeCopyDate : add the copyright details
##########################################
*/
function writeCopyDate(popup)
{
	out='<table width="100%" border="0" cellpadding="0" cellspacing="0" hspace="0" vspace="0">';
	out+='<tr height="1"><td colspan="2" bgcolor="#CCCCCC"><img src="/common/images/common/shim.gif" width="1" height="1" alt=""></td></tr>\n';
	out+='<tr valign="middle"><td align="left"><span class="grey">';
	out+='&nbsp;&copy; FIL Limited 1996-2010';
	if (!popup)
	{	out+='&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/legal/legal_at.html" class="grey">Rechtliche Hinweise</a>';
		out+='&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/legal/impressum.html" class="grey">Impressum</a>';
	}
	out+='</span></td>';
	out+='<td align="right">';
	out+='<img src="/common/images/nav/fidelity_international.gif" height="25" align="right" hspace="2" vspace="2" width="125" border="0" alt="Fidelity International"></td>';
	out+='</tr></table>';
	document.writeln(out);
}


function writeLayer(lay_name,out)
{
	if(NS4)
	{
		lay_out = document.layers[lay_name];
		if (lay_out)
		{
			lay_out.document.open();
			lay_out.document.write(out);
			lay_out.document.close();
		}
	}
	if(IE4)
	{
		lay_out = document.all[lay_name];
		if (lay_out)
		{
			lay_out.innerHTML=out;
		}
	}
	if(NS6)
	{
		lay_out = document.getElementById(lay_name);
		if (lay_out)
		{
			lay_out.innerHTML=out
		}
	}
}


function openDisclaimer() {
	var dWnd = window.open('http://'+home_url+'/legal/legalpop.html', 'fnwDisclaimer', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=600,height=430,top=' + ypos + ',left=' + xpos);
}
function openImpressum() {
	var iWnd = window.open('http://'+home_url+'/legal/impressum.html', 'fnwImpressum', 'resizable=yes,scrollbars=no,menubar=no,location=no,toolbar=no,status=no,width=680,height=600,top=' + ypos + ',left=' + xpos);
}
function openRisikoBerater() {
	var iWnd = window.open('http://'+ home_url+'/mifid/risiken.html', 'risiken', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=550,height=590,top=' + ypos + ',left=' + xpos);
}
function openFNWOnlineAppl() {
	var iWnd = window.open('https://www.webxpress.fidelity.at/defnw/general/jsp/general_onlineAppFNW.jsp', 'fnwAppl', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=800,height=550,top=' + ypos + ',left=' + xpos);
}
function openOnlineAppl() {
	var iWnd = window.open('https://www.webxpress.fidelity.at/defnw/general/jsp/general_onlineAppWelcome.jsp', 'fisAppl', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=800,height=550,top=' + ypos + ',left=' + xpos);
}
function openWebX() {
	var iWnd = window.open('https://www.webxpress.fidelity.at/defnw', 'fnwWebX', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
}
function openAccess() {
	var iWnd = window.open('https://access.fidelity.at/defnw/', 'fnwAccess', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
}
function openMusterdepot() {
	var iWnd = window.open('http://portfolio.fidelityfnw.onvista.de/index.html?ID_CONTINGENT=20', 'fnwMusterdepot', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
}


function StartUpCode()
{
	preload('print_off','/common/images/common/i_print.gif');
	preload('print_on','/common/images/common/i_print_over.gif');
	
	preload('video_off','/common/images/nav/video_off.gif');
	preload('video_on','/common/images/nav/video_on.gif');

	preload('tool_off','/common/images/nav/tool_off.gif');
	preload('tool_on','/common/images/nav/tool_on.gif');
	
	preload('chart_off','/common/images/nav/chart_off.gif');
	preload('chart_on','/common/images/nav/chart_on.gif');
	
	preload('info_off','/common/images/nav/info_off.gif');
	preload('info_on','/common/images/nav/info_on.gif');

	preload('email_off','/common/images/nav/email_off.gif');
	preload('email_on','/common/images/nav/email_on.gif');

	preload('zur_uebersicht_off','/common/images/nav/zur_uebersicht_off.gif');
	preload('zur_uebersicht_on','/common/images/nav/zur_uebersicht_on.gif');

	window.defaultStatus= "Fidelity's Investment Professionals Website";
}
function locateStream()
{
	if ((window.location.href.indexOf("/beraterkunde/") > -1) || (window.location.href.indexOf("=beraterkunde") > -1 ))
	{
		return('beraterkunde');
	}
	else if ((window.location.href.indexOf("/berater/") > -1 ) || (window.location.href.indexOf("=berater") > -1 ))
	{
		return('berater');
	}
	else if ((window.location.href.indexOf("/direkt/") > -1) || (window.location.href.indexOf("=direkt") > -1 ))
	{
		return('direkt');
	}
	else return('new');
}


/*
##############################################
goOpener: oeffnet URL im Opener des aktuellen Windows
input: url - zu oeffnende URL
*/

function goOpener(url) {
	document.location.href = url;
}

function go(url,stream)
{
	if (url)
	{
		if (stream)
		{
			document.location.href = 'http://' + home_url + fnw_url[locateStream()] + fnw_url[url];
		}
		else
		{
			document.location.href = 'http://' + home_url +'/'+ url;
		}
	}
}

function popFactSheet(wkn,cob)
{
	var url = "http://www.fidelity.mdgms.com/funds/snapshot.html?WKN=" + wkn + "&VIEW=popup&ID_CONTINGENT=2";
	var reference = "factsheet" + wkn;
	var name = reference;
	var width = 650;
	var height = 580;
	fidOpenNewWindow(reference, url, name, width, height,"yes");
}
function popID(id)
{
	var url = "http://www.fidelity.mdgms.com/funds/snapshot.html?ID_CONTINGENT=2&ID_INSTRUMENT=" + id + "&VIEW=popup";
	var reference = "factsheet" + id;
	var name = reference;
	var width = 650;
	var height = 580;
	fidOpenNewWindow(reference, url, name, width, height);
}

function popCalc(wkn)
{
	var url = "http://www.fidelity.mdgms.com/funds/fondsrechner_bvi.html?WKN=" + wkn + "&VIEW=popup";
	var reference = "calc" + wkn;
	var name = reference;
	var width = 650;
	var height = 580;
	fidOpenNewWindow(reference, url, name, width, height);
}
function popPro(wkn)
{
	var url = "http://www.fidelity.mdgms.com/funds/brochures.html?NSIN=" + wkn + "&VIEW=popup";
	var reference = "pro" + wkn;
	var name = reference;
	var width = 740;
	var height = 580;
	fidOpenNewWindow(reference, url, name, width, height);
}

/*
##############################################
fidOpenNewWindow(winReference, winUrl, winName, width, height)
generic popup
*/
var openWindows = new Object();
function fidOpenNewWindow(winReference, winUrl, winName, width, height,options)
{
	if (!winName)
		winName = winReference + "";
	if (!width)
		width = 810;
	if (!height)
		height = 580;
	if (!options)
		options = 'yes';

	if (!openWindows[winReference] || (openWindows[winReference] && openWindows[winReference].closed))
		if (window.layers)
			openWindows[winReference] = window.open(winUrl, winName,  'resizable='+options+',scrollbars='+options+',menubar=no,location=no,toolbar=no,status=no,width='+width+',height='+height+',left=30,top=30');
		else
			openWindows[winReference] = window.open(winUrl, winName,  'resizable='+options+',scrollbars='+options+',menubar=no,location=no,toolbar=no,status=no,width='+width+',height='+height+',screenX=30,screenY=30');
	else
		openWindows[winReference].focus();
}

//*********************
// generic cookie drop
//*********************

var days= 7

function dropCookie(name, value, days, path, domain, secure)
{
	var lt = new Date();
	var lifetime = new Date();

	lifetime = eval(lt.getTime() + (86400000 * days));

	var curDate = new Date();
	var expDate = new Date();

	expDate.setTime(lifetime);

	var cookie = name + '=' + value;

	if (lifetime)
		cookie += '; expires=' + expDate.toGMTString();
	if (path)
		cookie += '; path=' + path;
	if (domain)
		cookie += '; domain=' + domain;
	if (secure)
		cookie += '; secure';
//    	alert(cookie);
	document.cookie = cookie;

}

function cookie_enabled(cookie_name)
{
	if (document.cookie.indexOf(cookie_name) < 0)
	{
		dropCookie(cookie_name,"!AA%3A%3A-1",0.1, '/', '.fidelity.at',0);
	}
	if (document.cookie.indexOf(cookie_name) < 0)
	{	
		return(false);
	}
	else return(true);	
}

function cookie_matrix(cookie_name)
{
	if (cookie_enabled(cookie_name))
	{	
		doc_raw = new Array(2);
		temp = new Array(2);
		
		temp = document.cookie.split(cookie_name + "=");
		doc_raw = temp[1].split("; ");
		var cookie_array = new Array();
		cookie_array = doc_raw[0].split("%3B");

	
		for (var i=0; i < cookie_array.length; i++)
		{
			temp="";
			t = cookie_array[i];
			temp = t.split("%3A%3A");
			cookie_array[i] = new Array(2);
			cookie_array[i][0] = temp[0];
			cookie_array[i][1] = temp[1];
		}
		return (cookie_array);
	}
	else return('!AA,-1');
}

// pop cookie
var days= 7
var lt = new Date();
var lifetime = new Date();
function dropPopCookie(name, value, days, path, domain, secure)
{
	lifetime = eval(lt.getTime() + (86400000 * days));
	var curDate = new Date();
	var expDate = new Date();

	expDate.setTime(lifetime);

	var cookie = name + '=' + value;

	if (lifetime)
		cookie += '; expires=' + expDate.toGMTString();
	if (path)
		cookie += '; path=' + path;
	if (domain)
		cookie += '; domain=' + domain;
	if (secure)
		cookie += '; secure';
//    	alert(cookie);
	document.cookie = cookie;

}
function is_registered_popup(id)
{
var ret=false;
if(document.cookie != "")
	{
		var cookie_array ="";
		cookie_array = document.cookie.split(";");
		var popup_value="";

		for (var i=0; i < cookie_array.length; i++)
		{
			if (cookie_array[i].indexOf("popup" + id)>="0")
			{
				popup_value = cookie_array[i].split("popup" + id + "=");
				for (var l=1; l< popup_value.length; l=l+2)
				{
					if (id == popup_value[l])
					{
						ret = true;
						break;

					}
				}


			}

		}
	}
return(ret);
}


function newsPop(id,days,p_width,p_height)
{
	if (p_width < 100)
	{
		p_width = 560;
		p_height = 200;
	}
	if (!(is_registered_popup(id)))
	{
		var f1 = open('/popup/' + id + '.html', id, 'width=' + p_width + ',height='+ p_height + ',screenX=20,screenY=150,scrollbars=yes,toolbar=no,status=no,resizeable=yes');
		var f0 = dropCookie('popup'+id,id,days,'/','.fidelity.at');
	}
	//else alert("already set")
}


// FLASH DETECTION //
var flashVersion = 0;
function getFlashVersion() {
alert("getFlash");

	var dontKnow = false;
	var agent = navigator.userAgent.toLowerCase();

	// NS3+ and Opera3+ (support plugin array):  check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object') {
			if (flashPlugin.description.indexOf('8.') != -1) flashVersion = 8;
			else if (flashPlugin.description.indexOf('7.') != -1) flashVersion = 7;
			else if (flashPlugin.description.indexOf('6.') != -1) flashVersion = 6;
			else if (flashPlugin.description.indexOf('5.') != -1) flashVersion = 5;
			else if (flashPlugin.description.indexOf('4.') != -1) flashVersion = 4;
			else if (flashPlugin.description.indexOf('3.') != -1) flashVersion = 3;
		}
	}
	// IE4+ on Win32:  attempt to create an ActiveX object using VBScript
	else if (IE4 == 1 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
	  document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('dim obFlash \n');
		document.write('set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.8") \n');
		document.write('if IsObject(obFlash) then \n');
		document.write('flashVersion = 8 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7")  end if\n');
		document.write('if IsObject(obFlash) and IsObject(obFlash) then \n');
		document.write('flashVersion = 7 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6")  end if\n');
		document.write('if IsObject(obFlash) and IsObject(obFlash) then \n');
		document.write('flashVersion = 6 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") end if \n');
		document.write('if flashVersion > 6 and IsObject(obFlash) then \n');
		document.write('flashVersion = 5 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") end if \n');
		document.write('if flashVersion < 5 and IsObject(obFlash) then \n');
		document.write('flashVersion = 4 \n');
		document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") end if \n');
		document.write('if flashVersion < 4 and IsObject(obFlash) then \n');
		document.write('flashVersion = 3 \n');
		document.write('end if');
		document.write('</scr' + 'ipt\> \n');
  }
	// Can't detect in all other cases
	else {
		flashVersion = flashVersion_DONTKNOW;
		dontKnow = true;
	}
	//alert(flashVersion);
	return flashVersion;
}



function prn()
	{
	n = 0;
	prn_conf = false;
	for(i = 0; i < document.images.length; ++i)
   	{
   		if(document.images[i].complete == true)
    		{n++;}
       	}
	prncount++;
	if (prncount > 15)
	{
		prn_conf = confirm('Leider konnten nicht alle Grafiken geladen werden\nDennoch Druck starten?');
		window.clearInterval(aktiv);
		prncount="0";
	}
	if(n == document.images.length || prn_conf)
	{
	window.print();
	}
}

function legal_date()
{
var legaldate="Stand: 30.12.2004";
document.writeln(legaldate);
}


function favbasket()
{
/*
	var c_len = cookie_matrix('FavFunds').length;
	if (c_len > 1)
	{
		writeLayer('favfunds','<a href="javascript:fidOpenNewWindow(\'\',\'http://www.fidelity.at/funds/favorite/basket.html\',\'favfonds\', 490, 430,\'\')"><img src="/common/images/nav/i_favfunds.gif" alt="Fonds vorgemerkt" border="0"></a>');
	}
	else
	{
		writeLayer('favfunds','&nbsp;');
	}
*/
}


var form_ac = new Array();
form_ac['berater'] = "/fonds/fondsfinder/";

function reNav()
{
	document.forms['formwkn'].action = form_ac['berater'];
	document.forms['formwkn'].submit()
}

function submitKeyPressFonds(evt) {
	var theKey;
	if (NS4) {
		theKey = evt.which;
	} else {
		theKey = evt.keyCode;
	}
	if (theKey=='13')
	{
		reNav();
	}
}

function genSession()
{
var session;
do
{
	session = Math.random() * 1000000;
	session = Math.round(session);
}
while (session < 100000);
return session;
}


function overHL(st) {
 st.style.backgroundColor = "#FFFFCC";
}
function outHL(st) {
 st.style.backgroundColor = "#FFFFFF";
}
function overHLneu(st) {
 st.style.backgroundColor = "#e5e5e5";
}
function outHLneu(st) {
 st.style.backgroundColor = "#f0f0f0";
}


function popInfo(ovid,type)
{
	var iWnd = new Object();
	var xpos = parseInt((sw - 760) / 2);
	var ypos = parseInt((sh - 550) / 2);
	var str_out = '';
	var ov_url1 = 'http://funds.fidelityfnw.onvista.de/fact.html?ID_GROUP_ISSUER='+ovid;
	var ov_url2 = 'http://funds.fidelityfnw.onvista.de/funds_2_issuer.html?ID_GROUP_ISSUER='+ovid;
	var Info_url = '';

	str_out+='<a href=javascript:popInfo('+ovid+',"p")><img src="/common/images/icons/portrait-icon.gif" alt="Portrait" border="0" height="15" width="15" align="absmiddle"></a> ';
	str_out+='<a href=javascript:popInfo('+ovid+',"g")><img src="/common/images/icons/i_prospekte.gif" border="0" width="15" height="15" align="absmiddle" alt="Geschaeftsberichte und Prospekte"></a> ';
	str_out+='<a href=javascript:popInfo('+ovid+',"f")><img src="/common/images/icons/i_fondsfactsheet.gif" border="0" width="15" height="15" align="absmiddle" alt="Fonds-Factsheets"></a> ';
	switch(type)
	{
	case "t":
		document.writeln(str_out);
	break;
	case "p":
		var iWnd = window.open(ov_url1, 'info', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
		iWnd.focus();
	break;
	case "g":
		var iWnd = window.open(ov_url2 + "&TYPE=BROCHURE", 'info', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
		iWnd.focus();
	break;
	case "f":
		var iWnd = window.open(ov_url2, 'info', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=760,height=550,top=' + ypos + ',left=' + xpos);
		iWnd.focus();
	break;
	default:
	;
	}

}
function submitKeyPress(evt,lf) {
	var theKey;

	if ((NS4) || (NS6)){
		theKey = evt.which;
	} else {
		theKey = evt.keyCode;
	}
	if (theKey=='13')
	{
		submitLoginForm(lf);
	}
}

function submitLoginForm(lf)
{
	if (parent.frames.length > 1 )
	{
		//void submitFrameForm();
		void submitForm();
 	}
	else
	{
		void submitForm(lf);	
	}
}



function populateLogin()
{
	var poptmp = new Array(-1,"na");
	poptmp = cookie_matrix("FIDIFA");
	if (poptmp != '!AA,-1')
	{
		if (poptmp[0][0].length > 5 )
		{
			document.forms['loginform'].elements['id'].value = poptmp[0][0];
		}
	}
}

function closeLoginLayer () {
	if (parent.frames.length > 1 )
	{
		var loginLayer = parent.header.document.getElementById('loginLayer');
	}
	else
	{
		var loginLayer = document.getElementById('loginLayer');
	}
	if (loginLayer) {
		loginLayer.style.display = 'none';
	}
}

function openLoginLayer () {
	if (parent.frames.length > 1 )
	{
		var loginLayer = parent.header.document.getElementById('loginLayer');
	
		if (loginLayer) {
			loginLayer.style.display = 'block';
			var inpLogin = parent.header.document.getElementById('kunde');
			var inpPassword = parent.header.document.getElementById('PIN');
			initEmptyInput(inpLogin, false);
			initEmptyInput(inpPassword, false);
			}
	}
else
	{
		var loginLayer = document.getElementById('loginLayer');
		if (loginLayer) {
			loginLayer.style.display = 'block';
			var inpLogin = document.getElementById('kunde');
			var inpPassword = document.getElementById('PIN');
			initEmptyInput(inpLogin, false);
			initEmptyInput(inpPassword, false);
			}	
	}
}




function initEmptyInput (input, hasFocus) {
	if (input) {
		if (hasFocus || input.value != '') {
			input.className = '';
		} else {
			input.className = 'emptyInput';
		}
	}
}



function submitForm(lf)
{
var f_n = 'loginform';
if (lf){
	f_n = lf;
}

var doc_obj = this.document;
if (parent.frames.length > 1 )	{
	doc_obj = parent.header.document;
}
if((doc_obj.forms[f_n].elements['id'].value.length > 5) && (doc_obj.forms[f_n].elements['password'].value.length > 3))
{
	if((doc_obj.forms[f_n].elements['id'].value.length == 10))
	{
		doc_obj.forms[f_n].action ="https://www.webxpress.fidelity.at/defnw/LoginServlet/";
		doc_obj.forms[f_n].elements['mode'].value ="Login";
		doc_obj.forms[f_n].action = doc_obj.forms[f_n].action + genSession();
		var iWnd = window.open('', 'secure', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=780,height=560,top=' + ypos + ',left=' + xpos);
		doc_obj.forms[f_n].submit();
		doc_obj.forms[f_n].reset();
		newsPop("webxpress",0,700,360);
		
	}
	else
	{
		doc_obj.forms[f_n].action ="https://access.fidelity.at/defnw/LoginServlet/";
		doc_obj.forms[f_n].elements['mode'].value ="ClientManagement";
		doc_obj.forms[f_n].action = doc_obj.forms[f_n].action + genSession();
		var iWnd = window.open('', 'secure', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=780,height=560,top=' + ypos + ',left=' + xpos);
		doc_obj.forms[f_n].submit();
		doc_obj.forms[f_n].reset();
		newsPop("access",0,625,400);
	}
}
else
{
	alert('Bitte geben Sie eine gueltige Kunden-/Beraternummer an.');
}
}

function openRisikoAT() {
	var xpos = parseInt((sw - 500) / 2);
	var ypos = parseInt((sh - 450) / 2);
	var iWnd = window.open(home_prot + home_url+'/at/mifid/risiken.html', 'risiken', 'resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,width=550,height=590,top=' + ypos + ',left=' + xpos);
}

