/*if ((top.frames.length==0)||(top.frames[0].name!='winmain')) {
	var ref;
	var re = new RegExp('(http:\/\/)?(www\.)?([a-z0-9\-_.]+)');
	  var m = re.exec(document.referrer);
	  if (m == null) {
	    ref='';
	  } else {
	    ref=m[3];
	  }
	var path= location.pathname.replace(/[a-z0-9._\-\/]+\//, '');
	top.location.replace('index.php?ref='+ref+'&path='+path);
}*/
function spamkill(x) { 
	x.href=x.href.replace(/_filter1_/, "@");
	x.href=x.href.replace(/_filter2_/g, ".");
	return true;
}
function stat(x, vis) {
	if (vis) {
		window.status=x.href.replace(/_filter1_/, "@");
		window.status=window.status.replace(/_filter2_/g, ".");
		window.status=window.status.replace(/mailto:/, "");
	} else { window.status=""; }
}
active=0;
function getText(nr) {
	txt=document.getElementById('Layer'+nr);
	target=document.getElementById('textarea');
	target.innerHTML=txt.innerHTML;
	
	if (active!=0) {
		txt=document.getElementById('a'+active);
		txt.style.color='#000000';
	}
	txt=document.getElementById('a'+nr);
	txt.style.color='#CC0000';
	active=nr;
	//location.replace("#go");
}
function showContent(nr) {
	areaHandle('txtArea'+nr);
	
	if (active==0) {
		active=nr;
	} else {
		if (active==nr) {
			active=0;
		} else {
			//areaHandle('txtArea'+active);
			active=nr;
		}
	}
}
function areaHandle(id) {
	area=document.getElementById(id);
	if (area.style.display=="none") {
		area.style.display="";
	} else {
		area.style.display="none";
	}
}
