
function showPIC (was, pfad, breite, bild)   { 
      document.getElementById ("anzeige_" + was).src = "_bilder/" + pfad + "/images/" + bild + ".jpg";
			links = (98 - breite) / 2;		
			document.getElementById ("anzeige_" + was).style.left = links + "%";				
			document.getElementById ("anzeige_" + was).style.width = breite + "%";
			document.getElementById ("anzeige_" + was).style.visibility = "visible";
}

function hidePIC (was, pfad, bild)   {
      document.getElementById ("anzeige_" + was).src = "_bilder/" + pfad + "/images/" + bild + ".jpg";						
			document.getElementById ("anzeige_" + was).style.visibility = "hidden";
}

function simple_viewer ( was)    {		
		sv = window.open ("anzeigen.html", was,"");	
		sv.focus();
}	
function view ( )    {	
			var album = window.name;	
			var flashvars = {};
			flashvars.galleryURL = "bilder/" + album + ".xml";
			var params = {};			
			params.allowfullscreen = false;
			params.allowscriptaccess = "always";
			params.bgcolor = "ccffcc";
			swfobject.embedSWF("css/simpleviewer.swf", "flashcontent", "100%", "720", "9.0.124", false, flashvars, params);
  }

function artikel (was)
 {
 nw = window.open("_bilder/presse/" + was + ".jpg","bild","status=0,menubar=0" );
 nw.focus();
 }

		
function window_close ()   {
   window.close ();
 }

function monsol(wohin)
 {
       location =  wohin + ".htm";
 }

function mail_ab(woher) {
	 
 alert("Besten Dank für Ihre Anfrage!");
 
 document.information.redirect.value="http://www.puppenklinik-rheinsberg.de/" + woher + ".htm";

 document.information.submit();
}

function check_information (woher) {

  if (document.information.realname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.information.realname.focus();
    return false;
  }
  if (document.information.email.value != "") {
   if (document.information.email.value.indexOf("@") == -1 ||
		   document.information.email.value.indexOf(".") == -1 	) {
    alert("Keine oder falsche E-Mail-Adresse angegeben!");
    document.information.email.focus();
    return false;
  }
	}
	mail_ab(woher);
}

function check_email (woher) {

  if (document.information.realname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.information.realname.focus();
    return false;
  }
  if (document.information.email.value != "") {
   if (document.information.email.value.indexOf("@") == -1 ||
		   document.information.email.value.indexOf(".") == -1 	) {
    alert("Keine oder falsche E-Mail-Adresse angegeben!");
    document.information.email.focus();
    return false;
   }
	 }
	mail_ab(woher);
}

function www (which) { 

 nw = window.open(which,"link","");
 nw.focus();
 } 
 

function webdesign (woher)
 {
 nw = window.open("webdesign.htm",woher,"menubar=0,scrollbars=1,toolbar=0,location=0,directories=0,status=0,resizable=1,left=20,top=20,width=800,height=700" );
 nw.focus();
 }


