var highlight = "";
function overnav(cell) { 
	document.getElementById(cell).style.backgroundImage='url(' + surl + 'b1.gif)'; 
}
function outnav(cell) { 
	if (cell != highlight) {
		document.getElementById(cell).style.backgroundImage='url(' + surl + 'b.gif)'; 
	}
}
function stay(cell) 
{ 
	if (highlight != "") {
		document.getElementById(cell).style.backgroundImage='url(' + surl + 'b.gif)'; 
	}
	document.getElementById(cell).style.backgroundImage='url(' + surl + 'b1.gif)'; 
	highlight = cell;
}

function change(cell) { 
	if (highlight != "") {
		document.getElementById(highlight).style.backgroundImage='url(' + surl + 'b.gif)'; 
	}
	document.getElementById(cell).style.backgroundImage='url(' + surl + 'b1.gif)'; 
	highlight = cell;
}

var menuhighlight = "";
function overm(cell) { 
	document.getElementById(cell).style.backgroundImage='url(' + surl + 'bgbx1.gif)'; 
}
function outm(cell) { 
	if (cell != menuhighlight) {
		document.getElementById(cell).style.backgroundImage='url(' + surl + 'bgbx.gif)'; 
	}
}
function staym(cell) 
{ 
	if (menuhighlight != "") {
		document.getElementById(cell).style.backgroundImage='url(' + surl + 'bgbx.gif)'; 
	}
	document.getElementById(cell).style.backgroundImage='url(' + surl + 'bgbx1.gif)'; 
	menuhighlight = cell;
}

function url(url) {
		location.href = '/netforge/ne?tmpl=' + url + sessionidfull;
}
function pop(url, widthp, heightp) {
		myrand = (""+Math.random()); len = myrand.length; adnr = myrand.substr(len-10,166); 
		window.open('/netforge/ne?tmpl=' + url + sessionidfull, adnr,'width=' + widthp + ',height=' + heightp + ',scrollbars=yes,resizable=yes');
}
function popextern(url, widthp, heightp) {
		myrand = (""+Math.random()); len = myrand.length; adnr = myrand.substr(len-10,166); 
		window.open(url, adnr,'width=' + widthp + ',height=' + heightp + ',scrollbars=yes,resizable=yes');
}
function profil(profil) {
	var myrand 	= Math.random() * 10000000000; 
	var adnr 	= Math.round(myrand);
	window.open('/netforge/ne?tmpl=profil&profil=' + profil + '' + sessionidfull, adnr, 'width=900,height=700,scrollbars=1,resizable=1');
}
function favorit(profil) {
		myrand = (""+Math.random()); len = myrand.length; adnr = myrand.substr(len-10,166); 
		window.open('/netforge/ne?tmpl=favoriten_add&profil=' + profil + '' + sessionidfull, adnr ,'width=550,height=380,scrollbars=yes,resizable=yes');
}

// Hilfe Div


divoff = "";

function tab(name){

		if (divoff != ""){
			document.getElementById(divoff).style.display = "none";
		}

		if (name == divoff){
			document.getElementById(divoff).style.display = "none";
			divoff = "";
			return false;
		}

		document.getElementById(name).style.display = "block";
		divoff = name;
}

// tab Profile

divoffprofil = "";

function tabprofil(name){

		if (divoffprofil != ""){
			document.getElementById(divoffprofil).style.display = "none";
		}

		document.getElementById(name).style.display = "block";
		divoffprofil = name;
}

// div einklappen und ausklappen

function toggleDiv(paneLegend) {
	var pane = paneLegend.parentNode;
	if (pane.className.indexOf('makeDivOpen') > -1) {
		pane.className = pane.className.replace('makeDivOpen', 'makeDivClosed');
	} else {
		pane.className = pane.className.replace('makeDivClosed', 'makeDivOpen');
	}
}	

/* set cookie */
function SetCookie (key, value, expire) {
  var now = new Date();
  var expires = new Date(now.getTime() + expire);
  document.cookie = key + "=" + value + "; domain="  + cookiedomain + "; path=/; expires=" + expires.toGMTString() + ";";
}
/* set cookie */ 

/* suche extende profisuche */
imgtoggle = "";
function toggleSEARCH(name){
	divshowsuche(name);
	if (name == imgtoggle){
		document.images['pfeil_' + name].src = staticurl + '/grafik/mehr.gif';
		imgtoggle = "";
		return false;
	}
	document.images['pfeil_' + name].src = staticurl + '/grafik/auf.gif';
	imgtoggle = name;
}

divoffsuche = "";
function divshowsuche(name){
	if (name == divoffsuche){
		document.getElementById(divoffsuche).style.display = "none";
		divoffsuche = "";
		return false;
	}
	document.getElementById(name).style.display = "block";
	divoffsuche = name;
}
/* suche extende profisuche */

/* radio und checkbox selektieren */
function checkRadio (formid) {
	document.getElementById(formid).checked = true;
}
function checkCbox (formidcb) {
	if(!document.getElementById(formidcb).checked) {	
		document.getElementById(formidcb).checked = true;
	} else {
		document.getElementById(formidcb).checked = false;
	} 
}
/* radio und checkbox selektieren */