  /***************************************************************************\
  * external Javascript        (c) 2002 by eInsurance AG Munich               *
  * written by lars fanter 	   <lars.fanter@einsurance.de>                    *
  *         												                  *
  *                                                                           *
  * 																		  *
  \***************************************************************************/
/* Direct Line Rechner-Popups */ 

/* Zweitwagenrechner */

function switchZWT(){
var xsize=800;
var ysize=500;
secondparams="width="+xsize+",height="+ysize+",resizable=0,status=0,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0";
var newfile="http://www.directline.de/tarifrechner/scripts/tarif_go.asp?partnerid=einsurance&mediaquelle=einsurance&mgmpraemie=''&mode=0&SR=ZWT&KID=<NULL>";
openNewWin=window.open(newfile,"info",secondparams);
}

/* Tarifrechner */
function switchTarifrechner()
{ var myfilename='http://www.directline.de/tarifrechner/scripts/tarif_go.asp?partnerid=einsurance&mediaquelle=einsurance&mgmpraemie=""&KID=<NULL>';
var xsize=800;
var ysize=500;
params="width="+xsize+",height="+ysize+",resizable=0,status=0,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0";
newwin=window.open(myfilename,"window_info",params);
if(window.focus){
newwin.focus();
}
}
/*Ende Direct Line Rechner Popups */


/* startup popups for homepages (versicheurngen, geld, vorsorge) */

