var dod_default = 'width=600,height=400,screenX=0,screenY=0,status=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,location=no';

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


// myfundorado
function myfundorado(url){
   if (document.getElementsByName('biggi_show').length > 0) {
       document.getElementsByName('biggi_show')[0].src="http://www.fundorado.de/club/cams/biggi_cam/stream/index.html";
   }
   var index = window.open(url,"_myfun","width=463,height=442,scrollbars=no,resizable=no");
   index.focus();
}

// myfundorado auto-popup
function myfundoradoAuto(url){
   var autoLogin = "<?=$autoLogin;?>";
   if(autoLogin == "yes"){
      var index = window.open(url,"_myfun","width=463,height=442,scrollbars=no,resizable=no");
      index.focus();
   }
}

// register_favorites
function register_favorite(url){
   var favorites = window.open(url,"_faves","width=400,height=150,scrollbars=no,resizable=no");
   favorites.focus();
}


function vcard(url){
   var vcard = window.open(url,"_vcard","width=477,height=442,scrollbars=yes,resizable=no");
   vcard.focus();
}


