var frn_oNav = 'width=735,height=520,screenX=200,screenY=0,status=no,menubar=no,toolbar=no,resizable=yes,location=no,scrollbars=1';


function media_openWin(theURL,winName,features,w,h) {
  if ( w != "" && w != undefined ) {
    breite = RegExp("(width=[0-9]+)");
    if (  features.search("width=") >= 0 ) { 
      features = features.replace(breite,"width="+w);
    } else {
      features = features + ",width=" + w + "";
    }
  }
  if ( h != "" && h != undefined ) {
    hoehe = RegExp("(height=[0-9]+)");
    if ( features.search("height=") >= 0 ) {
      features = features.replace(hoehe, "height=" + h);
    } else {
      features = features + ",height=" + h + "";
    }
  }
  Fenster = window.open(theURL,winName,features);
  // Fenster.focus();
}
