/*************** Script functions in this file **************
Filename: extFunctionsRoot.js; as of Dienstag,
  FUNCTION:                                               LINE:
  getHelp(topic,width,height)                              182
  getHelpSearch(searchString,searchMode,width,height)      188
  getParam(paramname)                                      45
  gotoTXM(what)                                            176
  helpStart()                                              194
  mrosswechsel(bereich,per)                                272
  neuOrdnung(nr)                                           258
  openBrowser(where)                                       250
  openLink (href,params,target)                            129
  openWin(where,width,height)                              214
  openWinA(where,width,height)                             225
  openWinHelp(where,width,height)                          203
  printIt()                                                170
  setcookie()                                              236
  wosidAttach(woran)                                       303
  writeFooter(which)                                       325
************ (end Script functions in this file) ***********/
// $Id: extFunctionsRoot.js,v 1.6 2009-04-22 08:20:23 ansgar Exp $
document.domain = "deutsche-bank.de";
var selfUrl   = self.location.protocol + "//" + self.location.host;
var httpSelfUrl  = "http://" + self.location.host;
var helpURL  = "http://wob.deutsche-bank.de/pbc/oic/waap/BRHPWOHelpAction/help?style=dbfl";
var sessionId   = "";
var applicationId  = "";
var dbsId   ="";
var appIds   = "";
var TXSUBDOMAIN  = "meine";
var TXDOMAIN   = "https://"+TXSUBDOMAIN+".db24.de/mod/WebObjects/db24";
var fbpCounter = 0;
var feedBackPages = new Array();
var feedBackIds = new Array();
feedBackPages[fbpCounter] = 'oic_marktinformationen.html';
feedBackIds[fbpCounter++] = '00033';
feedBackPages[fbpCounter] = 'oic_aua_aktienundanleihen.html';
feedBackIds[fbpCounter++] = '00034';
feedBackPages[fbpCounter] = 'oic_fon_fondsstart.html';
feedBackIds[fbpCounter++] = '00035';
feedBackPages[fbpCounter] = 'oic_zer_zertifikatestartseite.html';
feedBackIds[fbpCounter++] = '00036';
feedBackPages[fbpCounter] = 'oic_dev_devisen.html';
feedBackIds[fbpCounter++] = '00037';
feedBackPages[fbpCounter] = 'oic_nws_news.html';
feedBackIds[fbpCounter++] = '00038';
/**
 ***********************************************************
 * Tracking @ deutsche-bank.de/pbc/oic/ with ecrm.gif
 * @author C. Trautwein
 * @author F. N&auml;gler
 ***********************************************************
 * Laut Web-Applikation Tracking Konzept auf 
 * Basis der SinnerSchrader eCRM Pixel Technologie
 * Holger Blank vom 06.05.2002
 ***********************************************************
 */
 
/***********************************/
/* START eCrm-Object ***************/
/**
 * @param ID the tracking id
 * @param REF the Refferer of current page
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility private
 *
 */
function eCrm(ID, REF)
{
/* properties - private */
 this.eCrmId   = ID;
 this.eCrmRef  = REF;
 this.eCrmPageId  = '';
 this.eCrmExtras  = '';
 this.eCrmLink  = '';
/* CONST */
 this.FROM   = '/%FROM%/';
 this.TO    = '/%TO%/';
 this.DOMAIN   = 'http://www.deutsche-bank.de';
 this.pixelUrl  = 'http://tp.deutsche-bank.de/pbc/tracking/pbc_oicde.gif';
 this.debugUrl  = 'http://tp.deutsche-bank.de/pbc/tracking/pbc_oicde_debug.gif';
 this.DEBUGMODE = false;
/* methods - private */
 this.getParam  = getParam;
 this.debug  = debug;
 
/* methods - public */
 this.setPageId  = setPageId;
 this.setExtras  = setExtras;
 this.setLink  = setLink;
 this.setRef   = setRef;
 this.setPixel  = setPixel;
}
/**
 * this function get the a param from url
 * @param paramname the name of the parameter
 * @return string value of param
 * @author C. Trautwein
 * @since 1.0
 * @version 1.0
 * @visibility private
 */
