var siteUrl = "http://www.dieselbstzahlerpraxis.de/" ;

function js_stream_file(a,f) {
	//EDIT!!!
 	streamUrl="stream_file.asp?file="+f+"&action="+a;
	//streamUrl="stream_file.asp?file="+f+"&action=download";
	//EDIT2!!!
	//if(a=='download'){ filestream.location.href=streamUrl; } else { window.open(streamUrl); }
	window.open(streamUrl);
}


function js_submit_dis(f,e){
	if(blnLoginUser=="y"){
	with(document.forms[f]){
		elements[e].disabled = "true";
		submit();
	}}	
}

function js_submit_dis_u(f,e){
	with(document.forms[f]){
		elements[e].disabled = "true";
		submit();
	}	
}

//-----image popup-----//
//-----original script by etLux-----//

	PositionX = 100;
	PositionY = 100;
	defaultWidth  = 200;
	defaultHeight = 200;
	var AutoClose = false;

	if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
	var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
	var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;


	function js_imgpop(p_url){


	//function popup_image(p_url,p_title){
		if (isNN){imgWin=window.open('about:blank','',optNN);}
		if (isIE){imgWin=window.open('about:blank','',optIE);}
		with (imgWin.document){
			writeln('<html><head><title>Loading...</title><style>body{margin:0px; overflow:hidden;}</style>');writeln('<sc'+'ript>');
			writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
			writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
			writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
			writeln('width=100-(document.body.clientWidth-document.images[0].width);');
			writeln('height=100-(document.body.clientHeight-document.images[0].height);');
			writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
			writeln('window.innerWidth=document.images["popImage"].width;');writeln('window.innerHeight=document.images["popImage"].height;}}');
			writeln('function doTitle(){document.title="Detailansicht";}');writeln('</sc'+'ript>');
			if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" style="overflow: hidden;">')
			else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
			writeln('<a href="javascript:this.parent.close()" title="Fenster schließen"><img name="popImage" src=images/popup/'+p_url+' border="0" style="display:block"></a></body></html>');
			close();}
	}


function js_moviepop(p_Video, p_VWidth, p_VHeight, p_WWidth, p_WHeight)
{
	window.open("show_video.asp?vsource="+p_Video+"&vwidth="+p_VWidth+"&vheight="+p_VHeight,"Video","width="+p_WWidth+", height="+p_WHeight+", menubar=no, resizable=no, status=no, scrollbars=no, titlebar=no, toolbar=no, location=no");
}

function urteile() {
	if(blnLoginUser=="y"){
	window.open("http://urteile.demozugang.de/pop.asp?styleType=wg", "urteile", "width=650, height=550, status=no, toolbar=no, menubar=no, resizable=no, scrollbars=yes");
	}
}
