function dest(form) {
  var index=form.select.selectedIndex
  if (form.select.options[index].value != "0") {
     
    var win = window.open('','dest','width=800,height=600,top=0,left=0,status=no,resizable=yes,scrollbars=yes,toolbar=yes');
    win.location=form.select.options[index].value;
  }
}

function media_play(File) { location.href = File; }

function zoom(File,width,height) {
	w=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,20,20');

	img = new Image();
	img.src = File;
		
        var wid = width;
	var hei = height;		
	win_html = "<html>\n<head>\n<title>Zoom</title>\n<script language=\"javascript\" type=\"text/javascript\" src=\"../js/func.js\"></script>\n</head>\n<body marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\">\n<a href=\"javascript:window.close();\"><img src=\""+File+"\" border=\"0\"></a>\n</body>\n</html>";

	if(document.layers) {

		with(w.document) {
			open();
			clear();			
			write(win_html);			
			close();	
		}
	}

	if(document.all || document.getElementById || window.opera) {		
	
		wid=wid+28;hei=hei+47;
		w.document.write(win_html);
	}

	w.resizeTo(wid,hei);

	winx=(screen.width/2)-(wid/2);
	winy=(screen.height/2)-(hei/2);
	w.moveTo(winx,winy);
}

function telegram(ID,URIAUTH,SEND_TO,ACTION) {
	w=window.open("telegram.php?id=" + ID + "&action=" + ACTION + "&send_to=" + SEND_TO + "&phorum_uriauth=" + URIAUTH + "","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,20,20");

	var wid = 300;
	var hei = 210;

	w.resizeTo(wid,hei);

	winx=(screen.width/2)-(wid/2);
	winy=(screen.height/2)-(hei/2);
	w.moveTo(winx,winy);
}

function smilie(Zeichen) {
  	window.document.review_form.meinung.value =
   	window.document.review_form.meinung.value + Zeichen;
}
