var wb = null;

function popup(site,w,h){
	if (window.screen) {
		var hori = screen.availWidth;
		var verti = screen.availHeight;
		wb=window.open(site,'Inhalt','resizable=1,scrollbars=1,width=' + w + ',height=' + h + ',left=' + ((hori - w - 10) * .5) + ',top=' + ((verti - h - 30) * .5));
	}
}

function show(text){
	window.status=text;
	warten=20;
	setTimeout("loeschen()",30);
}

function loeschen(){
	warten--;
	if (warten>1)
		setTimeout("loeschen()",30);
	else
		window.status="";
}

function input_out(text, inputname)
{
 if (document.newsletter(inputname).value=='')
 {
  document.newsletter(inputname).value = text;
 }
}

function input_in(text, inputname)
{
 if (document.newsletter(inputname).value == text)
 {
  document.newsletter(inputname).value = '';
 }
}

function bild(url)
         {
          open(url, 'bild', "toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width=540px,height=410px");
          href = url;
         }
function diashow(url)
         {
          open(url, 'diashow', "toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,fullscreen=yes");
          href = url;
         }

function FullScreen()
{
window.open("http://<?php echo $adminurl;?>/galerie_schoner.php","","fullscreen=yes");
}
function schoner(js) {
  return eval(js)
}


		function map24_removeDefaultValues(){
			if (document.link2map24.sstreet.value == 'Straße') 	document.link2map24.sstreet.value 	= '';
			if (document.link2map24.szip.value 	  == 'PLZ') 		document.link2map24.szip.value 		= '';
			if (document.link2map24.scity.value   == 'Ort') 		document.link2map24.scity.value 	= '';
		
			}
