function ShowMap(regiocode) {
    MAP1 = window.open( "/index.php?load=SearchEngine&show=map&regiocode="+regiocode, "ShowMap", "height=640,width=856,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10,top=50" );
    MAP1.focus();
}    

function ShowPic(id) {
    P1 = window.open( "inc/showpic.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function ShowVideo(id) {
    FPM = window.open( "/index.php?load=Video&id=" + id + "&session="+session , "ShowVideo", "height=480,width=370,toolbar=no,scrollbars=yes,resizeable=no,left=150,top=50" );
    FPM.focus();
}

function ShowVideoList(uid) {
    FPG = window.open( "/index.php?load=Video&show=videolist&uid=" + uid + "&session="+session, "ShowVideoList", "height=500,width=600,toolbar=no,scrollbars=no,resizeable=no,left=300,top=10" );
    FPG.focus();
}

function ShowAlben(uid,username) {
    FPG = window.open( "/index.php?load=HallofFame&uid=" + uid + "&username=" + username + "", "ShowHallofFame", "height=600,width=650,toolbar=no,scrollbars=no,resizeable=no,left=300,top=10" );
    FPG.focus();
}

function ShowAnzeigeP(uid) {
    FPG = window.open( "/index.php?load=Anzeigen&puid=" + uid + "", "Anzeigen", "height=600,width=635,toolbar=no,scrollbars=no,resizeable=no,left=300,top=10" );
    FPG.focus();
}

function ShowPopMessage(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=send&uid=" + uid + "&session="+session, "ShowPopMessage"+uid, "height=515,width=480,toolbar=no,scrollbars=yes,resizeable=yes,left=300,top=50" );
    F1.focus();
}
function ShowPopMessageEingang(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=reply&id=" + uid + "&session="+session, "ShowPopMessageE"+uid, "height=515,width=480,toolbar=no,scrollbars=yes,resizeable=yes,left=300,top=50" );
    F1.focus();
}
function ShowPopMessageGruppe(uid) {
    F1 = window.open( "/index.php?load=Gruppen&show=msgs&id=" + uid + "&session="+session, "ShowPopMessageG"+uid, "height=415,width=430,toolbar=no,scrollbars=no,resizeable=no,left=300,top=50" );
    F1.focus();
}
function ShowPopMessageEingangSaved(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=reply&m=saved&id=" + uid + "&session="+session, "ShowPopMessageE"+uid, "height=515,width=480,toolbar=no,scrollbars=yes,resizeable=yes,left=300,top=50" );
    F1.focus();
}
function ShowPopMessageEingang_reload(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=reply&id=" + uid + "&session="+session+"&reloadframe=1", "ShowPopMessageE"+uid, "height=515,width=480,toolbar=no,scrollbars=yes,resizeable=yes,left=300,top=50" );
    F1.focus();
}

function ShowVerlauf(ich,du) { 
    FV = window.open( "/index.php?load=ProfileManager&show=verlauf&ich=" + ich + "&du=" + du + "&session="+session, "ShowVerlauf" + du + "" + ich, "height=620,width=470,toolbar=no,scrollbars=yes,resizeable=no,left=300,top=50" );
    FV.focus();
}
function ShowPopMessageAusgang(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=reply&out=1&id=" + uid + "&session="+session, "ShowPopMessageA"+uid, "height=515,width=480,toolbar=no,scrollbars=yes,resizeable=yes,left=300,top=50" );
    F1.focus();
}


function ShowSaveSearch(url) {
    FV = window.open( url, "savesearch", "height=250,width=300,toolbar=no,scrollbars=no,resizeable=no,left=300,top=50" );
    FV.focus();
}

function ShowProfile(uid){
	
s_win = window.open('/index.php?load=User&uid='+ uid ,'Profil'+uid,'height=710,width=534,toolbar=no,scrollbars=yes,resizeable=no,left=30,top=0');
s_win.focus();
}

function ShowProfileChat(uid){
	
s_win = window.open('/index.php?load=User&uid='+ uid ,'Profil'+uid,'height=710,width=534,toolbar=no,scrollbars=yes,resizeable=no,left=30,top=0');
s_win.focus();
}

function te(sexystranger) {if (window.RegExp && window.encodeURIComponent) {
	var remagen=sexystranger.href;
	var arnhem=escape(document.MSG.text.value)+"";
	if(arnhem.indexOf("text=")!=-1){sexystranger.href=remagen.replace(new RegExp("text=[^&$]*"),"text= "+arnhem);}
	else
	{sexystranger.href=remagen+"&text="+arnhem;}}return 1;
}

function namosw_goto_byselect(sel, targetstr) 
{ 
  var index = sel.selectedIndex; 
  if (sel.options[index].value != '') { 
     if (targetstr == 'blank') { 
       window.open(sel.options[index].value, 'win1'); 
     } else { 
       var frameobj; 
       if ((frameobj = eval(targetstr)) != null) 
       frameobj.location = sel.options[index].value; 
     } 
  } 
} 

function Blist(bid) {
    P1 = window.open( "/index.php?load=ProfileManager&show=buddy_list&popup=1&ueb=1&sorter=2&add="+bid+"", "Blist", "height=557,width=620,toolbar=no,scrollbars=yes,resizeable=no,left=10" );
    P1.focus();
}

function Blocklist(bid) {

    if (confirm('M&ouml;chtest du den User wirklich ignorieren?'))
      {
    P1 = window.open( "/index.php?load=ProfileManager&show=block_list&popup=1&ueb=1&sorter=2&add="+bid+"", "Blist", "height=557,width=620,toolbar=no,scrollbars=yes,resizeable=no,left=10" );
    P1.focus();
	
		} else 	{
	
	} 
}



function showpicalbum1(id) {
    P1 = window.open( "inc/showpicalbum1.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbum2(id) {
    P1 = window.open( "inc/showpicalbum2.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbum3(id) {
    P1 = window.open( "inc/showpicalbum3.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbum4(id) {
    P1 = window.open( "inc/showpicalbum4.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbump1(id) {
    P1 = window.open( "inc/showpicalbump1.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbump2(id) {
    P1 = window.open( "inc/showpicalbump2.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function showpicalbump3(id) {
    P1 = window.open( "inc/showpicalbump3.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function ShowPicA(id) {
    P1 = window.open( "inc/showpica.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function ShowPicAX(id) {
    P1 = window.open( "inc/showpicax.php?id=" + id + "&session="+session, "ShowPic", "height=100,width=100,toolbar=no,status=no,scrollbars=no,resizeable=no,left=10" );
    P1.focus();
}

function ShowBuddyList(uid) {
    F1 = window.open( "/index.php?load=ProfileManager&show=saveuser&uid=" + uid + "", "Ssaveuser" + uid, "height=380,width=400,toolbar=no,scrollbars=yes,resizeable=no,left=100,top=0" );
    F1.focus();     
}

function ShowBlockList(uid) {

    if (confirm('Möchtest du den User wirklich ignorieren?'))
      {
    F1 = window.open( "/index.php?load=ProfileManager&show=blockuser&uid=" + uid + "", "ShowBlockList" + uid, "height=380,width=400,toolbar=no,scrollbars=yes,resizeable=no,left=100,top=0" );
    F1.focus();
	
		} else 	{
	
	} 
	
	
	
}

function ShowGroup(gid) {
    F1 = window.open( "/index.php?load=Gruppen&show=group&gid=" + gid + "&popup=1", "ShowGroup"+ gid , "height=800,width=700,toolbar=no,scrollbars=no,resizeable=no,left=100,top=0" );
    F1.focus();
}

function ShowGroupSettings(gid) {
    F1 = window.open( "/index.php?load=Gruppen&show=group&gid=" + gid + "&page=settings&set=informations", "ShowGroup"+ gid , "height=800,width=700,toolbar=no,scrollbars=no,resizeable=no,left=100,top=0" );
    F1.focus();
}



function ShowProfileNormal(uid) {
	document.getElementById("images_public").style.display = "inline";
	document.getElementById("images_private").style.display = "none";		
	document.getElementById("link_private_a").style.display = "inline";	
	document.getElementById("link_private_i").style.display = "none";
	document.getElementById("link_public_a").style.display = "none";	
	document.getElementById("link_public_i").style.display = "inline";
}


function ShowProfilePrivat(uid) {
	document.getElementById("images_public").style.display = "none";
	document.getElementById("images_private").style.display = "inline";
	document.getElementById("link_private_a").style.display = "none";	
	document.getElementById("link_private_i").style.display = "inline";
	document.getElementById("link_public_a").style.display = "inline";	
	document.getElementById("link_public_i").style.display = "none";
}

function ShowAlben(uid,username) {
    FPG = window.open( "/index.php?load=HallofFame&uid=" + uid + "&username=" + username + "", "ShowHallofFame", "height=600,width=650,toolbar=no,scrollbars=no,resizeable=no,left=300,top=10" );
    FPG.focus();
}

function TTicket(uid) {
    FPG = window.open( "/index.php?load=Div&show=proferrtick&guid=" + uid + "", "TTicket", "height=447,width=625,toolbar=no,scrollbars=no,resizeable=no,left=150,top=10" );
    FPG.focus();
}

function TTicketA(azid,uid) {
    FPG = window.open( "/index.php?load=Div&show=proferrticka&azid=" + azid + "&uid=" + uid, "TTicketA", "height=447,width=625,toolbar=no,scrollbars=no,resizeable=no,left=150,top=10" );
    FPG.focus();
}

function ShowTT(uid) {
    F1 = window.open( "/index.php?load=ProfileXtended&show=tt&bid=" + uid + "&popup=1", "ShowTT", "height=600,width=425,toolbar=no,scrollbars=yes,resizeable=no,left=130,top=0" );
    F1.focus();
    
    
}
function knuffen(uid) {
    F1 = window.open( "/index.php?load=livestream&popup=1&puid=" + uid + "", "Knuffen", "height=400,width=400,toolbar=no,scrollbars=no,resizeable=no,left=130,top=0" );
    F1.focus();
    
    
}



function ShowPopMailMessage(uid) {
    FPE = window.open( "/index.php?load=ProfileXtended&show=email&uid=" + uid + "&popup=1", "ShowEProfile", "height=530,width=625,toolbar=no,scrollbars=no,resizeable=no,left=150,top=50" );
    FPE.focus();
}

function StrangerForm1() {
	var rules = new Array();
	var FocEx = false;

	for (i = 0; i < required.length; i++) {
		el = document.getElementById(required[i]);
		if (el) {
			if (!el.value) {
			if (!FocEx) FocEx = el;
			el.style.borderColor = '#f00';
			el.style.borderWidth = '2px';
			} else if (el.style.borderColor) {
				el.style.borderColor = '';
				el.style.borderWidth = '1px';
			}
		}
	}
	if (FocEx) {
		FocEx.focus();
		el = document.getElementById('status');

		return false;
	}

	return true;



}

function strangerp(msek) 
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); } 
while(curDate-date < msek);
} 

function chkMSG()
{
   xcount=xcount+1;
   if (xcount > 2) {strangerp(2000);window.close();}
   return check_boxlimit();
}


function FehlerIgnore(){return true;}
window.onerror=FehlerIgnore;


 document.write('<script type="text/javascript" src="/js/screenmeldung.js"></script>');
 document.write('<meta http-equiv="X-UA-Compatible" content="IE=edge" />');