function popup_versicherungen(URL) {
window.open(URL,"","width=368,height=202,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_geld(URL) {
window.open(URL,"","width=369,height=210,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_amexblue(URL) {
window.open(URL,"","width=281,height=151,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_riesterstart(URL) {
window.open(URL,"","width=251,height=151,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_moneymaxx(URL) {
window.open(URL,"","width=352,height=210,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_rlvstart(URL) {
window.open(URL,"","width=300,height=200,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}

function popup_vorsorge(URL) {
window.open(URL,"","width=352,height=210,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
}
/* Ende startup popups for homepages (versicheurngen, geld, vorsorge) */

/* general index script popup complete*/
function callPopup () {
	GetCookie ();
	SetCookie ();
	DeleteCookie ();
	getCookieVal();
	amt();
	checkCount();
	}

/* global variables */

var expDays = 7; // number of days the cookie should last 
var page = "/common/adds/moneymaxx/index.htm"; //popup location
var windowprops = "width=352,height=210,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes"; //popup dimensions and propertys

/* general index script functions*/

function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 
function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
 
window.open(page, "", windowprops);
 
}
else {
count++;
SetCookie('count', count, exp);
   }
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Ende general index script popup complete*/

/* Jump Menue */


function einsuranceJumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/



/* popups */

function popup1(URL) {
window.open(URL,"","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function popup2(URL) {
window.open(URL,"","width=600,height=400,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function popup3(URL) {
window.open(URL,"","width=440,height=560,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function popup4(URL) {
window.open(URL,"","width=550,height=550,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}
 
function popup5(URL) {
window.open(URL,"","width=440,height=200,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function popup6(URL) {
window.open(URL,"","width=510,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function popup7(URL) {
window.open(URL,"","width=800,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* benannte funktionen mit fester url */
function leistungen(URL) {
window.open(URL,"","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function beitrag(URL) {
window.open(URL,"","width=650,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function vertraege_kuendigen(URL) {
window.open(URL,"","width=600,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function riester1() {
window.open("/wissen/vorsorge/riester/popup_anlageformen.htm","","width=430,height=550,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function riester2() {
window.open("/wissen/vorsorge/riester/popup_wieviel.htm","","width=650,height=550,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function riesterkosten() {
window.open("/versicherungen/vergleichen/riester/riester_kosten.htm","","width=520,height=440,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function yello() {
window.open("/wissen/vorsorge/riester/popup_yello.htm","","width=500,height=550,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function bhw() {
window.open("/wissen/vorsorge/riester/popup_bhw.htm","","width=400,height=550,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function preisgarantie() {
window.open("/versicherungen/vergleichen/kfz/terms_preisgarantie02.htm","","width=390,height=470,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function amex() {
window.open("/geld/vergleichen/amexaktion/content_home.htm","","width=800,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function amexblue() {
window.open("/geld/vergleichen/amexaktion/bluecard/content_home.htm","","width=800,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function riesterstart() {
window.open("/versicherungsvergleich/versicherung/riester/einsurance/PortalLayout.htm","","width=800,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function rlvstart() {
window.open("/versicherungsvergleich/versicherung/risikoleben/einsurance/PortalLayout.htm","","width=800,height=600,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function bestprice() {
window.open("/versicherungen/vergleichen/kfz/terms_bestprice_eins.htm","","width=430,height=470,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function bestprice_as24() {
window.open("/versicherungen/vergleichen/kfz/terms_bestprice_as24.htm","","width=430,height=470,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function henner(URL) {
window.open(URL,"","width=440,height=200,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function ecki(URL) {
window.open(URL,"","width=440,height=200,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function payback(URL) {
window.open(URL,"","width=785,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function reise_versicherung() {
window.open("https://www.reiseversicherung.de/jservlet/vrv?primaryAgentNumber=081445&secondaryAgentNumber=000000","","width=650,height=410,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function reise_business() {
window.open("https://www.reiseversicherung.de/jservlet/vrv?/ctrl/state=jv-busi-start&/data/agent/hagtnr=081445&/data/agent/nagtnr=000000","","width=650,height=410,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function reise_year() {
window.open("https://www.reiseversicherung.de/jservlet/vrv?/ctrl/state=jv-norm-start&/data/agent/hagtnr=081445&/data/agent/nagtnr=000000","","width=650,height=410,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function reiseziel() {
window.open("http://www.tipredaktion.de/kunden/erv/","","width=700,height=410,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function helvetia() {
window.open("/versicherungen/vergleichen/riester/helvetia-e/popup_helvetia1.htm","","width=660,height=505,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function helvetia2(URL) {
window.open(URL,"","width=600,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function rs_results() {
window.open("/einsurance/doEntry.do?pid=legal&b2bid=15&cpid=rs_results","","width=635,height=505,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function rs_thanks() {
window.open("/einsurance/doEntry.do?pid=legal&b2bid=15&cpid=rs_thanks","","width=635,height=505,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function switchServicetrends() {
window.open("/einsurance/doEntry.do?pid=kfz&b2bid=1&cpid=hr3_online","","width=625,height=650,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* wichtige hinweise box */

function rlv_dialog1() {
window.open("/versicherungen/vergleichen/rlv/dialog/popup_variabel.htm","AGB","width=380,height=440,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function rlv_dialog2() {
window.open("/versicherungen/vergleichen/rlv/dialog/popup_gegenseitig.htm","AGB","width=380,height=440,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function rlv_dialog3() {
window.open("/versicherungen/vergleichen/rlv/dialog/popup_vertrag.htm","AGB","width=380,height=440,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function paybackterms() {
window.open("/common/payback/terms_pkv.htm","AGB","width=400,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function paybackkfz() {
window.open("/common/payback/terms_kfz.htm","AGB","width=400,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function aolterms() {
window.open("/common/payback/terms_aol.htm","AGB","width=400,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function tn_payback_zusatz() {
window.open("/common/payback/terms_pkv-zusatz.htm","AGB","width=400,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function agb() {
window.open("/unternehmen/ueberuns/agb/agb_popup.htm","AGB","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function agbmbox() {
window.open("/unternehmen/ueberuns/agb/agb_popup.htm","","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function impressum() {
window.open("/unternehmen/ueberuns/impressum/impressum_popup.htm","","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function datenschutz() {
window.open("/unternehmen/datenschutz/datenschutz/datenschutz_popup.htm","","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function ssl() {
window.open("/unternehmen/datenschutz/ssl_verschluesselung/ssl_popup.htm","","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function valentin() {
window.open("/common/flowers/terms_valentin.htm","","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

/*
function popup1(URL) {
rentenfenster =
window.open(URL,"","width=482,height=580,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}
*/



/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* callback */

function cb_frp() {
window.open("/common/php/offer/sali_frp/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_sali() {
window.open("/common/php/offer/sali_planforlife/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_pru_generation() {
window.open("/common/php/offer/sali_prugenereation/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_fondsrente() {
window.open("/common/php/offer/fondsaktiv_garantiefonds/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_fondsleben() {
window.open("/common/php/offer/fondsaktiv_leben/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_dkv_pkv() {
window.open("/common/php/offer/newsletter_pkv_dkv/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_smart_invest() {
window.open("/common/php/offer/smartinvest/cbsc.php","","width=500,height=500,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_consors() {
window.open("/common/php/callback/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_bu() {
window.open("/common/php/callback/callback_BU/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_klv() {
window.open("/common/php/callback/callback_klv/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_direktv() {
window.open("/common/php/callback/callback_direktv/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_fondsaktiv() {
window.open("/common/php/callback/callback_fondsaktiv/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_pkv() {
window.open("/common/php/callback/callback_pkv/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_pkv_zusatz() {
window.open("/common/php/callback/callback_pkv_zusatz/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_privaterente() {
window.open("/common/php/callback/callback_privaterente/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_riesterrente() {
window.open("/common/php/callback/callback_riesterrente/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_smartinvest() {
window.open("/common/php/callback/callback_smartinvest/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_teddy() {
window.open("/common/php/callback/callback_teddy/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

function cb_visions() {
window.open("/common/php/callback/callback_visions/cbsc.php","","width=350,height=450,screenX=100,screenY=100,resizable=no,scrollbars=yes");
}

