IE4=document.all;
NS4=document.layers;
BR5=document.getElementById;
OP=window.opera;
if(NS4) {BR='NS4'} else {BR=''}

var URL,smh;
URLs=new Array('aerztliches-qualitaetszentrum.at','www.aerztliches-qualitaetszentrum.at','zuweiserbefragung.at','www.zuweiserbefragung.at');
Startdatei='index.html';
Sprache='de';
for(i=0;i<URLs.length;i++) {if(location.href.indexOf(URLs[i])>-1) {URL='http://'+URLs[i]+'/'}}

function initMain(n1,n2) {
	if(top.location.href.indexOf(URL)<0||top.location.href==location.href) {
		top.location.replace(URL+Startdatei+'?'+top.location.href);
	} else {
		initMain1(n1,n2);
	}
}
function initMain1(n1,n2) {
	if(top.frames.nav) {
		if(top.frames.nav.L0==1) {
			top.frames.nav.kx(n1,n2+1);
		} else {
			setTimeout('initMain1('+n1+','+n2+')', 20);
		}
	} else {
		setTimeout('initMain1('+n1+','+n2+')', 20);
	}
}
function elem(v) {
	if(BR5) {return document.getElementById(v)}
	if(IE4) {return eval('document.all.'+v)}
	if(NS4) {return eval('document.layers.'+v)}
}
function imgsrc(n,l) {
	if(BR5) {return document.getElementsByName(n)[0]}
	if(IE4)	{return eval('document.all.'+l+'.document.'+n)}
	if(NS4) {return eval('document.layers.'+l+'.document.'+n)}
}
function obj(o) {if(NS4) {return elem(o)} else {return elem(o).style}}
function zeige(o,si) {
	v=obj(o);
	if(NS4) {if(si==1) {v.visibility='show'} else {v.visibility='hide'}
	} else {if(si==1) {v.visibility='visible'} else {v.visibility='hidden'}}
}
function fokusX() {if(!NS4&&!OP) {elem('leer').focus()}}
function bildgross(bild,text,w,h) {
	maxB=screen.width-40;
	maxH=screen.height-100;
	scr='';
	if(w>maxB) {
		w=maxB;
		scr=',scrollbars=yes';
	}
	if(h>maxH) {
		h=maxH;
		scr=',scrollbars=yes';
	}
	if(pp()) {
		popup_close();
		setTimeout('bildgross("'+bild+'","'+text+'","'+w+'","'+h+'")',100);
	} else {
		eval('popup_handle=window.open("'+URL+'/'+Sprache+'/bildgross.php?Bild='+bild+'&Text='+text+'","bildgross","width='+w+',height='+h+',left=20,top=20'+scr+'")');
	}
}
function popup_close() {if(pp()) {if(!eval('top.frames.inhalt.popup_handle.closed')) {eval('top.frames.inhalt.popup_handle.close()')}}}
function pp() {
	if(eval('typeof top.frames.inhalt=="object"')) {
		if(eval('typeof top.frames.inhalt.popup_handle=="object"')) {
			if(eval('top.frames.inhalt.popup_handle.closed')) {return false} else {return true}
		}
	} else {return false}
}
function hM(t1,t2,t3) {location.href='mai'+'lto:'+t1+String.fromCharCode(64)+t2+'.'+t3}