function getParam(paramname)
{
 var SELF_LOCATION = self.location.href;
 var paramstring = (SELF_LOCATION.indexOf("?") != -1)?(SELF_LOCATION.substr(SELF_LOCATION.indexOf('?')+1,SELF_LOCATION.length)):("");
 var re = new RegExp("^"+paramname+"=");
 var params = paramstring.split("&");
 // variable vordefinieren 
 var restparams="";
 for (var param in params)
 {
  if (re.test(params[param]))
  {
   return (params[param].split("="))[1];
  }
 }
 if (paramname=="rest")
 {
  for (t=0;t<params.length;t++)
  {
   var paramel=(params[t].split("="))[0];
   if (paramel!="eCrmPageId" && paramel!="url")
   {
    restparams = restparams+(params[t]);
    if ( (t)!= (params.length-1) )
    {
     restparams=restparams+"&";
    }
   }
  }
  return restparams;
 }
 if (paramname=="recommend")
 {
  for (t=0;t<params.length;t++)
  {
   var paramel=(params[t].split("="))[0];
   if (paramel!="eCrmPageId" && paramel!="eCrmLink" && paramel!="url" && paramel!="wosid")
   {
    restparams = restparams+(params[t]);
    if ( (t)!= (params.length-1) )
    {
     restparams=restparams+"&";
    }
   }
  }
  return restparams;
 }
 else return null;
}/**
 * this function set the PageId
 * @param newPageId the new PageId
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility public
 */
function setPageId(newPageId)
{
 if (newPageId != '') var pid = newPageId;
 else
 {
  var SELF_LOCATION = self.location.href;
  SELF_LOCATION = SELF_LOCATION.substring(8,SELF_LOCATION.length);
  SELF_LOCATION = SELF_LOCATION.substring(SELF_LOCATION.indexOf('/'),SELF_LOCATION.length);
  SELF_LOCATION = (SELF_LOCATION.indexOf("?") != -1)?(SELF_LOCATION.substring(0,SELF_LOCATION.indexOf("?"))):(SELF_LOCATION);
  pid = SELF_LOCATION;
 }
 var start = pid.indexOf(this.DOMAIN)+this.DOMAIN.length-1;
 var end   = pid.indexOf('.html')+5;
 this.eCrmPageId = pid.substring(start+1,end);
}
/**
 * this function set the extras
 * @param newExtras
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility public
 */
function setExtras(newExtras)
{
 this.eCrmExtras = newExtras;
}
/**
 * this function parse the eCrmLink from URL
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility public
 */
function setLink()
{
 this.eCrmLink = self.location.href;
 var isLink = (this.eCrmLink.indexOf('eCrmLink=') != -1)?(true):(false);
 if (isLink)
 {
  this.debug('ORG-Link: '+this.eCrmLink);
  var start = this.eCrmLink.indexOf('eCrmLink=');
  var end   = this.eCrmLink.length;
  this.eCrmLink = this.eCrmLink.substr(start, end);
  end = this.eCrmLink.indexOf('&');
  if (end != -1)
  {
   this.eCrmLink = this.eCrmLink.substr(0, end);
  }
  this.debug('1st-Parse: '+this.eCrmLink);
  var from = this.eCrmRef;
  start = from.lastIndexOf('/')+1;
  end = from.length-5;
  from = from.substring(start, end);
  var to = this.eCrmPageId;
  start = to.lastIndexOf('/')+1;
  end = to.length-5;
  to = to.substring(start, end);
  this.eCrmLink = unescape(this.eCrmLink); 
  this.eCrmLink = this.eCrmLink.replace(/%FROM%/,from);
  this.debug('1St-Replace: '+this.eCrmLink);
  this.eCrmLink = this.eCrmLink.replace(/%TO%/,to);
  this.debug('2nd-Replace: '+this.eCrmLink);
 }
 else
 {
  this.eCrmLink = '';
 }
}
/**
 * this function set the Referrer
 * @param newRef new Referrer
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility public
 */
