<!--$Eprise:version:Eprise Kernel 5.0.1.114/Solaris [Feb 17 2005 13:07:56]<br>Using database Oracle OCI dps@redp<br>Current log level is : 3 ( LOG_INFORMATION [*default] )$-->
<!--$Eprise:objectid:29470$-->


<!--$Eprise:bps:62817.Text$-->
//aus der alten Parameters-Datei
//(wird wg. Netscape-Probs nicht mehr includiert)
var scriptsPath = '/scripts/';
var bUmfrageExist = false;
var sNflRand = '';
var sImpressum = true;
sNflRand = String(Math.random());
sNflRand = sNflRand.substr(2, 12);

// Global variables
var fertig = false
var nn4 = false;	// Netscape Navigator or Communicator
var ie4 = false;
var ie5 = false;
var ie6 = false;
var ie = false;		//IE 5 und IE6
var ns6 = false;    	// Netscape 6
var ns7 = false;   	 // Netscape 7
var moz = false;		// Mozilla Engine
var dom1 = false;	// fully supports DOM1
var dom2 = false;	// fully supports (important bits of) DOM2
var op = false;  		//all opera
var op7 = false;  	//opera 7
var mac = false;		//mac
var safari = false;	//mac Safari
var ff = false;		//Firefox

var old = false;		// very old browser

var browserWarn = false;
var strAgent = window.navigator.userAgent;

function browser_detect()
{
	op = (strAgent.indexOf("Opera") > -1);
	op7 = (strAgent.indexOf("Opera/7") > -1) || (strAgent.indexOf("Opera 7") > -1);

    // do it the official W3C way
    if ( window.document.implementation != null)
    {
         dom1 = window.document.implementation.hasFeature("HTML","1.0");
         dom2 = window.document.implementation.hasFeature("HTML","2.0") &&
         	window.document.implementation.hasFeature("Events","2.0") &&
         	window.document.implementation.hasFeature("Core","2.0") &&
         	window.document.implementation.hasFeature("CSS2","2.0");
    }
    // Mozilla based browsers contain the Gecko rendering engine
    moz = (window.navigator != null )
		? (strAgent.indexOf("ecko") != -1 )
		: false;
    ff = (strAgent.indexOf("Firefox") != -1);
    nn4 = (window.document.layers != null && !moz);
	ns6 = (moz && !dom2);
	ns7 = (moz && (strAgent.indexOf("Netscape/7") > 0));

    // IE has incremental support for the Document Object Model
    ie6 = (window.document.all && dom1);
    ie5 = (window.document.all && (strAgent.indexOf('MSIE 5')>0));		//&& window.document.getElementsByTagName()
	ie  = (ie5 || ie6 && !op);
    ie4 = (window.document.all && !ie6 && !ie5);
	mac = (strAgent.indexOf('Mac')>0);
	safari = (strAgent.indexOf('Safari')>0)
    // something horrible and old
    old = (!ie && !dom1 && !moz);

	// set flag browserWarn true if IE<5 or Netscape < 6
	if (ie == true || moz== true){
		browserWarn = false;
	}
	else {
		browserWarn = true;
	}
	//alert (browserWarn);
}

browser_detect();
if (ns6 || ns7) document.write('<link rel="stylesheet" type="text/css" href="/styles/net6.css" />');
//if (safari) document.write('<link rel="stylesheet" type="text/css" href="/styles/safari.css" />');
//if (mac && moz) document.write('<link rel="stylesheet" type="text/css" href="/styles/macmozilla.css" />');

function popup_content(fenstername,fensterlink,breite,hoehe,scrolling,resizablevar){
        eval("var "+fenstername+" = window.open('"+fensterlink+"','"+fenstername+"','scrollbars="+scrolling+",width="+breite+",height="+hoehe+",resizable="+resizablevar+",top="+getCoordinateY(25)+",left="+getCoordinateX(165)+",status=yes')");
        if (!ie4) eval(fenstername+".focus()");
}

function popup_fenster(fenstername,fensterlink,breite,hoehe,scrolling,toolbarvar,locationvar,directoriesvar,statusvar,menubarvar,resizablevar,xpos,ypos){
	eval("var "+fenstername+" = window.open('"+fensterlink+"','"+fenstername+"','width="+breite+",height="+hoehe+",scrollbars="+scrolling+",toolbar="+toolbarvar+",location="+locationvar+",directories="+directoriesvar+",status="+statusvar+",menubar="+menubarvar+",resizable="+resizablevar+",top="+getCoordinateY(ypos)+",left="+getCoordinateX(xpos)+"')");
	if (!ie4) eval(fenstername+".focus()");
}

function getCoordinateX(nGivenXpos){
 	var xPos=0;
	var xPlus=0;
	if (ie){xPos = window.screenLeft;}
	else{xPos = window.screenX;}
	if(ie) {xPlus=4;}
	if(moz) {xPlus=4;}
	if(op){xPlus=6;}
	if(ff) {xPlus=4;}
	xPos += (nGivenXpos + xPlus);
	return xPos;
}

function getCoordinateY(nGivenYpos,bFix){
 	var yPos=0;
	var yPlus=0;
	if (ie){yPos = window.screenTop;}
	else{yPos = window.screenY;}
	if(ie) {yPlus=2;}
	if(moz) {yPlus=142;}
	if(op){yPlus=64;}
	if(ff) {yPlus=134;}
	yPos += (nGivenYpos + yPlus);
	return yPos;
}

