<!--Script open browser window  Aufruf: <a href="javascript: openBrWindow('../_sites/s_agb.htm','','','600','400','true')"> -->
function openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0

  if(window.screen)if(isCenter)if(isCenter=="true"){

    var myLeft = (screen.width-myWidth)/2;

    var myTop = (screen.height-myHeight)/2;

    features+=(features!='')?',':'';

    features+=',left='+myLeft+',top='+myTop;

  }

  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);

}

<!--Script drucken (frames) <a href="javascript:framePrint('printframe');"> /Bei Framenamen die "" löschen /frame id löschen /Skript unverändert -->
function frameprint(whichframe){
parent[whichframe].focus();
parent[whichframe].print();
}

<!--Script close window (fenster) <a href="javascript: self_close()"> -->
function self_close(){

	self.close();
}
<!--Script close window (frames) <a href="javascript: this_close()"> -->
function this_close(){

	parent.close();
}

<!-- Seite empfehlen Aufruf: <a href="javascript: EmailLink()"> -->
m = "Ich denke, daß k&#246;nnte Dich interessieren ...";
a = "Ich wollte Dir diese Seite empfehlen!";
u = window.location;
function EmailLink(){
window.location = "mailto:"+"?subject=Ich denke das könnte Dich interessieren..." + "&body="+a+" "+u;
}

<!-- Seite empfehlen (Formular)-->
var good;
function checkEmailAddress(field) {
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Bitte geben Sie eine gültige Email Adresse ein!');
field.focus();
field.select();
good = false;
   }
}
m = "Ich denke, daß könnte Dich interessieren ...";
a = "Ich wollte Dir diese Seite empfehlen!";
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.address);
if (good) {
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+a+" "+u;
   }
}

<!-- Bilder Gallerie -->
//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["pics/hochzeit01.jpg", ""]
dynimages[1]=["pics/hochzeit02.jpg", "pics/hochzeit02_thump.jpg"]
dynimages[2]=["pics/hochzeit03.jpg", "pics/hochzeit03_thump.jpg"]

//Preload images ("yes" or "no"):
var preloadimg="no"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