function setRef(newRef)
{
 this.eCrmRef = newRef;
}
/**
 * this function set the tracking-pixel
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility public
 */
function setPixel()
{
 var RandomNo = '' + Math.round(Math.random() * 1000000000);
 var diff = 10 - RandomNo.length;
 var fill = '';
 for (j=0; j<diff;j++) fill += '0';
 RandomNo = fill + RandomNo; // Random immer mindestens 10 Zeichen.
 var myeCrmExtras = '';
 if (this.eCrmLink != '') myeCrmExtras += '&' + this.eCrmLink;
 if (this.eCrmExtras != '') myeCrmExtras += '&' + this.eCrmExtras;
 if (typeof NOTRACK == 'undefined')
 {
  ecrmPixel[imgCount] = new Image();
  ecrmPixel[imgCount].src = unescape(this.pixelUrl +'?dbtrck='+ this.eCrmId +';'+ this.eCrmPageId +';'+ this.eCrmRef +';'+ RandomNo + myeCrmExtras); 
  imgCount++;
 }
 if (typeof NOSETREF == 'undefined' && this.eCrmPageId.indexOf('clipping') == -1)
 {
  this.debug('SET REFERRER TO COOKIE');
  setToCookie('eCrmReferrer', this.DOMAIN+this.eCrmPageId);
  this.debug('SET COOKIE: eCrmReferrer: '+ this.DOMAIN+this.eCrmPageId);
  if (self.location.href.indexOf('https') == -1) top.eCrmReferrer = this.DOMAIN+this.eCrmPageId;
  this.eCrmRef = this.DOMAIN+this.eCrmPageId;
 }
}
/**
 * this function write a debug-Pixel if the 
 * CONST object var this.DEBUGMODE is true.
 * @param str Debug-Message
 * @return void
 * @author F. N&auml;gler
 * @since 1.0
 * @version 1.0
 * @visibility private
 */
function debug(str)
{
 if (this.DEBUGMODE)
 {
   var debugPixel = new Image();
   debugPixel.src = unescape(this.debugUrl+'?dbtrck='+ this.eCrmId +';debug='+ str); 
 }
}
/* ENDE eCrm-Object ****************/
/***********************************/
function getFromCookie(what)
{
 var start = document.cookie.indexOf(what+"=");
 var len = start + what.length + 1;
 if ((!start) && (what != document.cookie.substring(0,what.length))) return null;
 if (start == -1) return null;
 var end = document.cookie.indexOf(";",len);
 if (end == -1) end = document.cookie.length;
 var value = unescape(document.cookie.substring(len,end));
 return (value == "undefined")?("[NO COOKIE]"):(value);
}
function setToCookie(key, value)
{
 var date = new Date();
// date.setTime(date.getTime()+(-1));
 var cook = key + "=" + value +
 ( (true) ? (";expires=" + date.toGMTString()) : ("") ) +
 ( (true) ? (";path=/") : ("") ) +
 ( (true) ? (";domain=deutsche-bank.de") : ("") );
 //document.cookie = cook;
 document.cookie = ""+key+"="+escape(value)+"; path=/; domain=deutsche-bank.de"
}
/* init Tracking */
var ecrmPixel = new Array();
var imgCount = 0;
var ID  = ( (self.location.href.indexOf('https') != -1) || (self.location.href.indexOf('redirect') != -1) )?(getFromCookie('eCrmId')):(top.eCrmId);
var REF = ( (self.location.href.indexOf('https') != -1) || (self.location.href.indexOf('redirect') != -1) )?(getFromCookie('eCrmReferrer')):(top.eCrmReferrer);
REF = (REF == '')?(document.referrer):(REF);
var pageid = (this.eCrmPageId)?(this.eCrmPageId):('');
var extras = (this.eCrmExtras)?(this.eCrmExtras):('');
var ecrm = new eCrm(ID, REF);
ecrm.debug("! https");
if ( self.location.href.indexOf('https') == -1 )
{
    ecrm.debug("directJump or jumpto");
    if ( (top.location.href.indexOf('?directJump') != -1) || (top.location.href.indexOf('?jumpto') != -1))
    {
 ecrm.debug("top.eCrmReferrerExtern: " + top.eCrmReferrerExtern);
        if (top.eCrmReferrerExtern != '')
        {
            if (pageid == 'http://www.deutsche-bank.de/pbc/content/oic_marktinformationen.html')
            {
             ecrm.debug("pageid: " + pageid);
                top.eCrmReferrer = top.eCrmReferrerExtern;
                top.eCrmReferrerExtern = '';
                var NOTRACK = true;
                ecrm.debug("NOTRACK: " + NOTRACK);
            }
        }
    }
}
ecrm.setPageId(pageid);
ecrm.setExtras(extras);
ecrm.setLink();
ecrm.setPixel();
 function openLink (href,params,target)
 {
  var urlparams = "&eCrmId="+top.eCrmId+"&eCrmReferrer="+REFURL;
  target.location =  href+"?"+params+urlparams;
 }
