focus();
if(top.frames.length > 1)
top.location.href=self.location;

document.writeln("<STYLE type=\"text\/css\">");
document.writeln("  DIV.magic { display:none; }");
document.writeln("<\/STYLE>");

function pop(args) {
 if (pop.arguments.length==0) tar = 'hilfe/kontakt.htm';
 else tar = pop.arguments[0];
 if (pop.arguments.length<=1) { w = 330; h = 350; }
 else { w = pop.arguments[1]; h = pop.arguments[2] }
 P=open(tar,'pop','menubar=no,dependent=no,width='+w+',height='+h+',menubar=no,status=no,locationbar=no,top=200,left=200,scrollbars=yes');	   
 P.focus();	
}

var heartbeatCounter = 0;
function heartbeat(s) {
	try {
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.onreadystatechange = triggeredheartbeat;
		xmlhttp.open('GET', 'x_heartbeat.php?s='+escape(s));
		xmlhttp.send(null);
	} catch (e) { clearInterval(heartbeatInterval) };
}
function triggeredheartbeat() {
  if (xmlhttp.readyState == 4) if (xmlhttp.status == 200) {
	heartbeatCounter = xmlhttp.responseText;
	if (heartbeatCounter >= heartbeatMax) clearInterval(heartbeatInterval);
	if (heartbeatReload && heartbeatCounter <= heartbeatMax) window.location.reload();
  }
}
