// Kommentar:

<!-- Open-Funktion -->

PositionX     = 120;
PositionY     = 120;
defaultWidth  = 640;
defaultHeight = 480;
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,status=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,status=no,width=150,height=100,left='+PositionX+',top='+PositionY;


function popImage(imageURL){
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;}</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('width=document.images[0].width+10;');
writeln('height=document.images[0].height+58;');
writeln('window.resizeTo(width,height);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["img"].width;');
writeln('window.innerHeight=document.images["img"].height;}}');
writeln('function doTitle(){document.title="Detailbild";}');
writeln('</sc'+'ript>');
writeln('</head><body bgcolor="ffffff" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<a href="javascript:window.close();" title="Fenster schließen"><img name="img" src='+imageURL+' style="display:block" border="0"></a></body></html>');
close();		
}}

<!-- history -->
function history_set() {
if (window.history.length >0)
{
//document.write ('<a href="javascript:history.go(-1);" title="Vereinigte Arabische Emirate Unterk&uuml;nfte Suchergebnisse">Such-Ergebnis</a>');
document.write ('<a href="javascript:history.go(-1);">Zur&uuml;ck</a>');

}
else
{
document.write ('Letzte bekannte Seite');
}
}
<!-- History END -->



<!-- POPUP -->
function popMerkzettel(id)
{
  Merkzettel = window.open('../suchen/merkzettel.php?obj='+id,'Merkzettel','width=300,height=200,left=200,top=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  Merkzettel.focus();
}

function delMerkzettel(id)
{
 Merkzettel = window.open('../suchen/merkzettel.php?del='+id,'Merkzettel','width=300,height=200,left=200,top=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  Merkzettel.focus();
}

function openHilfe(link)
{
  onlineHilfe = window.open(link,'onlineHilfe','width=350,height=250,left=50,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  onlineHilfe.focus();
}
<!-- POPUP END  -->


<!-- Alt1 POPUP -->
 
   function popup(breite, hoehe, ziel, name){
    var name = name;
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=yes, scrollbars=yes";
    _popup = window.open(ziel,name,_eigenschaften);
    _popup.focus();
   }
   
   function popupn(breite, hoehe, ziel){
     var _popwidth = breite;
     var _popheight = hoehe;
     _xpos = (screen.width - _popwidth) / 2;
     _ypos = (screen.height - _popheight) / 2;
     var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=yes, scrollbars=yes";
     _popup = window.open(ziel,"PopUpn",_eigenschaften);
     _popup.focus();
   }
   

   function popupnoscroll(breite, hoehe, ziel, name){
    var name = name;
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=no, scrollbars=no";
    _popup = window.open(ziel,name,_eigenschaften);
   }
   
   function orderpopup(breite, hoehe, ziel){
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=no, scrollbars=no";
    _popup = window.open("orderpopup.html","orderpopup",_eigenschaften);
    self.location.href = ziel;
   }
<!-- ENDE POPUP -->

<!-- Alt2 POPUP -->
function show_picture(image_url) {

    var imgurl = "http://www.emirate-urlaub.de/homes/?url=" + image_url;

    picturePreview = window.open(imgurl, 'picturePreview', 'resizable=1,HEIGHT=300,WIDTH=400');
    picturePreview.focus();
}
<!-- Alt2 POPUP -->