/**********************************************************/
/*** DO NOT EDIT - END ************************************/
/**********************************************************/
if (self.location.protocol.indexOf("https") == -1)
// we cannot access top-frame from https!
{
 applicationId =  top.appId;
 dbsId = top.dbsappId;
 sessionId =  top.sessionId;
 if( top.sessionId )
 {
  appIds = top.sessionId.substring(6, top.sessionId.indexOf("_"));
 }
 if( top.sessionId && appIds.indexOf('m') != -1 && self.location.href.indexOf("/wo/") == -1 && self.location.href.indexOf("/wa/") == -1)
 {
  sessionId = top.sessionId;
  var sessionPixel = new Image();
  var zufall = '&random=X' + Math.round(Math.random()*1000000000);
  // ### Herausnahme APP & SESSION-ID var spUrl = selfUrl + applicationId + '/wa/pixel?' + sessionId + zufall;
  var spUrl = selfUrl  + '/wa/pixel?' + zufall;
  sessionPixel.src = spUrl; 
 }
 
 if( top.sessionId && appIds.indexOf('d') != -1 && self.location.href.indexOf("/dbs/") == -1)
 {
  sessionId = top.sessionId;
  var sessionPixel = new Image();
  var zufall = '&random=X' + Math.round(Math.random()*1000000000);
  // ### Herausnahme APP & SESSION-ID var spUrl = selfUrl + dbsId + '/dbs/pixel?' + sessionId + zufall;
  var spUrl = selfUrl + '/dbs/pixel?' + zufall;
  sessionPixel.src = spUrl; 
 }
}
function printIt()
{
 if (window.print) window.print();
 else openWin('/pbc/oic/rd/noprinter.html',310,232);
} 
function gotoTXM(what)
{
 var TXURL = TXDOMAIN+'?login=br24sign&action=ipo&scn=990729&name='+what+'&currency=EUR';
 openWin(TXURL,800,600);
}
function getHelp(topic,width,height)
 {
 var where = helpURL + '&topic=' + topic;
 openWinHelp(where,width,height)
 }
function getHelpSearch(searchString,searchMode,width,height)
 {
 var where = helpURL + '&searchString=' + escape(searchString) + "&searchMode=" + searchMode;
 openWinHelp(where,width,height)
 }
function helpStart()
 {  
  var rb = (document.suche.searchMode[0].checked)?'1':'2';
  var str = document.suche.searchString.value;
  getHelpSearch(str,rb,300,450);
  return false;
 }
 
