
  function open_movie_choser()
	{
	film = document.chose_movie.film.value;
	if (film=="") 
		{
		if (chose_movie.film.value != "") {film = chose_movie.film.value;}
		}
	if (film=="") {alert("Bitte geben Sie einen Teil des Filmnamens ein, nach dem gesucht werden soll !");} 
		else 
		{
		var xurl = "../popups/movie_choser.php?myFilm=" + escape(film) + "&url=" + escape("<?php echo $PHP_SELF . complete_query()?>");
		window.open(xurl, 'vfupload', 'width=600,height=350,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
		}
	}

  function set_choser_id(film_id, film)
	{
	document.chose_movie.film.value = film;
	document.chose_movie.film_id.value = film_id;
	document.chose_movie.submitmovie.disabled=false;
	}

  function open_person_choser()
	{
	search_person = document.myform.search_person.value;
	if (search_person=="") 
		{
		if (myform.search_person.value != "") {search_person = myform.search_person.value;}
		}
	if (search_person=="") {alert("Bitte geben Sie einen Teil des Namens ein, nach dem gesucht werden soll !");} 
		else 
		{
		var xurl = "../popups/person_choser.php?search_person=" + escape(search_person) + "&url=" + escape("<?php echo $PHP_SELF . complete_query()?>");
		window.open(xurl, 'vfupload', 'width=600,height=350,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
		}
	}
	function CopyEintrag(join_id, film_id, film)
		{
		window.open("../mymovielist/popup_copyeintrag.php?join_id=" + join_id + "&film_id=" + film_id + "&film=" + escape(film), 'myMovieLists', 'width=600,height=350,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
		}
  function set_personchoser_id(person_id, fullname, sortname)
	{
	document.myform.search_person.value = fullname;
	document.myform.sortname.value = sortname;
	document.myform.person_id.value = person_id;
	}
	
 function open_dvd_choser()
	{
	dvd = document.myform.dvd.value;
	if (dvd=="") 
		{
		if (myform.dvd.value != "") {dvd = myform.dvd.value;}
		}
	if (dvd=="") {alert("Bitte geben Sie einen Teil des DVD-Namens ein, nach dem gesucht werden soll !");} 
		else 
		{
		var xurl = "../popups/dvd_choser.php?myDVD=" + escape(dvd) + "&url=" + escape("<?php echo $PHP_SELF . complete_query()?>");
		window.open(xurl, 'vfupload', 'width=600,height=350,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
		}
	}

  function set_dvdchoser_id(dvd_id, dvd)
	{
	document.myform.dvd.value = dvd;
	document.myform.seen_dvd_id.value = dvd_id;
	}	
	
	function open_community(xurl)
		{
		xurl = xurl + "?rto=" + escape(window.location.href);
		window.open(xurl,'test','width=500,height=275,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no');	
		return true;
		}
	function logout_x()
		{
		var xurl = "../community/logout_close.php" + "?rto=" + escape( window.location.href);
		window.location.href = xurl;
		/*return true;*/
		}
	function myprofil()
		{
		var xurl = "../community/edit_profil.php" + "?rto=" + escape(window.location.href);
		window.location.href = xurl;
		/*return true;*/
		}
	function open_mail(xurl)
		{
		window.open(xurl,'vfmail','width=415,height=260,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no');	
		return true;
		}
	function open_sendpw()
		{
		window.open("../community/sendpw.php",'sendpw','width=415,height=260,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no');	
		return true;
		}
	function open_gewinnspiel_ext()
		{
		window.open('../popups/gewinnspiel.htm','Gewinnspiel','width=420,height=520,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');	
		}
	function show_online()
		{
		window.open('../community/show_online_mitglieder.php','whosonline','width=280,height=350,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0');	
		return true;
		}
	function open_vote_movie(f_id, f_titel, rto)
		{
		var xurl = "../voting/vote.php?film_id=" + f_id + "&film_titel=" + f_titel + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=600,height=600,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_vote_movie_edit(vote_id, f_id, f_titel, rto)
		{
		var xurl = "../voting/vote.php?mode=update&film_id=" + f_id + "&vote_id=" + vote_id + "&film_titel=" + f_titel + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=600,height=600,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_vote_shop(shop_id, shop_name, rto)
		{
		var xurl = "../shop/vote.php?shop_id=" + shop_id + "&shop_name=" + shop_name + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=500,height=275,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_vote_shop_edit(vote_id, shop_id, shop_name, rto)
		{
		var xurl = "../shop/vote.php?mode=update&shop_id=" + shop_id + "&vote_id=" + vote_id + "&shop_name=" + shop_name + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=500,height=275,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_inhalt(f_id, f_titel, rto)
		{
		var xurl = "../voting/write_inhalt.php?film_id=" + f_id + "&film_titel=" + f_titel + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=600,height=600,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_inhalt_edit(inhalt_id, f_id, f_titel, rto)
		{
		var xurl = "../voting/write_inhalt.php?mode=update&inhalt_id=" + inhalt_id + "&film_id=" + f_id + "&film_titel=" + f_titel + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=600,height=600,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_vote_dvd_edit(vote_id, dvd_id, dvd_titel, rto)
		{
		var xurl = "../voting_dvd/vote.php?mode=update&vote_id=" + vote_id + "&source_id=" + dvd_id + "&dvd_titel=" + dvd_titel + "&rto=" + rto;
		window.open(xurl, 'votepop', 'width=500,height=550,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no')
		}
	function open_multimedia(param)
		{
		xurl = "../popups/multimedia.php" + param;
		window.open(xurl, 'multimediapop', 'width=450,height=400,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no');
		}
	function open_shop(shop_type, bezeichnung, x_id)
		{
		if (shop_type == "dvd") 
			{
			var xurl = "../php_dvd/dvd_shop_all.php?bezeichnung=" + bezeichnung + "&dvd_id=" + x_id;
			}
		else
			{
			var xurl = "../php_filme/movie_shop_all.php?bezeichnung=" + bezeichnung + "&film_id=" + x_id;
			}
		window.open(xurl, 'shop', 'width=300,height=400,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbars=yes')
		}			
	function open_vote_dvd(dvd_id, dvd_titel, rto)
		{
		var xurl = "../voting_dvd/vote.php?source_id=" + dvd_id + "&dvd_titel=" + dvd_titel + "&rto=" + escape(rto);
		window.open(xurl, 'votepop', 'width=500,height=550,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbars=no')
		}
	function vf_send_mail(param)
		{
		var xurl = "../popups/mail.php" + param;
		window.open(xurl, 'vfmail','width=415,height=260,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbars=no')
		}
	function vf_print_page(param)
		{
		var xurl = param;
		window.open(xurl, 'Druckversion', 'width=640,height=480,screenX=20,screenY=20,scrollbars=yes')
		}
	function vf_add_mysql(dvd_id, dvd)
		{
		var xurl = "../mydb/popup_chose_kat.php?action=add&dvd=" + dvd + "&dvd_id=" + dvd_id + "&rto=" + escape(window.location.href);
		window.open(xurl,'test','width=500,height=200,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbar=no');	
		}
	function vf_add2movielist(film_id, film)
		{
		var xurl = "../mymovielist/popup_addtolist.php?action=add&film=" + escape(film) + "&film_id=" + film_id + "&rto=" + escape(window.location.href);
		window.open(xurl,'test','width=600,height=700,screenX=20,screenY=20,locationbar=no,menubar=no,status=no,scrollbars=yes');	
		}
	function doTooltip(e, msg) 
		{
		  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
		  Tooltip.show(e, msg);
		}

	function hideTip() 
		{
		  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
		  Tooltip.hide();
		}		