function popup_navigator(fenstername,fensterlink,breite,hoehe){
        if (ie){
                if (navigator.platform.indexOf("Win") == -1){
                        var xPos = 482;
                        var yPos = 34;}
                else{
                        var xPos = window.screenLeft +  482;
                        var yPos = window.screenTop - 104;}}
        else{
                var xPos = window.screenX + 482;
                var yPos = window.screenY + 34;}
        //alert("X-Pos:" + xPos + "\nY-Pos:" + yPos)
        eval("var "+fenstername+" = window.open('"+fensterlink+"','"+fenstername+"','width="+breite+",height="+hoehe+",scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,top="+yPos+",left="+xPos+"')");
        eval(fenstername+".focus()");}


function preload_image(img_name,img_src){
	eval(img_name+' = new Image()');
	eval(img_name+'.src = img_src');}

function makeNaviToCookie(){
	return aktivText;
}

function showVTS(sSearchKind){
	var sSearchfach = "search_prox";
	if(sSearchKind) sSearchfach = sSearchKind;
	var CommandID = 'D';
	var ServiceID = 'privat';
	var KundenPLZ = '';
	var KundenStr = '';

	if(document.fachmann){
		if(!sSearchKind){
			KundenPLZ = document.fachmann.Plz.value;
			KundenStr = document.fachmann.Strasse.value;
		} else {
			KundenPLZ = document.fachmann.plz.value;
			KundenStr = document.fachmann.strasse.value;
		}
	}
	if(sSearchfach=='search_fach') CommandID = 'S';
	URI="https://fachmann.allianz.de/vts_app/vts";
	URI+='?ServiceID=' + escape(ServiceID);
	URI+='&AppFlag=VTS';
	URI+='&integrated=false';
	URI+='&CommandID=' + escape(CommandID);
	URI+='&search_fach_prox=' + sSearchfach;

	if(sSearchfach=='search_fach'){
		URI+='&plz=' + escape(KundenPLZ);
		URI+='&strasse=' + escape(KundenStr);
	} else {
		URI+='&plz_prox=' + escape(KundenPLZ);
		URI+='&str_prox=' + escape(KundenStr);
	}
	popup_fenster('newSatellit',URI,600,600,'yes','no','no','no','yes','no','yes',55,0);
}

function showVTSWithForm(sSearchfach)
{
	if(sSearchfach=='search_fach') {
		document.fachmann.CommandID.value = 'S';
	}
	else{
		document.fachmann.CommandID.value = 'D';
		document.fachmann.plz_prox.value = document.fachmann.plz.value;
		document.fachmann.str_prox.value = escape(document.fachmann.strasseIntern.value);
	}
	document.fachmann.strasse.value = escape(document.fachmann.strasseIntern.value);
	document.fachmann.search_fach_prox.value = sSearchfach;
	popup_fenster('newSatellit','',600,600,'yes','no','no','no','yes','no','yes',55,0);
}

function showprint(pageId){
	var sUrl = window.location.href;
	if(window.location.search != "")
		sUrl = sUrl + "&mode=print";
	else
		sUrl = sUrl + "?mode=print";
	eval("var newWin = window.open('/print?p="+pageId+"', 'newWin','height=600,width=800,top=0,left=0,status=yes,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes')");
}

function checkBackBox(){
	var oBack = document.getElementById('zurueck');
	var oBackPoints = document.getElementById('backpoints');

	if((takeCookieText('teasertext')=='' || takeCookieText('teasertext')==null || takeCookieText('teasertext')=='undefined') && (takeCookieText('href')=='' || takeCookieText('href')==null) || takeCookieText('href')=='undefined' || takeCookieText('href')==window.location.pathname){
		oBack.className='notvisible';
		oBackPoints.className='notvisible';
	}else{
		oBack.className='visible';
		oBackPoints.className='points';
	}
	if(bUmfrageExist) processInquiry();
}

function takeCookieText(cookieinhalt){
        if (document.cookie.indexOf(cookieinhalt) != -1){
		var aInCookie = document.cookie.split(";");
		for (y=0;y<aInCookie.length;y++){
			if(aInCookie[y].indexOf(cookieinhalt)!=-1){
				if(aInCookie[y].indexOf("=")!=-1){
					aCookie = aInCookie[y].split("=");
					return unescape(aCookie[1]);}
				else	{
					return null;
				}}
		}
	}else{return '';}
}

function setQPCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function nurZahlen(feld) {var zahlen = "0123456789_"; for (var i=0; i < feld.length; i++) if (zahlen.indexOf(feld.charAt(i)) == -1){return false;} return true}

function checkIfImpressum(){
	var sQuery = location.search.substring(1);
	if (sQuery.indexOf("Impressum=false") != -1)
		sImpressum = false;
	if (!sImpressum)
		document.getElementById('navPointImpressum').style.display = "none";
}

function impFalse(where){
	if(sImpressum)
		window.location.href=where;
	else{
		if(where.indexOf('?email=')!=-1)
			window.location.href=where+"&Impressum=false";
		else
			window.location.href=where+"?Impressum=false";}
}

function goToWithHdlDate(where){
	if(where!=null)
		window.location.href=where+location.search;
}

<!--$Eprise:done$-->