var newWin;
function openWinHelp(where,width,height)
{
 if (newWin && newWin.closed!=true) newWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'width=' + width + ',height=' + height + ',' + propsZ;
 newWin = window.open('','helppop',props);
 newWin.location.href = where;
}
function openWin(where,width,height)
{
 if (newWin && newWin.closed!=true) newWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'scrollbars=1, width=' + width + ',height=' + height + ',' + propsZ;
 newWin = window.open('','brpop',props);
 newWin.location.href = where;
}
function openWinA(where,width,height)
{
 if (newWin && newWin.closed!=true) newWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'width=' + width + ',height=' + height + ',' + propsZ;
 newWin = window.open('','mbpop',props);
 newWin.location.href = where;
}
function XopenWin (Xlink,Xwidth,Xheight,Xscrollbars,Xstatus,Xresizable,Xtoolbar,Xmenubar,Xlocation,Xname) {
 var PopUp;
 var werte = 'width='+Xwidth+',height='+Xheight+',scrollbars='+Xscrollbars+',status='+Xstatus+',resizable='+Xresizable+',toolbar='+Xtoolbar+',menubar='+Xmenubar+',location='+Xlocation;
 if (!Xname){ var Xname="Deutsche_Bank"; }
 PopUp = window.open(Xlink,Xname,werte);
 PopUp.focus();
 return false;
}
function setcookie()
{
        if ((navigator.appName == "Netscape")&&(navigator.userAgent.indexOf("4.0") != -1 )) time = 2000*60*30;
        else time = 1000*60*30
           var exp = new Date();
           exp.setTime(exp.getTime() + time);
           document.cookie = "DISCLAIMER=true; expires=" +exp.toGMTString()+"; path=/";
           if (document.cookie.indexOf('DISCLAIMER=true')!=-1) {
               self.location.href="javascript:history.back();";
           }
          else alert('Bitte &auml;ndern Sie Ihre Browsereinstellungen auf "Cookies akzeptieren", damit Ihnen die Folgeseite angezeigt werden kann.')
}
var newBrowser;
function openBrowser(where)
{
 if (newBrowser && newBrowser.closed!=true) newBrowser.close();
 props = 'toolbar=yes,location=yes,menubar=yes,status=yes,scrollbar=yes,resizable=yes';
 newBrowser = window.open('','brpop',props);
 newBrowser.location.href = where;
}
function neuOrdnung(nr)
{
 var starter = eval('document.lesezeichen.'+nr).selectedIndex;
 for(i=0;i<sel.length;i++)
 {
   if(sel[i].selectedIndex==starter && sel[i].name!=nr)
   {
    if(starter+1 < sel.length) sel[i].options[starter+1].selected  = true;
   else sel[i].options[0].selected  = true;
   neuOrdnung(sel[i].name);
  }
 }
}
function mrosswechsel(bereich,per)
{
 var audioInd;
 var neuLink;
 var reiter = new Array();
  reiter[0] = "/pbc/oic/rd/images/kartei_sm-uebersicht";
  reiter[1] = "/pbc/oic/rd/images/kartei_sm-nm";
  reiter[2] = "/pbc/oic/rd/images/kartei_sm-dax";
 for(i=0;i<document.links.length;i++)
 {
  audioInd = document.links[i].href;
  if(audioInd.indexOf('.ra')!=-1)
  {
   neuLink = audioInd.substring(0,audioInd.length-4) + bereich + '.ra';
   document.links[i].href = neuLink;
  } 
 }
 if(document.images)
 {
  for (i=0;i<reiter.length;i++)
  {
   var imgon = reiter[i]+"_on.gif";
   var imgoff = reiter[i]+"_off.gif";
   var aktimg = "document.k"+i;
   if(reiter[i].indexOf(per)!=-1) eval(aktimg).src = imgon;
   else eval(aktimg).src = imgoff;
  }
 }
}
/* ### Herausnahme APP- und SESSION-ID
function wosidAttach(woran)
{
 if (top.sessionId)
 {
  woran += (woran.indexOf('?')!=-1) ? '&' + top.sessionId : '?' + top.sessionId;
  if ( woran.indexOf("/wa/") != -1) // if url contains with "/wa/", attach appId
  {
   woran = woran.substring(0, woran.indexOf("/wa/")) + applicationId + woran.substring(woran.indexOf("/wa/"),woran.length);
  }
  else if ( woran.indexOf("/oic/sw/") != -1)
  {
    woran = woran.substring(0, woran.indexOf("/oic/sw/")) + applicationId + woran.substring(woran.indexOf("/oic/sw"), woran.length);
  }
  else if ( woran.indexOf("/dbs/") != -1) // if url contains with "/dbs/", attach dbsId
  {
   woran = woran.substring(0, woran.indexOf("/dbs/")) + dbsId + woran.substring(woran.indexOf("/dbs/"),woran.length);
  }
 }
 top.action.inhalt.location.href = woran;
}
*/
// ### NEU
function wosidAttach(woran)
{
 // wosid nur bei externen IDMS URLs setzen
 if (top.sessionId && (woran.indexOf('mace') != -1))
 { 
    woran += (woran.indexOf('?') != -1)? ("&" + top.sessionId) : ("?" + top.sessionId); 
 }
 
 // Entnahme der Applikations-ID aus URLs des OIC, da dies &uuml;ber die Session-Cookies geregelt wird
 if (top.sessionId && (woran.indexOf('/pbc/oic/waap') != -1))
 { 
    var urlstart = '';
    if (woran.indexOf(".deutsche-bank.de/") != -1) 
    {
        urlstart = woran.substring(0, woran.indexOf(".de/")+3);
    }
 
    woran = urlstart + woran.substring(woran.indexOf("/pbc/oic/waap"),woran.length);
 }
 
 // Bei jedem Aufruf zu setzen
 top.action.inhalt.location.href = woran;
}

