function openPopupBuch(seite, link, width, height, scroll, top, left) {
	window.open(link ,
		seite,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll +",resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openPopupAnz(seite, link, width, height, scroll, top, left) {
	window.open(link ,
		seite,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll +",resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openFenster(files, width, height) {

	var left = (screen.width-width) / 2;
	var top = (screen.height-height) / 2;

	window.open("admin/" + files,
		"Moderator",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openMusik(id, width, height, art) {

	var left = (screen.width-width) / 2;
	var top = (screen.height-height) / 2;

	window.open("modules.php?op=musik&id=" + id + "&art=" + art,
		"Moderator",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openModerator(moderatorid) {

	var left = (screen.width-600) / 2;
	var top = (screen.height-600) / 2;

	window.open("modules.php?op=moderator&moderatorid=" + moderatorid,
		"Moderator",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=600,left=" + left + ", top=" + top);
	return false;
	}

function openKontakt() {

	var left = (screen.width-600) / 2;
	var top = (screen.height-500) / 2;

	window.open("modules.php?op=kontakt&lang=de",
		"Moderator",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=500,left=" + left + ", top=" + top);
	return false;
	}

function openNL() {

	var left = (screen.width-600) / 2;
	var top = (screen.height-500) / 2;

	window.open("modules.php?op=newsletter&action=subscribe",
		"Moderator",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=500,left=" + left + ", top=" + top);
	return false;
	}

function openPopup(seite, link, width, height, scroll) {

	var left = (screen.width-width) / 2;
	var top = (screen.height-height) / 2;

	window.open(link ,
		seite,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll +",resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openWallpaper(wallid, width, height) {

	var left = (screen.width-width) / 2;
	var top = (screen.height-height) / 2;

	window.open("inc/gallery_wallpaper.php?wallid=" + wallid,
		"Forum",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}


function openForum(height) {

	var left = (screen.width-800) / 2;
	var top = (screen.height-height) / 2;

	window.open("forum/index_a.php?height=" + height,
		"Forum",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openMSGPic(userid) {
	window.open("op.php?op=member&files=image_preview",
		"MSGPic" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=636,left=601, top=0");
	return false;
	}

function openShop(id, width, left) {

	var top = (screen.height-605) / 2;
		
	window.open("modules/shop/shoppopup.php?id=" + id,
		"shop" + id,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + width + ",height=605,left=" + left + ", top=" + top);
	return false;
	}

function openBetaWindow($userid) {
	if(navigator.appName.indexOf('Netscape') == -1) {
		var width = screen.width;
		var height = screen.height;
    		} 
    	else {
		var width = screen.width - 9;
		var height = screen.height - 30;
    		}

	 window.open("http://beta.com2gay.com/index_a.php?width=" + width + "&height=" + height, 
	 "BETATEST", 
	 "width="+width+",height="+height);
	}

function CamGross(userid, dbip, port, camsoft) {
	window.open("modules.php?op=user&files=camgross&userid=" + userid + "&dbip=" + dbip + "&port=" + port + "&camsoft=" + camsoft,
	"camgross","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=640,height=480");
	return false;
	}
	
function openGallPPic(data, height, width) {
	window.open("../../inc/gallery_anz.php?data=" + data,
		"Picture",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height);
	return false;
	}

function openGallPic(data) {
	window.open("inc/gallery_anz.php?data=" + data,
		"Picture",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100");
	return false;
	}

function openMedienPic(art, id) {
	window.open("inc/gallery_medanz.php?art=" + art + "&id=" + id,
		"Medien" + id,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100");
	return false;
	}

function openCSDTermine(csdid) {
	window.open("modules.php?op=termine&files=info&id=" + csdid,
		"CSDTermine" + csdid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=360");
	return false;
	}

function openProfil(userid, width, height, left, top) {
	window.open("profil.php?userid_fremd=" + userid,
		"Profil" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + left + ", top=" + top);
	return false;
	}

function openMessage(messid, status) {
	window.open("op.php?op=messages&messid=" + messid + "&typ=" + status,
		"Messages_" + messid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=no,width=300,height=530,left=0,top=0");
	return false;
	}

function openFavAnz(userid) {
	window.open("popup.php?op=anzeige&files=anzfav&userid_fremd=" + userid,
		"FavoritenAnz" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=240,height=470,left=0,top=0");
	return false;
	}

function openFavNew2(userid) {
	window.open("../popup.php?op=user&files=favoritenanz&userid_fremd=" + userid,
		"FavoritenNeu" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=280,left=0,top=0");
	return false;
	}

function openFavNew(userid, art) {
	window.open("popup.php?op=user&files=favoritenanz&art=" + art + "&userid_fremd=" + userid,
		"FavoritenNeu" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=280,left=0,top=0");
	return false;
	}

function openCloseWindow() {
	window.Com2Gay.close();

	window.open("popup.php?op=user&files=favoritenanz&userid_fremd=" + userid + "&favart=favnew",
		"FavoritenNeu" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=280,left=0,top=0");
	}

function openUserMessage(userid) {
	window.open("popup.php?op=user&files=mdatenanz&userid_fremd=" + userid,
		"MessageUser" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=600,left=0, top=0");
	return false;
	}

function openHilfe(op) {
	window.open("modules/hilfe/index.php?op" + op,
		"Hilfe" + op,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=500,left=0, top=0");
	return false;
	}

function openPopup(op, files, width, height) {
	window.open("popup.php?op" + op + "&files=" + files,
		"Popup" + op,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=0, top=0");
	return false;
	}

function openAdmin(userid) {

	var width = screen.width-9;
	var height = screen.height-36;
	var fensterlang = (width - 30) /2;
	var fensterhoch = (height - 60) /2

	window.open("admin/index_a.php?op=sc&fensterlang=" + fensterlang + "&fensterhoch=" + fensterhoch + "&userid=" + userid,
		"Fenster_sc" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=0,top=0");
	return false;
	}

function openSmilies() {
	window.open("popup.php?op=user&files=smilies",
		"Smilies",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=350,height=500,left=0, top=0");
	return false;
	}

function openGalleryAnz(userid_fremd) {
	window.open("modules.php?op=member&files=gallery&userid_fremd=" + userid_fremd,
		"C4GGallery",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=650");
	return false;
	}

function openGallery(bild, width, height) {
	window.open("inc/gallery_pic_anz.php?bild=" + bild + "&height=" + height + "&width=" + width,
		"UGGallery",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width +",height=" + height);
	return false;
	}

function openChat(userid, farbecss, lang) {

	var left = (screen.width-749) / 2;
	var top = (screen.height-671) / 2;

	window.open("modules/chat/chat.php?lang=" + lang + "&farbecss=" + farbecss,
		"Chat" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=740,height=625,left=" + left + ",top=" + top);
	return false;
	}

function openRadio(userid, rid, lang, farbecss) {

	var left = (screen.width-900) / 2;
	var top = (screen.height-680) / 2;

	window.open("http://radio.com2gay.com/index.php?userid=" + userid + "&rid=" +rid+ "&lang=" +lang+ "&farbecss=" +farbecss,
		"Fenster_sc" + userid,
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=900,height=617,left=" + left + ",top=" + top);
	return false;
	}

function copyright(lang, farbecss) {

	var left = (screen.width-509) /2;
	var top = (screen.height-436) /2;

	window.open("copyright.php",
		"copyright",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=400,left=" + left + ",top=" + top);
	return false;
	}

function openPicDialog(datei, messid, userid_fremd, userid) {

	var width = screen.width-9;
	var height = screen.height-36;
	var left = (width - 650) /2;
	var top = (height - 600) /2

	window.open("modules.php?op=user&files=" + datei + "&messid=" + messid + "&userid=" + userid + "&userid_fremd=" + userid_fremd,
		"OpenPicDialog",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=600,left=" + left + ",top=" + top);
	return false;
	}

function openLanderInfo(lid) {

	var width = screen.width-9;
	var height = screen.height-36;
	var left = (width - 650) /2;
	var top = (height - 400) /2

	window.open("modules.php?op=infos&files=landerinfo&lid=" + lid,
		"OpenPicDialog",
		"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=650,height=400,left=" + left + ",top=" + top);
	return false;
	}

function Cancel() {
	window.close() ;
	}
