function openIt(sel) {
	nam = sel.options[sel.selectedIndex].text;
	id  = sel.value;
	fenster = window.open('mp3db/selPopup.php?artist=' + nam + '&id=' + id,
						    '',
						  'top=180,left=40,width=350,height=400,scrollbars=yes,menubar=no,location=no,toolbar=no,dependend=yes');
	fenster.focus();
}

function myOpen(url) {
	h = screen.height;
	w = screen.width;
	f = window.open(url,
					'',
					'top=0,left=0,width='
					+ w + ',height='
					+ h - 50
					+
					',resizable=no,scrollbars=no,menubar=no,location=no,toolbar=no,dependend=yes');
	f.focus();
}


var pop;

function myOpenWH(url, w, h) {
    cx = (screen.width - w) / 2;
    cy = (screen.height - h) / 2;
    
    if ( pop && pop.closed != true )
      {
        pop.close();
      }
   	pop = window.open(url,
                      '',
                      'top=' + cy + ',left=' + cx
                      + ',width=' + w 
                      + ',height=' + h
                      + ',resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,dependend=yes');
   pop.focus();
}

function openDlg ( url ) {
	h = 120;
	w = 240;
	pop = window.open(url,
                      '',
                      'top=0,left=0,width='
                      + w + ',height='
                      + h - 50
                      +
                      ',resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,dependend=yes');
    pop.resizeTo(w, h);
    pop.moveTo( screen.width / 2, screen.height / 2);
    pop.focus();
}

function closePop() {
    pop.close();
}

function close_this()
{
  opener.location.reload();
  window.close();
}