function recommend()
{
 var url = 'http://www.deutsche-bank.de/pbc/marktinformationen/';
 var popupurl = 'http://www.deutsche-bank.de/pbc/trackingframes/pu_ser_seite_weiterempfehlen_oic_frame.html?link=ext;from-%FROM%-F-seite_weiterempfehlen-PBCde;to-pu_ser_seite_weiterempfehlen';
 var pid = this.eCrmPageId;
 pid = pid.substring(pid.lastIndexOf('/'),pid.indexOf('.html'));
 popupurl = popupurl.replace(/%FROM%/,pid);
 var loc = self.location.href;
 var result = 0;
 if (loc.indexOf('http://warrants') != -1) result = 1;
 else if (loc.indexOf('http://certificates') != -1) result = 2;
 else if (loc.indexOf('is-asp.pbc.deutsche-bank') != -1) result = 3;
 else if (loc.indexOf('is-mdg.pbc.deutsche-bank') != -1) result = 4;
 switch(result)
 {
  case 1 :
   url += '?ow=';
   break;
  case 2 :
   url += '?oc=';
   break;
  case 3 :
   url += '?is=';
   break;
  case 4 :
   url += '?mdg=';
   break;
  default:
   url += '?directJump=';
   break;
 }
 if (typeof this.recommendUrl == 'undefined')
 {
    if (result != 0) var page = loc.substring(loc.lastIndexOf('/')+1, loc.indexOf('.html')+5);
    else var page = loc.substring(loc.indexOf('deutsche-bank.de')+16, loc.indexOf('.html')+5);
 }
 else
 {
    var page = this.recommendUrl;
 }
 url += page;
 var rest = getParam('recommend');
 url += "?"+rest;
  windowurl = popupurl+'&refurl='+escape(url);
 openWin(windowurl, 620, 530);
}
function checkFeedback()
{
    for (i=0;i<feedBackPages.length;i++)
    {
        if (this.eCrmPageId.indexOf(feedBackPages[i]) != -1 ) return true;
    }
    return false;
}
function getFeedBackId()
{
    for (i=0;i<feedBackPages.length;i++)
    {
        if (this.eCrmPageId.indexOf(feedBackPages[i]) != -1 ) return feedBackIds[i];
    }
    return 0;
}
function checkFooterToolBoxOptions()
{
 if (self.location.href.indexOf('wob.deutsche-bank.de') != -1)
 {
  if (typeof recommendUrl  == 'undefined')
  {
    // Comment
   return false;
  }
  else
  {
   return true;
  }
 }
 else
 {
  if (typeof norecommend == 'undefined')
  {
   return true;
  }
  else
  {
   return false;
  }
 }
}
var writeFooterToolBox = checkFooterToolBoxOptions();
function sizerGif(w,h)
{
 var prot = (self.location.href.indexOf('https') != -1)?(''):('http://www.deutsche-bank.de');
 return '<img src=\"'+prot+'/pbc/oic/rd/images/sizer.gif\" width=\"'+w+'\" height=\"'+h+'\" border=\"0\" alt=\"\">';
}
function writeFooter(which)
{
 var footerDomain = (self.location.href.indexOf('https') != -1)?(''):('http://www.deutsche-bank.de');
 
 if (which == 'xhtml') {
 document.write('<div id="footer">');
      if (writeFooterToolBox) {
       document.write('<div id="recommendbox">');
                   document.write('Diese Seite: <a href="javascript:printIt();">drucken</a>');
          document.write('</div>');
         }
 document.write('<p><a href="http://www.deutsche-bank.de/pbc/ser-konditionen_preise.html?link=oic-m-pbcde-to-ser-konditionen_preise" target="_top">Konditionen & Preise</a> | <a href="http://www.deutsche-bank.de/pbc/ser-onlinebanking-sicherheit.html?link=oic-m-pbcde-to-ser-onlinebanking-sicherheit" target="_top">Sicherheit</a></p>');
 document.write('<p><a href="http://www.deutsche-bank.de/pbc/ser-rechtliche_hinweise.html?link=oic-m-pbcde-to-ser-rechtliche_hinweise" target="_top">Rechtliche Hinweise</a>  |  <a href="http://www.deutsche-bank.de/pbc/ser-rechtliche_hinweise.html?link=oic-m-pbcde-to-ser-rechtliche_hinweise-impressum#tabset_content_tab2" target="_top">Impressum</a></p>');
 document.write('<p>&copy; Deutsche Bank Privat- und Gesch&auml;ftskunden AG, Frankfurt am Main</p>');
 document.write('</div>');
 } else {
  if (writeFooterToolBox || checkFeedback())
  {
   with (document)
   {
    write('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">');
     write('<tr>');
      write('<td>'+sizerGif(40,20)+'</td>');
      write('<td>'+sizerGif(10,1)+'</td>');
      write('<td>'+sizerGif(80,1)+'</td>');
      write('<td>'+sizerGif(120,1)+'</td>');
      write('<td>'+sizerGif(160,1)+'</td>');
      write('<td>'+sizerGif(180,1)+'</td>');
     write('</tr>');
     write('<tr>');
      write('<td>'+sizerGif(1,1)+'</td>');
      write('<td class=\"FooterToolBox\">'+sizerGif(1,25)+'</td>');
  if (writeFooterToolBox)
  {
      write('<td class=\"FooterToolBox\">Diese Seite:</td>');
      write('<td class=\"FooterToolBox\" colspan=\"2\"><img src=\"'+footerDomain+'/pbc/oic/rd/images/pfeil_blau.gif\" width=\"6\" height=\"5\" alt=\"\" border=\"0\" vspace=\"1\">&nbsp;&nbsp;<a href=\"javascript:printIt();\" class=\"FooterToolBoxAnchor\">drucken</a></td>');
  }
  if (checkFeedback())
  {
      write('<td class=\"FooterToolBox\">Diesen Bereich: &nbsp;&nbsp;&nbsp;&nbsp;<img src=\"'+footerDomain+'/pbc/oic/rd/images/pfeil_blau.gif\" width=\"6\" height=\"5\" alt=\"\" border=\"0\" vspace=\"1\">&nbsp;&nbsp;<a href=\"https://secure.deutsche-bank.de/feedbackmanager/?decorator=pbc&lang=de&id='+getFeedBackId()+'\" onclick=\"XopenWin(this.href,650,380,0,0,0,0,0,0,\'\');return false;\" class=\"FooterToolBoxAnchor\">bewerten</a></td>');
  }
  if (!writeFooterToolBox)
  {
      write('<td class=\"FooterToolBox\" colspan=\"3\">&nbsp;</td>');
  }
  if (!checkFeedback())
  {
      write('<td bgcolor=\"#ffffff\">&nbsp;</td>');
  }
     write('</tr>');
     write('<tr>');
      write('<td colspan=\"6\">'+sizerGif(1,5)+'</td>');
     write('</tr>');
    write('</table>');
   }
  }
  with (document)
  {
   write('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"620\">');
    write('<tr>');
     write('<td rowspan=\"9\">'+sizerGif(40,20)+'</td>');
     write('<td>'+sizerGif(580,1)+'</td>');
    write('</tr>');
    write('<tr>');
     write('<td><a href=\"http://www.deutsche-bank.de/pbc/ser-konditionen_preise.html?link=oic-m-pbcde-to-ser-konditionen_preise\" class=\"footer\" target=\"_top\">Konditionen & Preise</a> | <a href=\"http://www.deutsche-bank.de/pbc/ser-onlinebanking-sicherheit.html?link=oic-m-pbcde-to-ser-onlinebanking-sicherheit\" class=\"footer\" target=\"_top\">Sicherheit</a></td>');
    write('</tr>');
    write('<tr>');
     write('<td>'+sizerGif(1,5)+'</td>');
    write('</tr>');
    write('<tr>');
     write('<td><a href=\"http://www.deutsche-bank.de/pbc/ser-rechtliche_hinweise.html?link=oic-m-pbcde-to-ser-rechtliche_hinweise\" class=\"footer\" target=\"_top\">Rechtliche Hinweise</a>  |  <a href=\"http://www.deutsche-bank.de/pbc/ser-rechtliche_hinweise.html?link=oic-m-pbcde-to-ser-rechtliche_hinweise-impressum#tabset_content_tab2\" class=\"footer\" target=\"_top\">Impressum</a></td>');
    write('</tr>');
    write('<tr>');
     write('<td>'+sizerGif(1,5)+'</td>');
    write('</tr>');
    write('<tr>');
     write('<td><span style=\"color:#333333;\">&copy; Deutsche Bank Privat- und Gesch&auml;ftskunden AG, Frankfurt am Main</span></td>');
    write('</tr>');
    write('<tr>');
     write('<td>'+sizerGif(1,20)+'</td>'); 
    write('</tr>');
   write('</table>');
  }
 }
}
function myCookie(name, life, path, doma)
{
 this.name = arguments[0];
 this.life = arguments[1];
 this.path = arguments[2];
 this.doma = arguments[3];
 this.valu = value();
 this.value = value;
 this.lifetime = lifetime;
 this.destroy = destroy;
 this.update = update;
}
function value(what)
{
 if (arguments.length!=0)
 {
  this.valu = arguments[0];
  this.update();
 }
 else
 {
  var start = document.cookie.indexOf(this.name+"=");
  var len = start+this.name.length+1;
  if ((!start) && (this.name != document.cookie.substring(0,this.name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
  this.valu = unescape(document.cookie.substring(len,end));
  return (this.valu == "undefined")?("[NO COOKIE]"):(this.valu);
 }
}
function lifetime(which)
{
 if (arguments[0])
 {
  this.life = arguments[0];
  this.update();
 }
 else
 {
  return (this.life == "")?("[NO LIFETIME SET]"):(this.life);
 }
}
function destroy()
{
 this.life = 0;
 this.update();
}
function update()
{
 var date = new Date();
 date.setTime(date.getTime()+(this.life*24*60*60*1000));
 var cook = this.name + "=" +escape(this.valu) +
 ( (this.life) ? (";expires=" + date.toGMTString()) : ("") ) +
 ( (this.path) ? (";path=" + this.path) : ("") ) +
 ( (this.doma) ? (";domain=" + this.doma) : ("") );
 document.cookie = cook;
}
/***/
