/*** open new Window ***/

function openWin(fName, fbreite, fhoehe)
{
    if (typeof(fbreite) == 'undefined' || typeof(fhoehe) == 'undefined') {
        fbreite = 710;   // nur hier anpassen, falls
        fhoehe  = 581;   
    }

    var screenOrt = screen.availWidth - (fbreite + 10);
    var props = 'width='+fbreite+',height='+fhoehe+',top=0,left='+screenOrt+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes';
    
    var nf = window.open(fName,'finestra',props);
    nf.focus();
}
/*
<a href="javascript:openWin('../bilder/1_sofa.jpg', 600, 400)">
      <img src="../bilder/1_sofa_1.jpg title="B&uuml;rostuhl" alt="B&uuml;rostuhl" width="100" height="67" border="0"/>
</a>
<a href="javascript:openWin('../bilder/xx.jpg', 800, 200)">
      <img src="../bilder/xx_1.jpg title="B&uuml;rostuhl" alt="B&uuml;rostuhl" width="100" height="67" border="0"/>
</a>
*/


/* mit fixen Fenstermassen */
function opWin( fName )
{
    var fbreite = 610;   // nur hier anpassen, falls
    var fhoehe  = 410; 
    
    var screenOrt = screen.availWidth - (fbreite + 10);
    var props = 'width='+fbreite+',height='+fhoehe+',top=0,left='+screenOrt+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes';
    
    var neuW = window.open(fName,'ko', props);
    neuW.focus();
}

/*
<a href="javascript:opWin('../bilder/1_sofa.jpg')">
      <img src="../bilder/1_sofa_1.jpg title="B&uuml;rostuhl" alt="B&uuml;rostuhl" width="100" height="67" border="0"/>
</a>
*/


