
function logit(sbmid) {		
	 $.ajax({ 
	   type: "POST",
	   url: "/includes/_ajax_sbm.asp",
	   data: "sbmid=" + sbmid
	 });
}

function writeinnavrow(text) {
	if($('#navrow')) { $('#navrow').attr('innerHTML', text) };
}

function writeindiv(divid,text) {
	if($('#'+divid)) { $('#'+divid).attr('innerHTML', text)	};	
}

function visibleK(id) {
	if($('#'+id).css('visibility') == "hidden") {		
		 $('#'+id).css( { visibility: 'visible', display: ''	} );	
	} else {
		 $('#'+id).css( { visibility: 'hidden', display: 'none'	} );	
	}	 	
}

function visible(id,linkid) {	
	if($('#'+id).css('visibility') == "hidden") {			
		$('#'+id).css( { visibility: 'visible'	} );			
		if(linkid) {
			$('#'+id).css( { display: 'block'	} );	
			writeindiv(linkid,'weniger');
		}		
	} else {
		$('#'+id).css( { visibility: 'hidden', display: 'none'	} );			
		if(linkid) { writeindiv(linkid,'weitere'); }
	}	 			
}

function wo(wurl,wname,wwidth,whight,sc) {
	if (sc) {	window.open(wurl, wname, 'toolbar=0,menubar=0,width='+wwidth+',height='+whight+',location=0,scrollbars=1'); }
	else { window.open(wurl, wname, 'toolbar=0,menubar=0,width='+wwidth+',height='+whight+',location=0,scrollbars=0'); }
}

function pv() {
	if (document.login.user_name.value=='' || document.login.user_name.value=='Username')	{
		document.login.user_name.value='';
		document.login.user_pass.value='';
		document.login.user_name.focus();
		alert('Du hast dein Passwort vergessen? Kein Problem.\n\nBitte gib deinen Usernamen ein und klick nochmal auf "Passwort?!"\n\nAnschließend wird dir dein Passwort umgehend an deine bei uns registrierte EMail Adresse geschickt.');
	} else 	{
		document.login.domode.value='pwvergessen';
		document.login.submit();
	}
}

function mcheck(ziel) {
	var Check = confirm("Diesen Beitrag wirklich melden?");
	if(Check == true) { window.location.href = ziel; }
}

function rightbar2trans() {
	if($('#idxrightbar')) {			
		$('#idxrightbar').css( {'background-image' : 'url(http://www.gamezone.de/images/static/rightbar_bg_trans85.png)', 'background-repeat' : 'repeat-y', 'background-color' : 'transparent'} );
	}
}